notmuch/test/argument-parsing
David Bremner 5800a44bd5 test: tests for command-line-arguments.c
This was needed because no current notmuch code exercises the
NOTMUCH_OPT_STRING style arguments.
2011-12-08 20:24:24 -04:00

16 lines
334 B
Bash
Executable file

#!/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 <<EOF > EXPECTED
keyword 1
int 7
string foo
positional arg 1 pos1
positional arg 2 pos1
EOF
test_expect_equal_file OUTPUT EXPECTED
test_done