mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 05:34:11 +01:00
a755c9d6a9
All test scripts to be executed are now named as T\d\d\d-name.sh, numers in increments of 10. This eases adding new tests and developers to see which are test scripts that are executed by test suite and in which order.
16 lines
334 B
Bash
Executable file
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 pos2
|
|
EOF
|
|
test_expect_equal_file OUTPUT EXPECTED
|
|
|
|
test_done
|