mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-23 18:14:29 +08:00
018b2b8c96
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.
21 lines
625 B
Bash
Executable File
21 lines
625 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Update the tests given as positional parameters
|
|
|
|
TZ=GMT0; export TZ
|
|
|
|
for TEST in "$@"; do
|
|
PREFIX=tests
|
|
MATCH=0
|
|
while read name input output options
|
|
do
|
|
[ _$name = _ ] && continue # ignore empty lines
|
|
[ _${name#\#} != _$name ] && continue # ignore comment lines
|
|
[ $name != "$TEST" ] && continue # not the requested test
|
|
[ _$output = _ ] && continue # ignore incomplete lines
|
|
MATCH=1
|
|
./tcpdump -# -n -r "$PREFIX/$input" $options >"$PREFIX/$output"
|
|
done < $PREFIX/TESTLIST
|
|
[ $MATCH = 0 ] && echo "test $TEST not found" >&2
|
|
done
|