From 018b2b8c96259348efccbcf14d2480f07892353f Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Sat, 4 Aug 2018 08:46:17 +0200 Subject: 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. --- update-test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'update-test.sh') 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 -- cgit v1.2.1