All tests under "tests/shell" are shell scripts with shebang /bin/bash
or /bin/sh. This may seem expected, since these tests are under
"tests/shell" directory, but any executable file would work.
Anyway. The vast majority of the tests has "#!/bin/bash" as shebang.
A few tests had "#!/bin/sh" or "#!/bin/sh -e". Unify this and always use bash.
Since we anyway require bash, this is not a limitation.
Also, if we know that this is a bash script (by parsing the shebang), we
can let the test wrapper pass "-x" to the script. The next commit will
do that, and it is nicer if the shebangs are all uniform.
Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
12 files changed:
-#!/bin/sh
+#!/bin/bash
$NFT add table t || exit 1
$NFT add chain t c1 || exit 1
-#!/bin/sh -e
+#!/bin/bash -e
# NFT_TEST_REQUIRES(NFT_TEST_HAVE_destroy)
-#!/bin/sh -e
+#!/bin/bash -e
# NFT_TEST_REQUIRES(NFT_TEST_HAVE_destroy)
-#!/bin/sh -e
+#!/bin/bash -e
# NFT_TEST_REQUIRES(NFT_TEST_HAVE_destroy)
-#!/bin/sh
+#!/bin/bash
# test for kernel commit ca08987885a147643817d02bf260bc4756ce8cd4
# ("netfilter: nf_tables: deactivate expressions in rule replecement routine")
-#!/bin/sh -e
+#!/bin/bash -e
# NFT_TEST_REQUIRES(NFT_TEST_HAVE_destroy)
-#!/bin/sh -e
+#!/bin/bash -e
#
# NFT_TEST_SKIP(NFT_TEST_SKIP_slow)
#
-#!/bin/sh -e
+#!/bin/bash -e
#
# 0043concatenated_ranges_1 - Insert and list subnets of different sizes
-#!/bin/sh -e
+#!/bin/bash -e
#
# NFT_TEST_SKIP(NFT_TEST_SKIP_slow)
#
-#!/bin/sh -e
+#!/bin/bash -e
#
# NFT_TEST_SKIP(NFT_TEST_SKIP_slow)
#
-#!/bin/sh -e
+#!/bin/bash -e
# NFT_TEST_REQUIRES(NFT_TEST_HAVE_destroy)
-#!/bin/sh
+#!/bin/bash
# table with invalid expression (masquerade called from filter table).
# nft must return an error. Also catch nfnetlink retry loops that