mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-24 02:23:27 +08:00
5413246819
That makes it clearer which captures are pcap and which are pcapng, and could allow us to, if we're testing with a tcpdump linked with a libpcap that doesn't handle pcapng files, skip the pcapng files.
31 lines
736 B
Bash
Executable File
31 lines
736 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This "verbose" ISIS protocol test involves a float calculation that
|
|
# may produce a slightly different result if the compiler is not GCC.
|
|
# Test only with GCC (similar to GitHub issue #333).
|
|
|
|
exitcode=0
|
|
test_name=isis-seg-fault-1-v
|
|
|
|
if [ ! -f ../Makefile ]
|
|
then
|
|
printf ' %-35s: TEST SKIPPED (no Makefile)\n' $test_name
|
|
elif grep '^CC = .*gcc' ../Makefile >/dev/null
|
|
then
|
|
passed=`cat .passed`
|
|
failed=`cat .failed`
|
|
if ./TESTonce $test_name isis-seg-fault-1.pcapng isis-seg-fault-1-v.out '-v'
|
|
then
|
|
passed=`expr $passed + 1`
|
|
echo $passed >.passed
|
|
else
|
|
failed=`expr $failed + 1`
|
|
echo $failed >.failed
|
|
exitcode=1
|
|
fi
|
|
else
|
|
printf ' %-35s: TEST SKIPPED (compiler is not GCC)\n' $test_name
|
|
fi
|
|
|
|
exit $exitcode
|