blob: 6ee18cae9e4f9fb03ed3ff82d285660d297ebbe5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/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
|