aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/T410-argument-parsing.sh
blob: 94e90874d2e0e422c433e0601b9e88f0342a618e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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