moved test programs to test folder in compiler module

This commit is contained in:
Irmen de Jong 2021-03-17 19:42:36 +01:00
parent 2b267b4ba1
commit 7f21d89fea
28 changed files with 22 additions and 4 deletions

View File

@ -0,0 +1,13 @@
.PHONY: all clean test
all: test
clean:
rm -f *.prg *.asm *.vice-*
test: clean
p8compile *.p8 >/dev/null
for program in *.prg; do \
echo "RUNNING:" $$program ; \
x64sc $$program >/dev/null ; \
done

View File

@ -174,14 +174,18 @@ def gen_comp_equal(dt):
gen_test(dt, "==", maxval, maxval-1, False)
def gen_comp_notequal(dt):
minval, maxval = minmaxvalues(dt)
def gen_comp_header(dt):
print(" ; tests: ", dt, "!=")
print(" comparison = \"!=\"")
print(" txt.print(datatype)")
print(" txt.spc()")
print(" txt.print(comparison)")
print(" txt.nl()")
def gen_comp_notequal(dt):
minval, maxval = minmaxvalues(dt)
gen_comp_header(dt)
gen_test(dt, "!=", 0, 0, False)
gen_test(dt, "!=", 0, 1, True)
gen_test(dt, "!=", 100, 100, False)

View File

@ -2,8 +2,9 @@
TODO
====
- fix imageviewer only showing first image
- fix errors in comparison changes
- fix errors in comparison changes (first complete the new comparison test generation tool)
- fix imageviewer only showing first image (likely fixed by the one above)
- fix X register (evalstack) issue in arithmetic/builtins.prg
- add cx16 vload()
- optimize several inner loops in gfx2