X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Fargument-parsing;fp=test%2Fargument-parsing;h=672de0b306696afeda8a7ba6751b64a8ddbd9d0d;hp=0000000000000000000000000000000000000000;hb=5800a44bd5b77390d2243426f0c82de4d0495a1c;hpb=2cf7b27a0c4b4e746e2e40752c55ddb4d54798b2 diff --git a/test/argument-parsing b/test/argument-parsing new file mode 100755 index 00000000..672de0b3 --- /dev/null +++ b/test/argument-parsing @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +test_description="argument parsing" +. ./test-lib.sh + +test_begin_subtest "sanity check" +$TEST_DIRECTORY/arg-test pos1 --keyword=one --string=foo pos2 --int=7 > OUTPUT +cat < EXPECTED +keyword 1 +int 7 +string foo +positional arg 1 pos1 +positional arg 2 pos1 +EOF +test_expect_equal_file OUTPUT EXPECTED + +test_done