]> The Tcpdump Group git mirrors - tcpdump/blob - tests/isis-seg-fault-1-v.sh
ISOCLNS: Manage a test as GCC-specific
[tcpdump] / tests / isis-seg-fault-1-v.sh
1 #!/bin/sh
2
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).
6
7 test_name=isis-seg-fault-1-v
8
9 if [ ! -f ../Makefile ]
10 then
11 printf ' %-30s: TEST SKIPPED (no Makefile)\n' $test_name
12 elif grep '^CC = .*gcc' ../Makefile >/dev/null
13 then
14 ./TESTonce $test_name isis-seg-fault-1.pcap isis-seg-fault-1-v.out '-t -v'
15 else
16 printf ' %-30s: TEST SKIPPED (compiler is not GCC)\n' $test_name
17 fi