]> granicus.if.org Git - strace/commitdiff
tests: extend gen_tests.sh to support arbitrary test_* rules
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 18 Apr 2017 23:31:19 +0000 (23:31 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 18 Apr 2017 23:31:19 +0000 (23:31 +0000)
* tests/gen_tests.sh: Add support of arbitrary test_* rules.

tests/gen_tests.sh

index aa702ac67d9df2346823c1cc0a912fc1c621e1a8..7f8c87a818f450324d9f59522813b470e3e97c3f 100755 (executable)
@@ -72,6 +72,15 @@ while read -r name args; do {
                EOF
                ;;
 
+               test_*)
+               cat <<-EOF
+               #!/bin/sh -efu
+               # Generated by $0 from $input; do not edit.
+               . "\${srcdir=.}/init.sh"
+               $args
+               EOF
+               ;;
+
                *)
                cat <<-EOF
                #!/bin/sh -efu