X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/5d6d557df4594450440f334fe92a5eddefb9931b..refs/pull/482/head:/tests/lmp-v.sh diff --git a/tests/lmp-v.sh b/tests/lmp-v.sh index c1af3588..138a0cd2 100755 --- a/tests/lmp-v.sh +++ b/tests/lmp-v.sh @@ -6,7 +6,12 @@ # GCC build and must reproduce correctly on any other GCC build regardless of # the architecture. -if grep '^CC = .*gcc' ../Makefile >/dev/null +# A Windows build may have no file named Makefile and also a version of grep +# that won't return an error when the file does not exist. Work around. +if [ ! -f ../Makefile ] +then + printf ' %-30s: TEST SKIPPED (no Makefile)\n' 'lmp-v' +elif grep '^CC = .*gcc' ../Makefile >/dev/null then ./TESTonce lmp-v lmp.pcap lmp-v.out '-t -T lmp -v' else