]> granicus.if.org Git - strace/commitdiff
tests: extend gen_tests.sh further
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 20 Apr 2017 18:11:35 +0000 (18:11 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 20 Apr 2017 18:11:35 +0000 (18:11 +0000)
* tests/gen_tests.sh: Extend support of arbitrary rules.

tests/gen_tests.sh

index 7f8c87a818f450324d9f59522813b470e3e97c3f..89108e8a4154de0e3399a3910bb0df639a0d67c9 100755 (executable)
@@ -72,12 +72,12 @@ 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
+               run_strace_match_diff $args
                EOF
                ;;
 
@@ -86,7 +86,7 @@ while read -r name args; do {
                #!/bin/sh -efu
                # Generated by $0 from $input; do not edit.
                . "\${srcdir=.}/init.sh"
-               run_strace_match_diff $args
+               $args
                EOF
                ;;
        esac > "$output"