unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 672de0b306696afeda8a7ba6751b64a8ddbd9d0d 334 bytes (raw)
name: test/argument-parsing 	 # note: path name is non-authoritative(*)

 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 pos1
EOF
test_expect_equal_file OUTPUT EXPECTED

test_done

debug log:

solving 672de0b ...
found 672de0b in https://yhetil.org/notmuch.git/

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).