Hi all:
The attached patch makes targets rtl-tests and rtl-test-with-check in
ORPSoCV2 print a clear error message and stop if a test case fails to
compile or if the test results are not the ones expected.
Without this patch, the makefile just carries on, and you have to
visually inspect the log file to make sure all tests were successful.
That's not ideal, especially in a daily build scenario.
Regards,
R. Diez
Index: sim/bin/Makefile
===================================================================
--- sim/bin/Makefile (Revision 783)
+++ sim/bin/Makefile (Arbeitskopie)
@@ -392,7 +392,7 @@
rtl-test-with-check: rtl-test
$(Q)$(MAKE) check-test-log; \
if [ $$? -ne 0 ]; then \
- echo; echo "\t### "$(TEST)" test FAIL ###"; echo; \
+ echo; echo "\t### "$(TEST)" test FAIL ###"; echo; exit 1; \
else \
echo; echo "\t### "$(TEST)" test OK ###"; echo; \
fi
@@ -405,7 +405,7 @@
$(Q)for test in $(TESTS); do \
export TEST=$$test; \
$(MAKE) rtl-test-with-check-no-print; \
- if [ $$? -ne 0 ]; then break; fi; \
+ if [ $$? -ne 0 ]; then echo "\t### $$test test FAIL ###"; exit
1; fi; \
echo; echo "\t### $$test test OK ###"; echo; \
done
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc