X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tests%2Ftapdiffer;h=f48bcc336ed5437e687f75364adb8ccb12ff4a1d;hb=c80162b4678cf5d95c70feb93d951aa115c2521b;hp=3ddd6296bdd9c47ad4b26613ef8b86a09f016d41;hpb=1f644a1d7d441a24bfc6df7271e028f08c125d40;p=open-adventure.git diff --git a/tests/tapdiffer b/tests/tapdiffer index 3ddd629..f48bcc3 100755 --- a/tests/tapdiffer +++ b/tests/tapdiffer @@ -8,12 +8,20 @@ # A nonempty diff is shipped as a TAP YAML block following "not ok" # unless QUIET=1 in the environment. # +if [ "$1" = "-w" ] +then + diffopts=-ubZ + shift +else + diffopts=-u +fi + legend=$1 checkfile=$2 trap 'rm /tmp/tapdiff$$' EXIT HUP INT QUIT TERM -if diff --text -u ${checkfile} - >/tmp/tapdiff$$ +if diff --text "${diffopts}" ${checkfile} - >/tmp/tapdiff$$ then echo "ok - ${legend}" else