Debian Codegraph @

tests/generic/t.bogus_arg

raw
1 #!/bin/bash
2
3 . "$XDG_TEST_DIR/include/testassertions.sh"
4
5
6 generic_bogus_arg() {
7 test_start "$FUNCNAME: generic bogus argument $XDGUTIL"
8 test_purpose "Ensure that $XDGUTIL exits with an error when called with an unsupported argument."
9
10 # Dependencies section
11 test_init
12
13 assert_util_var
14 set_no_display
15
16 # Test steps section
17 test_procedure
18
19 assert_exit 1 "$XDGUTIL" "--fobar-bogus-arg"
20 assert_nostdout
21 assert_stderr
22
23 test_result
24 }
25 GENERIC_TEST="generic_bogus_arg"