diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-09-20 11:01:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-09-20 15:38:02 +0200 |
commit | aeee571501df4d3b1d91e10d61b434f0ecac4d6a (patch) | |
tree | 09c1339165b805c05bff1fe8dec10bb369c03af2 /idlc | |
parent | 89d911a2775118dbf5e4cd337e4ede4284b6f717 (diff) |
Use tempfile instead of stdin in exectest.pl
...so it can easily be reused to test unoidl-write, too.
Change-Id: I4992850b44faaa152bcf1d281f2787824d6ad036
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/CustomTarget_parser_test.mk | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/idlc/CustomTarget_parser_test.mk b/idlc/CustomTarget_parser_test.mk index 6be490aed38b..d8defd6fe5d6 100644 --- a/idlc/CustomTarget_parser_test.mk +++ b/idlc/CustomTarget_parser_test.mk @@ -23,57 +23,59 @@ $(call gb_CustomTarget_get_target,idlc/parser_test) : \ $(SRCDIR)/idlc/test/parser/polystruct.tests \ $(SRCDIR)/idlc/test/parser/published.tests \ $(SRCDIR)/idlc/test/parser/struct.tests \ - $(SRCDIR)/idlc/test/parser/typedef.tests + $(SRCDIR)/idlc/test/parser/typedef.tests \ + | $(call gb_CustomTarget_get_workdir,idlc/parser_test)/.dir $(call gb_Helper_abbreviate_dirs,( \ $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ $(SRCDIR)/idlc/test/parser/attribute.tests \ + $(call gb_CustomTarget_get_workdir,idlc/parser_test)/in.idl \ $(call gb_Executable_get_command,idlc) \ - -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ - -stdin && \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) {} && \ $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ $(SRCDIR)/idlc/test/parser/constant.tests \ + $(call gb_CustomTarget_get_workdir,idlc/parser_test)/in.idl \ $(call gb_Executable_get_command,idlc) \ - -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ - -stdin && \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) {} && \ $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ $(SRCDIR)/idlc/test/parser/constructor.tests \ + $(call gb_CustomTarget_get_workdir,idlc/parser_test)/in.idl \ $(call gb_Executable_get_command,idlc) \ - -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ - -stdin && \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) {} && \ $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ $(SRCDIR)/idlc/test/parser/interfaceinheritance.tests \ + $(call gb_CustomTarget_get_workdir,idlc/parser_test)/in.idl \ $(call gb_Executable_get_command,idlc) \ - -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ - -stdin && \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) {} && \ $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ $(SRCDIR)/idlc/test/parser/methodoverload.tests \ + $(call gb_CustomTarget_get_workdir,idlc/parser_test)/in.idl \ $(call gb_Executable_get_command,idlc) \ - -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ - -stdin && \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) {} && \ $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ $(SRCDIR)/idlc/test/parser/oldstyle.tests \ + $(call gb_CustomTarget_get_workdir,idlc/parser_test)/in.idl \ $(call gb_Executable_get_command,idlc) \ - -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ - -stdin && \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) {} && \ $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ $(SRCDIR)/idlc/test/parser/polystruct.tests \ + $(call gb_CustomTarget_get_workdir,idlc/parser_test)/in.idl \ $(call gb_Executable_get_command,idlc) \ - -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ - -stdin && \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) {} && \ $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ $(SRCDIR)/idlc/test/parser/published.tests \ + $(call gb_CustomTarget_get_workdir,idlc/parser_test)/in.idl \ $(call gb_Executable_get_command,idlc) \ - -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ - -stdin && \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) {} && \ $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ $(SRCDIR)/idlc/test/parser/struct.tests \ + $(call gb_CustomTarget_get_workdir,idlc/parser_test)/in.idl \ $(call gb_Executable_get_command,idlc) \ - -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ - -stdin && \ + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) {} && \ $(PERL) $(SRCDIR)/solenv/bin/exectest.pl \ $(SRCDIR)/idlc/test/parser/typedef.tests \ + $(call gb_CustomTarget_get_workdir,idlc/parser_test)/in.idl \ $(call gb_Executable_get_command,idlc) \ - -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) \ - -stdin) > $@.log 2>&1 || (cat $@.log && false)) + -O $(call gb_CustomTarget_get_workdir,idlc/parser_test) {}) \ + > ${}.log 2>&1 || (cat ${}.log && false)) # vim: set noet sw=4 ts=4: |