Index: tests/RTT/Makefile =================================================================== --- tests/RTT/Makefile (revision 10590) +++ tests/RTT/Makefile (revision 10591) @@ -1,5 +1,3 @@ -E = ./Export.sh -t -a - all: ROOT=../.. @@ -6,20 +4,7 @@ include $(ROOT)/Makefile.conf test: - @make test_export && echo "*** export: QC PASS ***" + @./Test_export.sh && echo "*** export: QC PASS ***" -test_export: - @$E -f nelma ; \ - $E -f bom ; \ - $E -f dsn ;\ - $E -f IPC-D-356 ; \ - $E -f eps ; \ - $E -f ps ; \ - $E -f XY 2>/dev/null; \ - $E -f openscad ; \ - $E -f png ; \ - $E -f gerber ; \ - $E -f svg 2>/dev/null; - clean: $(SCCBOX) rm -f out/* diff/* Index: tests/RTT/Test_export.sh =================================================================== --- tests/RTT/Test_export.sh (nonexistent) +++ tests/RTT/Test_export.sh (revision 10591) @@ -0,0 +1,36 @@ +#!/bin/sh + +# Run the export test on all formats that have refs _and_ are supported +# by our current pcb-rnd executable + +tester="./Export.sh -t -a" + +want=' +nelma +bom +dsn +IPC-D-356 +eps +ps +XY 2>/dev/null +openscad +png +gerber +svg 2>/dev/null +' + +have=`./Export.sh --list` + +echo "$want" | while read fmt args +do + if test ! -z "$fmt" + then + have_=`echo "$have"|grep "^$fmt$"` + if test ! -z "$have_" + then + $tester -f $fmt $args + else + echo "$fmt: SKIP (plugin not enabled)" + fi + fi +done Property changes on: tests/RTT/Test_export.sh ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property