Skip to content

Commit df749ab

Browse files
committed
libtest target alternative to libs
saves me about 20 minutes if I only want to run tests
1 parent a325c95 commit df749ab

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ mostlyclean clean:
2121
avail unavail bin:
2222
@$(MAKE) -C src --no-print-directory $@
2323

24-
lib:
24+
lib libtest:
2525
@$(MAKE) -C libsrc --no-print-directory $@
2626

2727
doc html info:
@@ -43,7 +43,7 @@ util:
4343
checkstyle:
4444
@$(MAKE) -C .github/checks --no-print-directory $@
4545

46-
# simple "test" target, only run regression tests for c64 target
46+
# runs regression tests, requires libtest target libraries
4747
test:
4848
@$(MAKE) -C test --no-print-directory $@
4949

libsrc/Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ TARGETS = apple2 \
3939
sym1 \
4040
telestrat
4141

42+
TARGETTEST = none \
43+
sim6502 \
44+
sim65c02
45+
4246
DRVTYPES = emd \
4347
joy \
4448
mou \
@@ -53,7 +57,7 @@ OUTPUTDIRS := lib
5357
$(subst ../,,$(wildcard ../target/*/drv/*)) \
5458
$(subst ../,,$(wildcard ../target/*/util))
5559

56-
.PHONY: all mostlyclean clean install zip lib $(TARGETS)
60+
.PHONY: all mostlyclean clean install zip lib libtest $(TARGETS)
5761

5862
.SUFFIXES:
5963

@@ -81,6 +85,8 @@ datadir = $(PREFIX)/share/cc65
8185

8286
all lib: $(TARGETS)
8387

88+
libtest: $(TARGETTEST)
89+
8490
mostlyclean:
8591
$(call RMDIR,../libwrk)
8692

test/readme.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ compiler is working as expected (when the tests behave as described):
6868
which will require additional changes to the makefile(s).
6969

7070

71-
To run the tests use "make" in this (top) directory, the makefile should exit
71+
These tests only require a subset of the platform libraries. In the (top)
72+
directory above this one, "make libtest" can be used to build only those
73+
libraries needed for testing, instead of "make lib".
74+
75+
To run the tests use "make" in this (test) directory, the makefile should exit
7276
with no error.
7377

7478
When a test failed you can use "make continue" to run further tests.

0 commit comments

Comments
 (0)