1
0
mirror of https://github.com/fachat/xa65.git synced 2024-06-22 06:29:28 +00:00

Add more tests

This commit is contained in:
A. Fachat 2014-08-19 22:30:18 +02:00
parent e1ca691f0a
commit d65e2df941
6 changed files with 55 additions and 0 deletions

View File

@ -2,4 +2,6 @@
tests:
(cd adrm; make tests)
(cd binclude; make tests)
(cd chardelimiter; make tests)
(cd charset; make tests)

View File

@ -0,0 +1,5 @@
tests:
./runtest.sh -q -C

BIN
xa/tests/charset/a.out-test Normal file

Binary file not shown.

32
xa/tests/charset/runtest.sh Executable file
View 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

View 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"