diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-08-04 08:46:17 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-08-09 09:23:07 +0200 |
commit | 018b2b8c96259348efccbcf14d2480f07892353f (patch) | |
tree | 10579cbc41d53ebf96f0de2664c7114c483f1863 /update-test.sh | |
parent | cf99f0bc838a5f82391a72c1e074781cfacd4cef (diff) | |
download | tcpdump-018b2b8c96259348efccbcf14d2480f07892353f.tar.gz |
Use UTC/GMT time when building/checking tests files
This will avoid some differences when checking in different time zones.
We now run the tests without the '-t' option. This will allow to get
problems/changes in time printing functions.
Update the output of the tests accordingly.
Moreover:
Add the '-#' option to better identify a packet when there is a difference
in output.
Diffstat (limited to 'update-test.sh')
-rwxr-xr-x | update-test.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/update-test.sh b/update-test.sh index 8c7d0cab..6ee18cae 100755 --- a/update-test.sh +++ b/update-test.sh @@ -2,6 +2,8 @@ # Update the tests given as positional parameters +TZ=GMT0; export TZ + for TEST in "$@"; do PREFIX=tests MATCH=0 @@ -12,7 +14,7 @@ for TEST in "$@"; do [ $name != "$TEST" ] && continue # not the requested test [ _$output = _ ] && continue # ignore incomplete lines MATCH=1 - ./tcpdump -n -t -r "$PREFIX/$input" $options >"$PREFIX/$output" + ./tcpdump -# -n -r "$PREFIX/$input" $options >"$PREFIX/$output" done < $PREFIX/TESTLIST [ $MATCH = 0 ] && echo "test $TEST not found" >&2 done |