mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-30 22:54:11 +01:00
ec3937b5cd
It is annoying to debug failing tests when the interpretation of the diffs is reversed for some tests.
17 lines
376 B
Bash
Executable file
17 lines
376 B
Bash
Executable file
#!/usr/bin/env bash
|
|
test_description="argument parsing"
|
|
. ./test-lib.sh || exit 1
|
|
|
|
test_begin_subtest "sanity check"
|
|
$TEST_DIRECTORY/arg-test pos1 --keyword=one --string=foo pos2 --int=7 --flag=one --flag=three > OUTPUT
|
|
cat <<EOF > EXPECTED
|
|
keyword 1
|
|
flags 5
|
|
int 7
|
|
string foo
|
|
positional arg 1 pos1
|
|
positional arg 2 pos2
|
|
EOF
|
|
test_expect_equal_file EXPECTED OUTPUT
|
|
|
|
test_done
|