mirror of
https://github.com/fachat/xa65.git
synced 2025-02-15 15:32:24 +00:00
Add more tests
This commit is contained in:
parent
e1ca691f0a
commit
d65e2df941
@ -2,4 +2,6 @@
|
|||||||
tests:
|
tests:
|
||||||
(cd adrm; make tests)
|
(cd adrm; make tests)
|
||||||
(cd binclude; make tests)
|
(cd binclude; make tests)
|
||||||
|
(cd chardelimiter; make tests)
|
||||||
|
(cd charset; make tests)
|
||||||
|
|
||||||
|
5
xa/tests/charset/Makefile
Normal file
5
xa/tests/charset/Makefile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
tests:
|
||||||
|
./runtest.sh -q -C
|
||||||
|
|
||||||
|
|
BIN
xa/tests/charset/a.out-test
Normal file
BIN
xa/tests/charset/a.out-test
Normal file
Binary file not shown.
32
xa/tests/charset/runtest.sh
Executable file
32
xa/tests/charset/runtest.sh
Executable file
@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# run a test script
|
||||||
|
|
||||||
|
#THISDIR=`dirname $0`
|
||||||
|
THISDIR=`pwd`
|
||||||
|
|
||||||
|
echo "0=$0"
|
||||||
|
echo "THISDIR=$THISDIR"
|
||||||
|
|
||||||
|
declare -A opts
|
||||||
|
#opts=([816.asm]="-w")
|
||||||
|
opts[testpet.asm]="-OPETSCII"
|
||||||
|
|
||||||
|
#ASMFLAGS=-v
|
||||||
|
ASMFLAGS=
|
||||||
|
|
||||||
|
# exclude filter from *.asm if no explicit file is given
|
||||||
|
EXCLUDE=
|
||||||
|
|
||||||
|
# test files used
|
||||||
|
TESTFILES="README.1st test2.s"
|
||||||
|
|
||||||
|
# files to compare afterwards, against <file>-<script>
|
||||||
|
COMPAREFILES=a.out
|
||||||
|
|
||||||
|
XA=$THISDIR/../../xa
|
||||||
|
|
||||||
|
##########################
|
||||||
|
# actual code
|
||||||
|
. ../func.sh
|
||||||
|
|
16
xa/tests/charset/testpet.asm
Normal file
16
xa/tests/charset/testpet.asm
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
.word $9000
|
||||||
|
* = $9000
|
||||||
|
|
||||||
|
w = 10
|
||||||
|
.bin 0,10+w,"README.1st"
|
||||||
|
.bin 0,10,"README.1st"
|
||||||
|
#include "test2.s"
|
||||||
|
.byt "FooBar"
|
||||||
|
.aasc "FooBar"
|
||||||
|
.asc "FooBar",65,97,10
|
||||||
|
.aasc "FooBar"
|
||||||
|
.bin 0,10,"README.1st"
|
||||||
|
.aasc "Barfoo",65,97,10
|
||||||
|
|
||||||
|
lda #'A'
|
||||||
|
lda #"A"
|
Loading…
x
Reference in New Issue
Block a user