New testing

This commit is contained in:
vxclutch
2026-05-11 13:22:36 -04:00
parent 8fb5146431
commit ac05b0fdfd
7 changed files with 80 additions and 64 deletions

26
t/init.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/sh
ME_=$(basename $0)
framework_failure_() {
exit 99
}
compare() {
f1=${1:?file1 required}
f2=${2:?file2 required}
if cmp -s -- "$f1" "$f2" 2>/dev/null; then
return 0 # identical
fi
if diff -u -- "$f1" "$f2" 2>/dev/null; then
return 0
else
if diff -- "$f1" "$f2" 2>/dev/null; then
return 0
else
return 1
fi
fi
}