5 echo [STEP] Initialize one node
13 create_script foo tinc-up '
17 echo [STEP] Test tincd command line options that should work
26 tincd foo -D --net=foo
27 tincd foo -D --net foo
29 echo [STEP] Test tincd command line options that should not work
31 expect_code "$EXIT_FAILURE" tincd foo foo
32 expect_code "$EXIT_FAILURE" tincd foo --pidfile
33 expect_code "$EXIT_FAILURE" tincd foo --foo
35 echo [STEP] Test tinc command line options that should work
38 tinc foo -n foo get name
39 tinc foo -nfoo get name
40 tinc foo --net=foo get name
41 tinc foo --net foo get name
43 echo [STEP] Test tinc command line options that should not work
45 expect_code "$EXIT_FAILURE" tinc foo -n foo get somethingreallyunknown
46 expect_code "$EXIT_FAILURE" tinc foo --net
47 expect_code "$EXIT_FAILURE" tinc foo --net get name
48 expect_code "$EXIT_FAILURE" tinc foo foo
50 # Most of these should fail with ASAN. Some leaks are only detected by Valgrind.
51 echo [STEP] Trigger previously known memory leaks
53 tincd foo -c . -c . --help
54 tincd foo -n net -n net --help
55 tincd foo -n net -o FakeOpt=42 --help
56 tincd foo --logfile=one --logfile=two --help
57 tincd foo --pidfile=one --pidfile=two --help
58 expect_code "$EXIT_FAILURE" tincd foo -n net -o Compression= --help
59 expect_code "$EXIT_FAILURE" tincd foo -c fakedir -n 'n/e\t'
61 tinc foo -c conf -c conf --help
62 tinc foo -n net -n net --help
63 tinc foo --pidfile=pid --pidfile=pid --help
64 expect_code "$EXIT_FAILURE" tinc foo -c conf -n 'n/e\t'