Mercurial > hg
comparison tests/run-tests @ 2069:15ec724ba351
merge with crew.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Thu, 13 Apr 2006 17:11:35 -0700 |
parents | 4a49daa3a40c 676f5fd84a94 |
children | 278f9b13c39a |
comparison
equal
deleted
inserted
replaced
2068:4a49daa3a40c | 2069:15ec724ba351 |
---|---|
22 TZ=GMT; export TZ | 22 TZ=GMT; export TZ |
23 HGEDITOR=true; export HGEDITOR | 23 HGEDITOR=true; export HGEDITOR |
24 HGMERGE=true; export HGMERGE | 24 HGMERGE=true; export HGMERGE |
25 HGUSER="test"; export HGUSER | 25 HGUSER="test"; export HGUSER |
26 HGRCPATH=""; export HGRCPATH | 26 HGRCPATH=""; export HGRCPATH |
27 OS=`uname` | |
28 | |
29 case "$OS" in | |
30 HP-UX|SunOS) | |
31 DIFFOPTS= | |
32 ;; | |
33 *) | |
34 DIFFOPTS=-u | |
35 ;; | |
36 esac | |
27 | 37 |
28 if [ `echo -n HG` = "-n HG" ] | 38 if [ `echo -n HG` = "-n HG" ] |
29 then | 39 then |
30 ECHO_N=echo | 40 ECHO_N=echo |
31 NNL="\c" | 41 NNL="\c" |
116 echo | 126 echo |
117 echo "$1 generated unexpected output:" | 127 echo "$1 generated unexpected output:" |
118 cat "$ERR" | 128 cat "$ERR" |
119 fail=1 | 129 fail=1 |
120 elif [ -r "$OUTOK" ]; then | 130 elif [ -r "$OUTOK" ]; then |
121 if diff -u "$OUTOK" "$OUT" > /dev/null; then | 131 if diff $DIFFOPTS "$OUTOK" "$OUT" > /dev/null; then |
122 : no differences | 132 : no differences |
123 else | 133 else |
124 cp "$OUT" "$ERR" | 134 cp "$OUT" "$ERR" |
125 echo | 135 echo |
126 echo "$1 output changed:" | 136 echo "$1 output changed:" |
127 diff -u "$OUTOK" "$ERR" || true | 137 diff $DIFFOPTS "$OUTOK" "$ERR" || true |
128 fail=1 | 138 fail=1 |
129 fi | 139 fi |
130 fi | 140 fi |
131 | 141 |
132 cd "$TESTDIR" | 142 cd "$TESTDIR" |