* support/regression/Makefile.in,
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 4 May 2008 07:04:12 +0000 (07:04 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 4 May 2008 07:04:12 +0000 (07:04 +0000)
  support/regression/fwk/lib/testfwk.c,
  support/regression/ports/ds390/spec.mk,
  support/regression/ports/hc08/spec.mk,
  support/regression/ports/mcs51-common/spec.mk,
  support/regression/ports/mcs51-large/spec.mk,
  support/regression/ports/mcs51-medium/spec.mk,
  support/regression/ports/mcs51-small/spec.mk,
  support/regression/ports/mcs51-stack-auto/spec.mk,
  support/regression/ports/mcs51-xstack-auto/spec.mk,
  support/regression/ports/pic14/spec.mk,
  support/regression/ports/pic16/spec.mk,
  support/regression/ports/ucz80/spec.mk:
  added possibility to define the sdcc binary directory SDCC_BIN_PATH
  used to run regeression tests

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5152 4a8a32a2-be11-0410-ad9d-d568d2c75423

13 files changed:
ChangeLog
support/regression/Makefile.in
support/regression/ports/ds390/spec.mk
support/regression/ports/hc08/spec.mk
support/regression/ports/mcs51-common/spec.mk
support/regression/ports/mcs51-large/spec.mk
support/regression/ports/mcs51-medium/spec.mk
support/regression/ports/mcs51-small/spec.mk
support/regression/ports/mcs51-stack-auto/spec.mk
support/regression/ports/mcs51-xstack-auto/spec.mk
support/regression/ports/pic14/spec.mk
support/regression/ports/pic16/spec.mk
support/regression/ports/ucz80/spec.mk

index f34c872d30c2705e8d9489955ad05f59674f68da..4dcf432bbaae143bda29ec22421b4943f0a8742e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2008-05-04 Borut Razem <borut.razem AT siol.net>
+
+       * support/regression/Makefile.in,
+         support/regression/fwk/lib/testfwk.c,
+         support/regression/ports/ds390/spec.mk,
+         support/regression/ports/hc08/spec.mk,
+         support/regression/ports/mcs51-common/spec.mk,
+         support/regression/ports/mcs51-large/spec.mk,
+         support/regression/ports/mcs51-medium/spec.mk,
+         support/regression/ports/mcs51-small/spec.mk,
+         support/regression/ports/mcs51-stack-auto/spec.mk,
+         support/regression/ports/mcs51-xstack-auto/spec.mk,
+         support/regression/ports/pic14/spec.mk,
+         support/regression/ports/pic16/spec.mk,
+         support/regression/ports/ucz80/spec.mk:
+         added possibility to define the sdcc binary directory SDCC_BIN_PATH
+         used to run regeression tests
+
 2008-05-01 Raphael Neider <rneider AT web.de>
 
        * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
index 3c7fe53cddf7769d144dc4812f6ae4c1ff46ccc0..c3ba976407933df9398ac4f43b748efb89d0bd4a 100644 (file)
@@ -151,11 +151,14 @@ PORT_RESULTS_DIR = $(RESULTS_DIR)/$(PORT)
 PORT_RESULTS = $(ALL_TESTS:$(TESTS_DIR)/%.c=$(PORT_RESULTS_DIR)/%.out)
 
 SDCC_EXTRA_DIR = $(top_builddir)/../sdcc-extra
-INC_DIR = $(top_srcdir)/device/include
 
 # Defaults.  Override in spec.mk if required.
 # Path to SDCC
-SDCC = $(top_builddir)/bin/sdcc
+ifdef SDCC_BIN_PATH
+  SDCC = $(SDCC_BIN_PATH)/sdcc
+else
+  SDCC = $(top_builddir)/bin/sdcc
+endif
 # Base flags.
 SDCCFLAGS += --fverbose-asm -DNO_VARARGS
 # Extension of object intermediate files
@@ -172,7 +175,7 @@ endif
 
 make_library: $(MAKE_LIBRARY)
 
-SDCCFLAGS += -I$(srcdir)/fwk/include -I$(srcdir)/tests -I$(INC_DIR)
+SDCCFLAGS += -I$(srcdir)/fwk/include -I$(srcdir)/tests
 
 # List of intermediate files to keep.  Pretty much keep everything as
 # disk space is free.
index 0809f0d00e94cd78d59af6b93deef9ccbb293584..46da096af0cf634ac70d115c1d4fad1d047c3270 100644 (file)
@@ -1,19 +1,24 @@
-# Port specification for the ds390 port running with uCsim
+# Regression test specification for the ds390 target 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
+ifdef SDCC_BIN_PATH
+  S51 = $(SDCC_BIN_PATH)/s51
+else
+  S51A = $(top_builddir)/sim/ucsim/s51.src/s51
+  S51B = $(top_builddir)/bin/s51
 
-S51 = $(shell if [ -f $(S51A) ]; then echo $(S51A); else echo $(S51B); fi)
+  S51 = $(shell if [ -f $(S51A) ]; then echo $(S51A); else echo $(S51B); fi)
 
-SDCCFLAGS +=-mds390 --nostdinc --less-pedantic -DREENTRANT=reentrant -Wl-r -I$(top_srcdir)
-LINKFLAGS = --nostdlib
+  SDCCFLAGS += --nostdinc
+  LINKFLAGS += --nostdlib -L $(top_builddir)/device/lib/build/ds390 
+endif
+
+SDCCFLAGS +=-mds390 --less-pedantic -DREENTRANT=reentrant -Wl-r -I$(top_srcdir)
 LINKFLAGS += libds390.lib libsdcc.lib liblong.lib libint.lib libfloat.lib
-LIBDIR = $(top_builddir)/device/lib/build/ds390
 
 OBJEXT = .rel
 EXEEXT = .ihx
@@ -22,7 +27,7 @@ EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
 
 # Rule to link into .ihx
 %$(EXEEXT): %$(OBJEXT) $(EXTRAS)
-       $(SDCC) $(SDCCFLAGS) $(LINKFLAGS) -L $(LIBDIR) $(EXTRAS) $< -o $@
+       $(SDCC) $(SDCCFLAGS) $(LINKFLAGS) $(EXTRAS) $< -o $@
 
 %$(OBJEXT): %.c
        $(SDCC) $(SDCCFLAGS) -c $< -o $@
index 7257b6920d6764ca897ee87a127b2518bac83915..0db5e33089728b4abaded6bd768f62706c154339 100644 (file)
@@ -1,13 +1,25 @@
+# Regression test specification for the hc08 target running with uCsim
+#
+
 # path to uCsim
-UCHC08A = $(top_builddir)/sim/ucsim/hc08.src/shc08
-UCHC08B = $(top_builddir)/bin/shc08
+ifdef SDCC_BIN_PATH
+  UCHC08 = $(SDCC_BIN_PATH)/shc08
+
+  AS_HC08 = $(SDCC_BIN_PATH)/as-hc08
+else
+  UCHC08A = $(top_builddir)/sim/ucsim/hc08.src/shc08
+  UCHC08B = $(top_builddir)/bin/shc08
+
+  UCHC08 = $(shell if [ -f $(UCHC08A) ]; then echo $(UCHC08A); else echo $(UCHC08B); fi)
+
+  AS_HC08 = $(top_builddir)/bin/as-hc08
 
-UCHC08 = $(shell if [ -f $(UCHC08A) ]; then echo $(UCHC08A); else echo $(UCHC08B); fi)
+  SDCCFLAGS += --nostdinc
+  LINKFLAGS += --nostdlib -L $(top_builddir)/device/lib/build/hc08
+endif
 
-SDCCFLAGS +=-mhc08 --nostdinc --less-pedantic --out-fmt-ihx -DREENTRANT=reentrant -I$(top_srcdir)
-LINKFLAGS = --nostdlib
+SDCCFLAGS +=-mhc08 --less-pedantic --out-fmt-ihx -DREENTRANT=reentrant -I$(top_srcdir)
 LINKFLAGS += hc08.lib
-LIBDIR = $(top_builddir)/device/lib/build/hc08
 
 OBJEXT = .rel
 EXEEXT = .ihx
@@ -18,10 +30,10 @@ EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
 #%$(EXEEXT): %$(OBJEXT) $(EXTRAS)
 
 %$(EXEEXT): %$(OBJEXT) $(EXTRAS)
-       $(SDCC) $(SDCCFLAGS) $(LINKFLAGS) -L $(LIBDIR) $(EXTRAS) $< -o $@
+       $(SDCC) $(SDCCFLAGS) $(LINKFLAGS) $(EXTRAS) $< -o $@
 
 %$(OBJEXT): %.asm
-       $(top_builddir)/bin/as-hc08 -plosgff $<
+       $(AS_HC08) -plosgff $<
 
 %$(OBJEXT): %.c
        $(SDCC) $(SDCCFLAGS) -c $< -o $@
index c2030cd6408f3decbd64efb225a1421cc8c643d9..a2ddf22baf19efab9022cafbda5200cbd8b3496b 100644 (file)
@@ -1,17 +1,23 @@
-# Common specification for the mcs51 ports running with uCsim
+# Common regression test specification for the mcs51 targets 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
+ifdef SDCC_BIN_PATH
+  S51 = $(SDCC_BIN_PATH)/s51
+else
+  S51A = $(top_builddir)/sim/ucsim/s51.src/s51
+  S51B = $(top_builddir)/bin/s51
 
-S51 = $(shell if [ -f $(S51A) ]; then echo $(S51A); else echo $(S51B); fi)
+  S51 = $(shell if [ -f $(S51A) ]; then echo $(S51A); else echo $(S51B); fi)
 
-SDCCFLAGS +=--nostdinc --less-pedantic -DREENTRANT=reentrant -I$(INC_DIR)/mcs51 -I$(top_srcdir)
-LINKFLAGS = --nostdlib
+  SDCCFLAGS += --nostdinc
+  LINKFLAGS += --nostdlib
+endif
+
+SDCCFLAGS += --less-pedantic -DREENTRANT=reentrant -I$(INC_DIR)/mcs51 -I$(top_srcdir)
 LINKFLAGS += mcs51.lib libsdcc.lib liblong.lib libint.lib libfloat.lib
 
 OBJEXT = .rel
@@ -22,7 +28,7 @@ FWKLIB = $(PORT_CASES_DIR)/T2_isr$(OBJEXT)
 
 # Rule to link into .ihx
 %$(EXEEXT): %$(OBJEXT) $(EXTRAS) $(FWKLIB) $(PORT_CASES_DIR)/fwk.lib
-       $(SDCC) $(SDCCFLAGS) $(LINKFLAGS) -L $(LIBDIR) $(EXTRAS) $(PORT_CASES_DIR)/fwk.lib $< -o $@
+       $(SDCC) $(SDCCFLAGS) $(LINKFLAGS) $(EXTRAS) $(PORT_CASES_DIR)/fwk.lib $< -o $@
 
 %$(OBJEXT): %.c
        $(SDCC) $(SDCCFLAGS) -c $< -o $@
index e919a49e134acf00c60dce090723d165f37e04af..de4a71b39d76dad9286763c863e55974b14bfca9 100644 (file)
@@ -1,4 +1,4 @@
-# Port specification for the mcs51-large port running with uCsim
+# Regression test specification for the mcs51-large target running with uCsim
 #
 # model large
 
index a6014ab7f981ba754beeda507065be359286b043..ca8e875c11b1ea39c5539054826b22a774cd145b 100644 (file)
@@ -1,4 +1,4 @@
-# Port specification for the mcs51-medium port running with uCsim
+# Regression test specification for the mcs51-medium target running with uCsim
 #
 # model medium
 
index 58a0616d91957689facba9635e9de179118f49bf..f685a9afd24591a9f1a3a3296eb18fcc14b3d5a2 100644 (file)
@@ -1,4 +1,4 @@
-# Port specification for the mcs51 port running with uCsim
+# Regression test specification for the mcs51 target running with uCsim
 #
 # model small
 
index 4727dccdf641099c3fff5dbdebacd9d6adf5b123..12d7a412c6fa0391a4ed72da0f741d6b332375fd 100644 (file)
@@ -1,4 +1,4 @@
-# Port specification for the mcs51-stack-auto port running with uCsim
+# Regression test specification for the mcs51-stack-auto target running with uCsim
 #
 # model small stack-auto
 
index 6537e7eef8eadb1a1931997ee6e17fba50be4732..efbea3c3a0c2c5cbd363b2d843060806d97ef7d7 100644 (file)
@@ -1,4 +1,4 @@
-# Port specification for the mcs51-xstack-auto port running with uCsim
+# Regression test specification for the mcs51-xstack-auto target running with uCsim
 #
 # model small xstack-auto
 
index c2cd52ba860351d1433165d8ca77df8b7cc086d8..accf671ac39b287e8ec9373d44a5ca2bd27b2fb1 100644 (file)
@@ -1,4 +1,4 @@
-# Port specification for the pic14 port running with gpsim
+# Regression test specification for the pic14 target running with gpsim
 
 # path to gpsim
 ifdef GPSIM_PATH
@@ -7,10 +7,13 @@ else
   GPSIM := gpsim
 endif
 
-SDCCFLAGS += -mpic14 -pp16f877 -I$(top_srcdir)/device/include/pic --nostdinc --less-pedantic -Wl,-q -DREENTRANT=reentrant -I$(top_srcdir)
-LINKFLAGS = --nostdlib
+ifndef SDCC_BIN_PATH
+  SDCCFLAGS += --nostdinc
+  LINKFLAGS += --nostdlib -L $(top_builddir)/device/lib/build/pic
+endif
+
+SDCCFLAGS += -mpic14 -pp16f877 -I$(top_srcdir)/device/include/pic --less-pedantic -Wl,-q -DREENTRANT=reentrant -I$(top_srcdir)
 LINKFLAGS += libsdcc.lib libm.lib
-LIBDIR = $(top_builddir)/device/lib/build/pic
 
 OBJEXT = .o
 EXEEXT = .cod
@@ -19,7 +22,7 @@ EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
 
 # Rule to link into .ihx
 %$(EXEEXT): %$(OBJEXT) $(EXTRAS)
-       -$(SDCC) $(SDCCFLAGS) $(LINKFLAGS) -L $(LIBDIR) $(EXTRAS) $< -o $@
+       -$(SDCC) $(SDCCFLAGS) $(LINKFLAGS) $(EXTRAS) $< -o $@
 
 %$(OBJEXT): %.c
        -$(SDCC) $(SDCCFLAGS) -c $< -o $@
index 8372878791107f7469974d54d890eeae6b9d3f73..d6e2339fb3a431a6e28179f414935a23e9f925f6 100644 (file)
@@ -1,4 +1,4 @@
-# Port specification for the pic16 port running with gpsim
+# Regression test specification for the pic16 target running with gpsim
 
 # path to gpsim
 ifdef GPSIM_PATH
@@ -7,10 +7,14 @@ else
   GPSIM := gpsim
 endif
 
-SDCCFLAGS += -mpic16 -pp18f452 -I$(top_srcdir)/device/include/pic16 --nostdinc --less-pedantic -Wl,-q -DREENTRANT=reentrant -I$(top_srcdir)
-LINKFLAGS = --nostdlib
+ifndef SDCC_BIN_PATH
+  SDCCFLAGS += --nostdinc
+  LINKFLAGS += --nostdlib -L $(top_builddir)/device/lib/build/pic16
+endif
+
+SDCCFLAGS += -mpic16 -pp18f452 -I$(top_srcdir)/device/include/pic16 --less-pedantic -Wl,-q -DREENTRANT=reentrant -I$(top_srcdir)
+SDCCFLAGS += --no-peep
 LINKFLAGS += libsdcc.lib libc18f.lib libm18f.lib
-LIBDIR = $(top_builddir)/device/lib/build/pic16
 
 OBJEXT = .o
 EXEEXT = .cod
@@ -19,7 +23,7 @@ EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
 
 # Rule to link into .ihx
 %$(EXEEXT): %$(OBJEXT) $(EXTRAS)
-       -$(SDCC) $(SDCCFLAGS) $(LINKFLAGS) -L $(LIBDIR) $(EXTRAS) $< -o $@
+       -$(SDCC) $(SDCCFLAGS) $(LINKFLAGS) $(EXTRAS) $< -o $@
 
 %$(OBJEXT): %.c
        -$(SDCC) $(SDCCFLAGS) -c $< -o $@
index a2daa05386ccda5cf487cd3fcd0182c3546590ff..04e1b06b44d43c0e1b3ef0db3888c8f4c3d4cdf3 100644 (file)
@@ -1,18 +1,26 @@
-# Port specification for the xxxx port running with uCsim
+# Regression test specification for the z80 target running with uCsim
 #
 
 # path to uCsim
-# path to uCsim
-SZ80A = $(top_builddir)/sim/ucsim/z80.src/sz80
-SZ80B = $(top_builddir)/bin/sz80
+ifdef SDCC_BIN_PATH
+  UCZ80 = $(SDCC_BIN_PATH)/sz80
+
+  AS_Z80 = $(SDCC_BIN_PATH)/as-z80
+else
+  SZ80A = $(top_builddir)/sim/ucsim/z80.src/sz80
+  SZ80B = $(top_builddir)/bin/sz80
+
+  UCZ80 = $(shell if [ -f $(SZ80A) ]; then echo $(SZ80A); else echo $(SZ80B); fi)
+
+  AS_Z80 = $(top_builddir)/bin/as-z80
 
-UCZ80 = $(shell if [ -f $(SZ80A) ]; then echo $(SZ80A); else echo $(SZ80B); fi)
+  SDCCFLAGS += --nostdinc
+  LINKFLAGS += --nostdlib -L $(top_builddir)/device/lib/build/z80
+endif
 
 SDCCFLAGS +=-mz80 --less-pedantic --profile -DREENTRANT= -I$(top_srcdir)
 #SDCCFLAGS +=--less-pedantic -DREENTRANT=reentrant
-LINKFLAGS = --nostdlib
 LINKFLAGS += z80.lib
-LIBDIR = $(top_builddir)/device/lib/build/z80
 
 #OBJEXT = .o
 EXEEXT = .ihx
@@ -21,10 +29,10 @@ EXTRAS = $(PORT_CASES_DIR)/testfwk$(OBJEXT) $(PORT_CASES_DIR)/support$(OBJEXT)
 
 # Rule to link into .ihx
 %.ihx: %.c $(EXTRAS)
-       $(SDCC) $(SDCCFLAGS) $(LINKFLAGS) -L $(LIBDIR) $(EXTRAS) $< -o $@
+       $(SDCC) $(SDCCFLAGS) $(LINKFLAGS) $(EXTRAS) $< -o $@
 
 $(PORT_CASES_DIR)/%$(OBJEXT): $(PORTS_DIR)/$(PORT)/%.asm
-       $(top_builddir)/bin/as-z80 -plosgff $@ $<
+       $(AS_Z80) -plosgff $@ $<
 
 %$(OBJEXT): %.c
        $(SDCC) $(SDCCFLAGS) -c $< -o $@