Commit fca65df6 authored by Jacob Champion's avatar Jacob Champion
Browse files

httpdunit: simplify test case generation

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
parent 61ee8e26
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -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