]> git.cworth.org Git - notmuch/blob - test/T410-argument-parsing.sh
Emacs: Add address completion mechanism implemented in elisp
[notmuch] / test / T410-argument-parsing.sh
1 #!/usr/bin/env bash
2 test_description="argument parsing"
3 . ./test-lib.sh || exit 1
4
5 test_begin_subtest "sanity check"
6 $TEST_DIRECTORY/arg-test  pos1  --keyword=one --string=foo pos2 --int=7 --flag=one --flag=three > OUTPUT
7 cat <<EOF > EXPECTED
8 keyword 1
9 flags 5
10 int 7
11 string foo
12 positional arg 1 pos1
13 positional arg 2 pos2
14 EOF
15 test_expect_equal_file OUTPUT EXPECTED
16
17 test_done