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