* support/regression/ports/ds390/spec.mk, support/regression/ports/mcs51/spec.mk,
support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
To run regression tests in mingw environment type:
make DEV_NULL=NUL CC=gcc
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4352
4a8a32a2-be11-0410-ad9d-
d568d2c75423
2006-08-31 Borut Razem <borut.razem AT siol.net>
* sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
+ * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
+ * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
+ * support/regression/ports/ds390/spec.mk,
+ support/regression/ports/mcs51/spec.mk,
+ support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
+ To run regression tests in mingw environment:
+ make DEV_NULL=NUL CC=gcc
2006-08-30 Borut Razem <borut.razem AT siol.net>
#include <errno.h>
#include <stdarg.h>
#include <stdlib.h>
+#include <ctype.h>
#include "i_string.h"
#include "cmdlexcl.h"
# Port specification for the ds390 port running with uCsim
+ifndef DEV_NULL
+ DEV_NULL = /dev/null
+endif
+
# path to uCsim
S51A = $(top_builddir)sim/ucsim/s51.src/s51
S51B = $(top_builddir)bin/s51
# run simulator with 25 seconds timeout
%.out: %$(EXEEXT) $(CASES_DIR)/timeout
mkdir -p $(dir $@)
- -$(CASES_DIR)/timeout 25 $(S51) -tds390f -S in=/dev/null,out=$@ $< < $(PORTS_DIR)/ds390/uCsim.cmd > $(@:.out=.sim) || \
+ -$(CASES_DIR)/timeout 25 $(S51) -tds390f -S in=$(DEV_NULL),out=$@ $< < $(PORTS_DIR)/ds390/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
#
# 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
# 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
# Port specification for the xa51 port running with uCsim
+ifndef DEV_NULL
+ DEV_NULL = /dev/null
+endif
+
# path to uCsim
SXA_A = $(top_builddir)sim/ucsim/xa.src/sxa
SXA_B = $(top_builddir)bin/sxa
# run simulator with 1 second timeout
%.out: %$(EXEEXT) $(CASES_DIR)/timeout
mkdir -p $(dir $@)
- -$(CASES_DIR)/timeout 1 $(SXA) -S in=/dev/null,out=$@ $< < $(PORTS_DIR)/xa51/uCsim.cmd >/dev/null || \
+ -$(CASES_DIR)/timeout 1 $(SXA) -S in=$(DEV_NULL),out=$@ $< < $(PORTS_DIR)/xa51/uCsim.cmd >/dev/null || \
echo -e --- FAIL: \"timeout, simulation killed\" in $(<:.ihx=.c)"\n"--- Summary: 1/1/1: timeout >> $@
-grep -n FAIL $@ /dev/null || true