X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fregression%2Fports%2Fmcs51%2Fspec.mk;h=fd2a395665c869e0954aeb7361143bdce0943fdd;hb=c9b59d8ffd825b492613f8ef6198b4ea8b84b860;hp=86ec82a267099851a00ea70276dd6741052f0de8;hpb=206b7421b00197b98bfcb003687a2055f84cbf03;p=fw%2Fsdcc diff --git a/support/regression/ports/mcs51/spec.mk b/support/regression/ports/mcs51/spec.mk index 86ec82a2..fd2a3956 100644 --- a/support/regression/ports/mcs51/spec.mk +++ b/support/regression/ports/mcs51/spec.mk @@ -2,6 +2,10 @@ # # model small +ifndef DEV_NULL + DEV_NULL = /dev/null +endif + # path to uCsim S51A = $(top_builddir)sim/ucsim/s51.src/s51 S51B = $(top_builddir)bin/s51 @@ -38,7 +42,7 @@ $(PORT_CASES_DIR)/fwk.lib: # run simulator with 30 seconds timeout %.out: %$(EXEEXT) gen/timeout mkdir -p $(dir $@) - -gen/timeout 30 $(S51) -t32 -S in=/dev/null,out=$@ $< < $(PORTS_DIR)/mcs51/uCsim.cmd > $(@:.out=.sim) \ + -gen/timeout 30 "$(S51)" -t32 -S in=$(DEV_NULL),out=$@ $< < $(PORTS_DIR)/mcs51/uCsim.cmd > $(@:.out=.sim) \ || echo -e --- FAIL: \"timeout, simulation killed\" in $(<:$(EXEEXT)=.c)"\n"--- Summary: 1/1/1: timeout >> $@ python $(srcdir)/get_ticks.py < $(@:.out=.sim) >> $@ -grep -n FAIL $@ /dev/null || true