Mercurial > hg
diff tests/run-tests @ 2059:a4c271765415
run-tests: Use appropriate (that is: none) diff options on HP-UX.
author | Sascha Wilde <wilde@sha-bang.de> |
---|---|
date | Wed, 12 Apr 2006 17:53:04 +0200 |
parents | 3bdd3bf17cfa |
children | 676f5fd84a94 |
line wrap: on
line diff
--- a/tests/run-tests Tue Apr 11 12:44:13 2006 +0200 +++ b/tests/run-tests Wed Apr 12 17:53:04 2006 +0200 @@ -19,6 +19,16 @@ HGMERGE=true; export HGMERGE HGUSER="test"; export HGUSER HGRCPATH=""; export HGRCPATH +OS=`uname` + +case "$OS" in + HP-UX) + DIFFOPTS= + ;; + *) + DIFFOPTS=-u + ;; +esac if [ `echo -n HG` = "-n HG" ] then @@ -101,13 +111,13 @@ cat "$ERR" fail=1 elif [ -r "$OUTOK" ]; then - if diff -u "$OUTOK" "$OUT" > /dev/null; then + if diff $DIFFOPTS "$OUTOK" "$OUT" > /dev/null; then : no differences else cp "$OUT" "$ERR" echo echo "$1 output changed:" - diff -u "$OUTOK" "$ERR" || true + diff $DIFFOPTS "$OUTOK" "$ERR" || true fail=1 fi fi