* sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 31 Aug 2006 19:06:14 +0000 (19:06 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Thu, 31 Aug 2006 19:06:14 +0000 (19:06 +0000)
* 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

ChangeLog
sim/ucsim/cmd.src/newcmd.cc
support/regression/ports/ds390/spec.mk
support/regression/ports/mcs51/spec.mk
support/regression/ports/xa51/spec.mk

index c03c548a1941aaee6091928723c0292e4a4fd066..01e5afc9817e62810a3769f49ef395056a5cc36d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
 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>
 
index a603324d12b46ee43c937e6c0fae38b7202a6d50..f5e5c9a0a8d9dccecfe8a118dd87d67e552b8d71 100644 (file)
@@ -32,6 +32,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include <errno.h>
 #include <stdarg.h>
 #include <stdlib.h>
+#include <ctype.h>
 #include "i_string.h"
 
 #include "cmdlexcl.h"
index 834d550734aca9bad65a131f5f9f22e282b35aae..6f0a5bab31db494f31dc6936470eed555d37b0ee 100644 (file)
@@ -1,5 +1,9 @@
 # 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
@@ -32,7 +36,7 @@ $(PORT_CASES_DIR)/%$(OBJEXT): fwk/lib/%.c
 # 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
index 86ec82a267099851a00ea70276dd6741052f0de8..fd2a395665c869e0954aeb7361143bdce0943fdd 100644 (file)
@@ -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
index eb50f0195cc1c00a3224624f5c7de83ef74be317..1fb8a4d3cc2a966dd9ba1403e71d2ed27815fc09 100755 (executable)
@@ -1,5 +1,9 @@
 # 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
@@ -29,7 +33,7 @@ $(PORT_CASES_DIR)/%$(OBJEXT): fwk/lib/%.c
 # 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