On Fri, 21 May 2004, Maarten Brock wrote:
> > As far as I know, the only way to run the regression tests under
> > Windows is via the Cygwin development environment. The simulators
> > definately need to be built and run under Cygwin (and without using
> > Mingw32); they use some feature of sockets that Windows does not
> > natively support. You may be able to use an MSVC compiled SDCC for the
> > regression tests, but it would probably be less error prone to
> > recompile it as well under Cygwin.
> Thanks Erik,
> I considered this to be more cumbersome then telnetting to a linux box I
> have access to and compile and run sdcc there. That works ok.
> Now I need to run the regression tests. This is what I've done.
> I configured and compiled sdcc
> I compiled sdcc-extra
> I tried to get gbdk-lib from cvs but that timed out. So instead I
> downloaded the gbdk-lib 2.95 released file. When I run make it generates
> 2 errors and 4 warnings.
> So I just ran make -s in sdcc/support/regression
> The result is 320 fails for ucz80.
> Can you give me some more hints?
I don't recall needing gbdk-lib.
There are two z80 simulators that the regression tests can use:
make test-z80 uses sdcc-extra/emu/rrz80/rrz80
make test-ucz80 uses sdcc/sim/ucsim/z80.src/sz80
The ucz80 tests will fail by default since sdcc's makefiles don't build
sz80 automatically. I really don't see the point in running the regression
tests on two simulators, since they both seem to work, so I usually edit
the regression test Makefile. Find the line that begins ALL_PORTS and
change it to something like:
ALL_PORTS = $(filter-out CVS xa51 ucz80 gbz80 hc08,$(notdir $(wildcard
This will cause it to skip the xa51, ucz80, gbz80, and hc08 tests and only
run mcs51, mcs51-large, mcs51-stack-auto, ds390, and z80. For some reason
(and I am definately not a make guru), it doesn't build reentrant
libraries for the mcs51-stack-auto tests if it has run some other tests,
so it will probably give an error. Just ignore it and run make again (or
make test-mcs51-stack-auto by itself) and it should work that time.