We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f80a520 commit 1ce5fceCopy full SHA for 1ce5fce
test/DIFF/test.sh
@@ -8,10 +8,14 @@ test_case() {
8
mkdir -p result
9
cp "case$1"/* result
10
cd "result"
11
- $INTERP $SCRIPT a.txt b.txt > "diff"
12
- patch -s --posix --batch -p0 < "diff"
+ diff -u a.txt b.txt > "diff-gnu"
+ $INTERP $SCRIPT a.txt b.txt > "diff-lua"
13
+ patch -s --posix --batch -p0 < "diff-lua"
14
if { set +e; cmp -s a.txt b.txt; }; then
15
printf "\tCASE %s: PASS\n" "$1"
16
+ printf "\t\tSIZE:\n\t\t\tGNU: %'6d\n\t\t\tLUA: %'6d\n"\
17
+ "$(stat -L -c%s diff-gnu)"\
18
+ "$(stat -L -c%s diff-lua)"
19
else
20
printf "\tCASE %s: FAIL\n" "$1"
21
FAIL=$((FAIL + 1))
0 commit comments