projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for meson build system
[tinc]
/
test
/
ns-ping.test
diff --git
a/test/ns-ping.test
b/test/ns-ping.test
index
417ed32
..
33e7270
100755
(executable)
--- a/
test/ns-ping.test
+++ b/
test/ns-ping.test
@@
-1,13
+1,11
@@
#!/bin/sh
#!/bin/sh
-# shellcheck
source=testlib.sh
-.
./testlib.sh
+# shellcheck
disable=SC1090
+.
"$TESTLIB_PATH"
-echo "[STEP] Skip this test if we aren't root or if 'ip netns' does not exist"
-
-test "$(id -u)" = "0" || exit $EXIT_SKIP_TEST
-test -e /dev/net/tun || exit $EXIT_SKIP_TEST
-ip netns list || exit $EXIT_SKIP_TEST
+require_root "$0" "$@"
+test -e /dev/net/tun || exit "$EXIT_SKIP_TEST"
+ip netns list || exit "$EXIT_SKIP_TEST"
ip_foo=192.168.1.1
ip_bar=192.168.1.2
ip_foo=192.168.1.1
ip_bar=192.168.1.2