projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Disable AutoConnect in the ns-ping test.
[tinc]
/
test
/
commandline.test
diff --git
a/test/commandline.test
b/test/commandline.test
index
e95c953
..
f785b22
100755
(executable)
--- a/
test/commandline.test
+++ b/
test/commandline.test
@@
-1,6
+1,6
@@
#!/bin/sh
#!/bin/sh
-.
./testlib.sh
+.
"${0%/*}/testlib.sh"
# Initialize one node
# Initialize one node
@@
-16,6
+16,10
@@
read pid rest <$d1/pid
(sleep 0.1; kill \$pid) &
EOF
(sleep 0.1; kill \$pid) &
EOF
+cat >$d1/tinc-up.cmd <<EOF
+start /min ../$tinc $c1 stop
+EOF
+
# Test tincd command line options that should work
$tincd $c1 $r1 -D
# Test tincd command line options that should work
$tincd $c1 $r1 -D
@@
-44,6
+48,7
@@
$tinc $c1 --net foo get name
# Test tinc command line options that should not work
# Test tinc command line options that should not work
+$tinc $c1 -n foo get somethingreallyunknown && exit 1 || true
$tinc $c1 --net && exit 1 || true
$tinc $c1 --net get name && exit 1 || true
$tinc $c1 foo && exit 1 || true
$tinc $c1 --net && exit 1 || true
$tinc $c1 --net get name && exit 1 || true
$tinc $c1 foo && exit 1 || true