# The paths below assume that sdcc, sdcc-extra, and gbdk-lib all reside in
# the same directory.
-# Old nores:
+# Old notes:
# Starting at the bottom
# Set of source test suites
# Each source suite is processesd producing multiple device specific test suites.
# files and how to run the emulator.
ALL_PORTS = $(filter-out CVS,$(notdir $(wildcard $(PORTS_DIR)/*)))
+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
+# Helper rule for testing the z80 port only
+test-z80:
+ $(MAKE) inter-port-clean clean test-port PORT=z80
+
+# Helper rule for testing the host cc only
+test-host:
+ $(MAKE) inter-port-clean clean test-port PORT=host
+
+test-host2:
+ $(MAKE) test-port PORT=host
+
# Begin per-port rules
# List of all of the known source test suites.
ALL_TESTS = $(shell find $(TESTS_DIR) -name "*.c")
# Rule to generate the iterations of a test suite off the soure suite.
$(PORT_CASES_DIR)/%$(DIREXT): $(TESTS_DIR)/%.c $(GENERATE_CASES)
+ echo Processing $<
rm -rf $(CASES_DIR)/tests
mkdir -p $(CASES_DIR)/tests
mkdir -p $@
# test
# List of all of the generated iteration source files.
-SUB_CASES = $(wildcard $(CASES)/*.c)
+SUB_CASES = $(sort $(wildcard $(CASES)/*.c))
# List of all the sub result logs generated from the iterations.
SUB_RESULTS = $(SUB_CASES:%.c=%.out)
# Overall target. Concatenation of all of the sub results.