13 cat >$d1/tinc-up <<EOF
15 read pid rest <$d1/pid
16 (sleep 0.1; kill \$pid) &
19 # Test tincd command line options that should work
22 $tincd $c1 $r1 --no-detach
25 $tincd $c1 $r1 -D -d 2
26 $tincd $c1 $r1 -D -n foo
27 $tincd $c1 $r1 -D -nfoo
28 $tincd $c1 $r1 -D --net=foo
29 $tincd $c1 $r1 -D --net foo
31 # Test tincd command line options that should not work
33 $tincd $c1 $r1 foo && exit 1 || true
34 $tincd $c1 $r1 --pidfile && exit 1 || true
35 $tincd $c1 $r1 --foo && exit 1 || true
37 # Test tinc command line options that should work
40 $tinc $c1 -n foo get name
41 $tinc $c1 -nfoo get name
42 $tinc $c1 --net=foo get name
43 $tinc $c1 --net foo get name
45 # Test tinc command line options that should not work
47 $tinc $c1 --net && exit 1 || true
48 $tinc $c1 --net get name && exit 1 || true
49 $tinc $c1 foo && exit 1 || true