diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2017-01-31 19:12:28 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2017-01-31 19:12:28 +0000 |
commit | 09f31dfc07817083d52d93d66017639bb0ffc1be (patch) | |
tree | 458f54a98855991eec82053d0a7d6d5dbe617b5c /tests/lmp-v.sh | |
download | src-test2-09f31dfc07817083d52d93d66017639bb0ffc1be.tar.gz src-test2-09f31dfc07817083d52d93d66017639bb0ffc1be.zip |
Notes
Diffstat (limited to 'tests/lmp-v.sh')
-rwxr-xr-x | tests/lmp-v.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/lmp-v.sh b/tests/lmp-v.sh new file mode 100755 index 000000000000..1c286bf595ae --- /dev/null +++ b/tests/lmp-v.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +# The "verbose" Link Management Protocol test involves a float calculation that +# may produce a slightly different result depending on the architecture and the +# compiler (see GitHub issue #333). The reference output was produced using a +# GCC build and must reproduce correctly on any other GCC build regardless of +# the architecture. + +# 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 ' %-35s: 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 + printf ' %-35s: TEST SKIPPED (compiler is not GCC)\n' 'lmp-v' +fi |