From 67a309e3ddd0ca8f001e133571d1939d0df0c296 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sun, 2 Jan 2011 03:01:08 -0800 Subject: [PATCH] Tests should fail when there are unimplemented opcodes or warnings. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1e70537..ff82ccd 100644 --- a/Makefile +++ b/Makefile @@ -49,10 +49,11 @@ install: test: all @for f in ./tests/*; \ do \ - ./bin/pycdc "$$f" > /dev/null; \ - if [ "$$?" -eq "0" ]; then \ + stderr=$$( ./bin/pycdc "$$f" 2>&1 1>/dev/null ); \ + if [ "$$?" -eq "0" -a -z "$$stderr" ]; then \ echo "\033[32mPASSED\033[m $$f"; \ else \ + echo $$stderr; \ echo "\033[31mFAILED\033[m $$f"; \ fi \ done;