Rewrite the test suite for better compat and stability
[tinc] / test / executables.test
index 35dd2bc..28bff2a 100755 (executable)
@@ -1,8 +1,14 @@
 #!/bin/sh
 
-. ./testlib.sh
+# shellcheck source=testlib.sh
+. "${0%/*}/testlib.sh"
 
-# Just test whether the executables work
-$tincd --help
-$tinc --help
-$sptps_test --help
+echo [STEP] Just test whether the executables work
+
+tinc foo --help
+
+tincd foo --help
+
+if [ -e "$SPTPS_TEST" ]; then
+  $SPTPS_TEST --help
+fi