X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fregression%2FMakefile;h=0253dd531ce7473d4f0b656c83f6e743988dc021;hb=b9855fd6b84616c3963897a10fa20ea93531e5ce;hp=16a8d3731a95d01b7bcdeda5861e953f412c19f8;hpb=ba0fd952c6e54c27f0a6029b610e3fa5cdbf601f;p=fw%2Fsdcc diff --git a/support/regression/Makefile b/support/regression/Makefile index 16a8d373..0253dd53 100644 --- a/support/regression/Makefile +++ b/support/regression/Makefile @@ -60,7 +60,7 @@ GENERATE_CASES = generate-cases.py # Each directory under ports/ is used as a port name. Each port is tested. # Each port must have a spec.mk which describes how to build the object # files and how to run the emulator. -ALL_PORTS = $(filter-out CVS mcs51 mcs51-large ds390 gbz80,$(notdir $(wildcard $(PORTS_DIR)/*))) +ALL_PORTS = $(filter-out CVS xa51 mcs51 mcs51-large mcs51-stack-auto ds390 gbz80 hc08,$(notdir $(wildcard $(PORTS_DIR)/*))) # These ports will be cleaned with 'make clean' CLEAN_PORTS = $(filter-out CVS,$(notdir $(wildcard $(PORTS_DIR)/*))) @@ -69,29 +69,43 @@ all: test-ports # Test all of the ports test-ports: - for i in $(ALL_PORTS); do $(MAKE) inter-port-clean test-port PORT=$$i; done + for i in $(ALL_PORTS); do $(MAKE) test-port PORT=$$i; done # Helper rule for testing the z80 port only test-z80: - $(MAKE) inter-port-clean test-port PORT=z80 + $(MAKE) test-port PORT=z80 # Helper rule for testing the z80 port only test-gbz80: - $(MAKE) inter-port-clean test-port PORT=gbz80 + $(MAKE) test-port PORT=gbz80 # Helper rule for testing the mcs51 port only test-mcs51: - $(MAKE) inter-port-clean test-port PORT=mcs51 + $(MAKE) test-port PORT=mcs51 test-mcs51-large: - $(MAKE) inter-port-clean test-port PORT=mcs51-large + $(MAKE) test-port PORT=mcs51-large +test-mcs51-stack-auto: + $(MAKE) make-library test-port PORT=mcs51-stack-auto # Helper rule for testing the ds390 port only test-ds390: - $(MAKE) inter-port-clean test-port PORT=ds390 + $(MAKE) test-port PORT=ds390 + +# Helper rule for testing the z80 port only(use ucSim simulator) +test-ucz80: + $(MAKE) test-port PORT=ucz80 + +# Helper rule for testing the hc08 port only(use ucSim simulator) +test-hc08: + $(MAKE) test-port PORT=hc08 + +# Helper rule for testing the xa51 port only(use ucSim simulator) +test-xa51: + $(MAKE) test-port PORT=xa51 ### Helper rule for testing the host cc only test-host: - $(MAKE) inter-port-clean test-port PORT=host + $(MAKE) test-port PORT=host test-host2: $(MAKE) test-port PORT=host @@ -136,11 +150,9 @@ SDCCFLAGS += -Ifwk/include -Itests # Rule to generate the iterations of a test suite off the soure suite. $(PORT_CASES_DIR)/%/iterations.stamp: $(TESTS_DIR)/%.c $(GENERATE_CASES) echo Processing $< - rm -rf $(CASES_DIR)/$(TESTS_NAME) - mkdir -p $(CASES_DIR)/$(TESTS_NAME) + rm -rf `dirname $@` mkdir -p `dirname $@` - python $(GENERATE_CASES) $< > /dev/null - cp $(CASES_DIR)/$(TESTS_NAME)/*.c `dirname $@` + python $(GENERATE_CASES) $< `dirname $@` > /dev/null touch $@ # Rule linking the combined results log to all of the files in the @@ -187,10 +199,6 @@ $(RESULTS): $(SUB_RESULTS) # BeginGeneric rules -clean: inter-port-clean +clean: rm -rf $(CASES_DIR) $(RESULTS_DIR) *.pyc fwk/lib/timeout fwk/lib/timeout.exe - for i in $(CLEAN_PORTS); do $(MAKE) -f $(PORTS_DIR)/$$i/spec.mk _clean PORT=$$i; done - -inter-port-clean: - rm -f fwk/lib/*.o fwk/lib/*.asm fwk/lib/*.rst fwk/lib/*.lst fwk/lib/*.rel \ - fwk/lib/*.ihx fwk/lib/*.map fwk/lib/*.sym + for i in $(CLEAN_PORTS); do $(MAKE) -f $(PORTS_DIR)/$$i/spec.mk _clean PORTS_DIR=$(PORTS_DIR) PORT=$$i; done