]> granicus.if.org Git - apache/commitdiff
httpdunit: simplify test case generation
authorJacob Champion <jchampion@apache.org>
Thu, 25 May 2017 21:18:35 +0000 (21:18 +0000)
committerJacob Champion <jchampion@apache.org>
Thu, 25 May 2017 21:18:35 +0000 (21:18 +0000)
Look, a legitimate use of cat!

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1796204 13f79535-47bb-0310-9956-ffa450edef68

Makefile.in

index 9bba3ac0803aeba0b93d1a9f729e2226d92ae8cf..42f2791983ccd982935309508515e778d652796d 100644 (file)
@@ -455,12 +455,8 @@ $(testcase_STUBS): %.tests: %.c
        $(top_srcdir)/build/httpdunit_gen_stubs.pl < "$<" > "$@"
 
 test/httpdunit.cases: $(testcase_SOURCES) | unittest-objdir
-       for t in $^; do \
-           $(top_srcdir)/build/httpdunit_gen_cases.pl --declaration < "$$t"; \
-       done > $@
-       for t in $^; do \
-           $(top_srcdir)/build/httpdunit_gen_cases.pl < "$$t"; \
-       done >> $@
+       cat $^ | $(top_srcdir)/build/httpdunit_gen_cases.pl --declaration > $@
+       cat $^ | $(top_srcdir)/build/httpdunit_gen_cases.pl >> $@
 
 test/httpdunit.lo: test/httpdunit.c test/httpdunit.cases | unittest-objdir