Skip to content

Commit

Permalink
WIP more
Browse files Browse the repository at this point in the history
  • Loading branch information
AloisMahdal committed Dec 16, 2024
1 parent a2e8909 commit 73d6931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/regression.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function cmp_output()
printf "$cmd"

eval $cmd 1>"$TEST_TMP/cmd.out" 2>"$TEST_TMP/cmd.err"
if diff --strip-trailing-cr -q "$expected_out" "$TEST_TMP/cmd.out"; then
if diff --strip-trailing-cr "$expected_out" "$TEST_TMP/cmd.out" >/dev/null; then
pass
return 0
else
Expand All @@ -84,14 +84,14 @@ function main()
d=${d%/}
[[ -f $d/in.diff ]] || continue
cmp_output $d/in.diff $d/out.unified "-c always -u" || ((e++))
cmp_output $d/in.diff $d/out.unified "-p fail_injected -c always -u" || ((e++))
cmp_output $d/in.diff $d/out.side-by-side "-c always -w80 --nowrap" || ((e++))
cmp_output $d/in.diff $d/out.w70.nowrap "-c always -w70 --nowrap" || ((e++))
cmp_output $d/in.diff $d/out.w70.wrap "-c always -w70" || ((e++))
cmp_output $d/in.diff $d/in.diff "-c auto -u" || ((e++))
cmp_output $d/in.diff $d/in.diff "-c auto -w80" || ((e++))
cmp_output $d/in.diff $d/in.diff "-c auto -w70 --no-wrap" || ((e++))
cmp_output $d/in.diff $d/in.diff "-c auto -w70" || ((e++))
cmp_output $d/in.diff $d/in.diff "-c auto -u -p fail_injected" || ((e++))
(( total += 9 ))
done

Expand Down

0 comments on commit 73d6931

Please sign in to comment.