|
@@ -65,18 +65,13 @@ define exec_test
|
|
test -z "$$expected_ret" && export expected_ret=0 ; \
|
|
test -z "$$expected_ret" && export expected_ret=0 ; \
|
|
if ! test $$ret -eq $$expected_ret ; then \
|
|
if ! test $$ret -eq $$expected_ret ; then \
|
|
echo "ret == $$ret ; expected_ret == $$expected_ret" ; \
|
|
echo "ret == $$ret ; expected_ret == $$expected_ret" ; \
|
|
- cat "$(binary_name).out" ; \
|
|
+ exit 1 ; \
|
|
- numerr="`cat $(COUNTER)`" ; \
|
|
|
|
- expr $$numerr + 1 > $(COUNTER) ; \
|
|
|
|
fi
|
|
fi
|
|
$(SCAT) "$(binary_name).out"
|
|
$(SCAT) "$(binary_name).out"
|
|
endef
|
|
endef
|
|
|
|
|
|
test check all: run
|
|
test check all: run
|
|
run: $(RUN_TARGETS) compile
|
|
run: $(RUN_TARGETS) compile
|
|
- @numerr="`cat $(COUNTER)`" ; \
|
|
|
|
- echo "Encountered $$numerr errors" ; \
|
|
|
|
- test $$numerr -eq 0 || exit 1
|
|
|
|
|
|
|
|
$(RUN_TARGETS): $(TARGETS)
|
|
$(RUN_TARGETS): $(TARGETS)
|
|
$(exec_test)
|
|
$(exec_test)
|