]> granicus.if.org Git - strace/commit
tests/gen_tests.sh: enable passing arguments to sourced tests
authorEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 25 Jan 2018 09:33:55 +0000 (10:33 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 25 Jan 2018 07:18:38 +0000 (07:18 +0000)
commitf55ad2bbfcde461e6ec52b06258ee3c277cc5edf
tree3df9f6fbf85a95bd7e36acf11c1373e1a9ae81ab
parent96ac341ae79dae62b71f7969f7a89f9aeb230aaa
tests/gen_tests.sh: enable passing arguments to sourced tests

* tests/gen_tests.sh: Read first argument separately, put it in $arg0,
and the rest of the arguments in $args.
(case "$arg0" in) <+*)>: Set command line to $args and source $arg0.
tests/gen_tests.sh