X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/af83d22daeb4189a8a556005ecd419cc3576d3f7..6c57fef2bba4e6ae30fb0bb9c003d40028fa57e6:/tests/print-flags.sh diff --git a/tests/print-flags.sh b/tests/print-flags.sh index 1b53c75b..cc1eb1a5 100755 --- a/tests/print-flags.sh +++ b/tests/print-flags.sh @@ -1,9 +1,26 @@ #!/bin/sh -uudecode print-flags.puu - for i in x xx X XX A AA; do - if (../tcpdump -$i -s0 -nr print-flags.pcap | tee NEW/print-$i.new | diff - print-$i.out >DIFF/print-$i.out.diff ) + # + # We cannot rely on, for example, "print-x.out" and + # "print-X.out" being different files - we might be running + # this on a case-insensitive file system, e.g. a Windows + # file system or a case-insensitive HFS+ file system on + # Mac OS X. + # + # Therefore, for "X" and "XX", we have "print-capX.out" + # and "print-capXX.out". + # + if test $i = X + then + printname=capX + elif test $i = XX + then + printname=capXX + else + printname=$i + fi + if (../tcpdump -$i -s0 -nr print-flags.pcap | tee NEW/print-$printname.new | diff - print-$printname.out >DIFF/print-$printname.out.diff ) then echo print-$i passed. else