]>
The Tcpdump Group git mirrors - tcpdump/blob - tests/isis-seg-fault-1-v.sh
3 # This "verbose" ISIS protocol test involves a float calculation that
4 # may produce a slightly different result if the compiler is not GCC.
5 # Test only with GCC (similar to GitHub issue #333).
8 # Get the tests directory from $0.
10 testsdir
=`dirname "$0"`
13 test_name
=isis-seg-fault-1-v
15 if [ ! -f ..
/Makefile
]
17 printf ' %-35s: TEST SKIPPED (no Makefile)\n' $test_name
18 elif grep '^CC = .*gcc' ..
/Makefile
>/dev
/null
22 if ${testsdir}/TESTonce $test_name ${testsdir}/isis-seg-fault-1.pcapng ${testsdir}/isis-seg-fault-1-v.out
'-v'
24 passed
=`expr $passed + 1`
27 failed
=`expr $failed + 1`
32 printf ' %-35s: TEST SKIPPED (compiler is not GCC)\n' $test_name