]> git.notmuchmail.org Git - notmuch/blobdiff - test/T410-argument-parsing.sh
test: add boolean argument to arg-test
[notmuch] / test / T410-argument-parsing.sh
index 94e90874d2e0e422c433e0601b9e88f0342a618e..4505c58301ead7531822d1d796174a98c699547a 100755 (executable)
@@ -1,16 +1,18 @@
 #!/usr/bin/env bash
 test_description="argument parsing"
-. ./test-lib.sh
+. ./test-lib.sh || exit 1
 
 test_begin_subtest "sanity check"
-$TEST_DIRECTORY/arg-test  pos1  --keyword=one --string=foo pos2 --int=7 > OUTPUT
+$TEST_DIRECTORY/arg-test  pos1  --keyword=one --boolean --string=foo pos2 --int=7 --flag=one --flag=three > OUTPUT
 cat <<EOF > EXPECTED
+boolean 1
 keyword 1
+flags 5
 int 7
 string foo
 positional arg 1 pos1
 positional arg 2 pos2
 EOF
-test_expect_equal_file OUTPUT EXPECTED
+test_expect_equal_file EXPECTED OUTPUT
 
 test_done