aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/T410-argument-parsing.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/T410-argument-parsing.sh')
-rwxr-xr-xtest/T410-argument-parsing.sh16
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