25 lines
531 B
Makefile
Raw Normal View History

.PHONY: all clean test
all: test
clean:
2024-02-22 23:39:31 +01:00
rm -f *.prg *.p8ir *.asm *.vice-* test_*.p8
2021-03-18 01:14:22 +01:00
test: clean generate test_prgs
generate:
2024-02-22 23:39:31 +01:00
python make_eq_tests.py
2024-03-01 00:13:03 +01:00
python make_eq_tests_splitw.py
2024-02-24 20:02:13 +01:00
python make_cmp_tests.py
2024-03-01 00:13:03 +01:00
python make_cmp_tests_splitw.py
2024-02-22 23:39:31 +01:00
p8compile -target cx16 -sourcelines *.p8 >/dev/null
2021-03-18 01:14:22 +01:00
test_prgs:
2024-02-22 23:39:31 +01:00
x16emu -run -prg ifelse.prg
2023-08-12 13:42:24 +02:00
x16emu -run -prg optimized_compares.prg
2023-04-09 15:06:40 +02:00
x16emu -run -prg more_compares.prg
2024-02-22 23:39:31 +01:00
for program in test*.prg; do \
echo "RUNNING:" $$program ; \
x16emu -run -prg $$program >/dev/null ; \
done