tests: add getopt regression test for multicall stub

This commit is contained in:
Ariadne Conill 2020-11-19 03:28:51 -07:00
parent 46bb0565fa
commit 7911944633
2 changed files with 12 additions and 0 deletions

View file

@ -2,6 +2,7 @@ syntax(2)
test_suite('ifupdown-ng')
atf_test_program{name='multicall_test'}
atf_test_program{name='ifquery_test'}
atf_test_program{name='ifup_test'}
atf_test_program{name='ifdown_test'}

11
tests/multicall_test Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env atf-sh
. $(atf_get_srcdir)/test_env.sh
tests_init \
regress_getopt
regress_getopt_body() {
atf_check -e not-inline:'-F: applet not found' -o ignore -s exit:1 \
ifupdown ifquery -F
}