aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2023-06-17 16:49:57 -0700
committerAndrew Waterman <andrew@sifive.com>2023-06-17 16:49:57 -0700
commit396c61f54e54a2be846c98a0a3489c107cbd8bbb (patch)
tree366b7d590bf8f6cde3b7875d4f43a5c53722065e /Makefile.in
parent903ec29f902da41537411e210e7b6002eed7fb7e (diff)
downloadriscv-isa-sim-396c61f54e54a2be846c98a0a3489c107cbd8bbb.zip
riscv-isa-sim-396c61f54e54a2be846c98a0a3489c107cbd8bbb.tar.gz
riscv-isa-sim-396c61f54e54a2be846c98a0a3489c107cbd8bbb.tar.bz2
Restore MCPPBS unit-testing flow
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in21
1 files changed, 5 insertions, 16 deletions
diff --git a/Makefile.in b/Makefile.in
index c922e84..69f0405 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -256,7 +256,7 @@ $(2)_test_objs := $$(patsubst %.cc, %.o, $$($(2)_test_srcs))
$(2)_test_deps := $$(patsubst %.o, %.d, $$($(2)_test_objs))
$(2)_test_exes := $$(patsubst %.t.cc, %-utst, $$($(2)_test_srcs))
$(2)_test_outs := $$(patsubst %, %.out, $$($(2)_test_exes))
-$(2)_test_libs := $(1) $$($(2)_reverse_deps) utst
+$(2)_test_libs := $(1) $$($(2)_reverse_deps)
$(2)_test_libnames := $$(patsubst %, lib%.a, $$($(2)_test_libs))
$(2)_test_libarg := $$(patsubst %, -l%, $$($(2)_test_libs))
@@ -274,7 +274,8 @@ $(2)_junk += \
# Run unit tests
$$($(2)_test_outs) : %.out : %
- $(RUN) $(RUNFLAGS) ./$$< default | tee $$@
+ ./$$< default
+ touch $$@
$(2)_junk += $$($(2)_test_outs)
@@ -359,20 +360,8 @@ deps : $(deps)
# Check
#-------------------------------------------------------------------------
-bintest_outs = $(bintests:=.out)
-junk += $(bintest_outs)
-%.out: % all
- ./$* < /dev/null 2>&1 | tee $@
-
-check-cpp : $(test_outs)
- @echo
- ! grep -h -e'Unit Tests' -e'FAILED' -e'Segmentation' $^ < /dev/null
- @echo
-
-check-bin : $(bintest_outs)
- ! tail -n 1 $^ < /dev/null 2>&1 | grep FAILED
-
-check : check-cpp check-bin
+check : $(test_outs)
+ echo; grep -h -e'Unit Tests' -e'FAILED' -e'Segementation' $^ < /dev/null; echo
.PHONY : check