3 # shellcheck source=testlib.sh
6 echo [STEP] Initialize one node
14 create_script foo tinc-up '
18 echo [STEP] Test tincd command line options that should work
27 tincd foo -D --net=foo
28 tincd foo -D --net foo
30 echo [STEP] Test tincd command line options that should not work
32 must_fail tincd foo foo
33 must_fail tincd foo --pidfile
34 must_fail tincd foo --foo
36 echo [STEP] Test tinc command line options that should work
39 tinc foo -n foo get name
40 tinc foo -nfoo get name
41 tinc foo --net=foo get name
42 tinc foo --net foo get name
44 echo [STEP] Test tinc command line options that should not work
46 must_fail tinc foo -n foo get somethingreallyunknown
47 must_fail tinc foo --net
48 must_fail tinc foo --net get name
49 must_fail tinc foo foo