Remove debug printf that was cluttering up output.
[riscv-isa-sim.git] / Makefile.in
index 2eb7bfd0443827ed903b902aa7c1034b66652109..b33eff4d94da7bca3a2b3ea3ffe42cc0acfb5935 100644 (file)
@@ -71,7 +71,7 @@ install_exes_dir := $(INSTALLDIR)/bin
 sprojs         := @subprojects@
 sprojs_enabled := @subprojects_enabled@
 
-sprojs_include := -I. $(addprefix -I$(src_dir)/, $(sprojs_enabled))
+sprojs_include := -I. -I$(src_dir) $(addprefix -I$(src_dir)/, $(sprojs_enabled))
 VPATH := $(addprefix $(src_dir)/, $(sprojs_enabled))
 
 #-------------------------------------------------------------------------
@@ -121,8 +121,8 @@ INSTALL_EXE   := $(INSTALL) -m 555
 STOW          := @stow@
 
 # Tests
-bintests = tests/gdbserver.py \
-          tests/ebreak.py
+bintests = $(src_dir)/tests/gdbserver.py \
+          $(src_dir)/tests/ebreak.py
 
 #-------------------------------------------------------------------------
 # Include subproject makefile fragments
@@ -339,10 +339,12 @@ junk += $(bintest_outs)
        ./$* < /dev/null 2>&1 | tee $@
 
 check-cpp : $(test_outs)
-       echo; grep -h -e'Unit Tests' -e'FAILED' -e'Segmentation' $^ < /dev/null; echo
+       @echo
+       ! grep -h -e'Unit Tests' -e'FAILED' -e'Segmentation' $^ < /dev/null
+       @echo
 
 check-bin : $(bintest_outs)
-       tail -n 1 $^ < /dev/null
+       ! tail -n 1 $^ < /dev/null 2>&1 | grep FAILED
 
 check : check-cpp check-bin