diff options
author | Tomi Ollila <tomi.ollila@iki.fi> | 2014-01-09 17:18:59 +0200 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-01-13 14:16:46 -0400 |
commit | a755c9d6a9099366cc82ba3a4bee8e6d2b83d529 (patch) | |
tree | e17400d2996686722eb94404902f62043b764237 /test/T410-argument-parsing.sh | |
parent | 84719b08f757a6079f4c3331d0c476d19b265948 (diff) |
test: renamed test scripts to format T\d\d\d-name.sh
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.
Diffstat (limited to 'test/T410-argument-parsing.sh')
-rwxr-xr-x | test/T410-argument-parsing.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/T410-argument-parsing.sh b/test/T410-argument-parsing.sh new file mode 100755 index 00000000..94e90874 --- /dev/null +++ b/test/T410-argument-parsing.sh @@ -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 <<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 |