From 663b1e16e107365c9fd1684e524763ba43f19652 Mon Sep 17 00:00:00 2001 From: Philip Zembrod Date: Sat, 10 Apr 2021 23:33:00 +0200 Subject: [PATCH] Add test target for X16-39 --- 6502/C64/Makefile | 7 +++++++ 6502/C64/emulator/run-in-x16-39.sh | 9 +++++++++ 6502/C64/emulator/run-in-x16emu.sh | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 6502/C64/emulator/run-in-x16-39.sh diff --git a/6502/C64/Makefile b/6502/C64/Makefile index f331e1b..7f7791f 100644 --- a/6502/C64/Makefile +++ b/6502/C64/Makefile @@ -136,6 +136,13 @@ test-v4th-x16.log: cbmfiles/v4th-x16 emulator/sdcard.img mcopy -i emulator/sdcard.img ::TEST.LOG cbmfiles/test.log petscii2ascii cbmfiles/test.log $@ +test-v4th-x16-39.log: cbmfiles/v4th-x16 emulator/sdcard.img + rm -f cbmfiles/test.log + emulator/run-in-x16-39.sh v4th-x16 \ + "include run-std-tests.fth\n1234567890\n" + mcopy -i emulator/sdcard.img ::TEST.LOG cbmfiles/test.log + petscii2ascii cbmfiles/test.log $@ + test-%.result: test-%.log test-%.golden tests/evaluate-test.sh rm -f $@ tests/evaluate-test.sh $(basename $@) diff --git a/6502/C64/emulator/run-in-x16-39.sh b/6502/C64/emulator/run-in-x16-39.sh new file mode 100755 index 0000000..6713240 --- /dev/null +++ b/6502/C64/emulator/run-in-x16-39.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -e + +emulatordir="$(realpath --relative-to="$PWD" "$(dirname "${BASH_SOURCE[0]}")")" + +export PATH="${HOME}/x16-r39:${PATH}" +echo "PATH = ${PATH}" +"${emulatordir}/run-in-x16emu.sh" "$@" diff --git a/6502/C64/emulator/run-in-x16emu.sh b/6502/C64/emulator/run-in-x16emu.sh index ee7af5a..ab94f63 100755 --- a/6502/C64/emulator/run-in-x16emu.sh +++ b/6502/C64/emulator/run-in-x16emu.sh @@ -36,7 +36,7 @@ then mcopy -i "${sdcard}" "${emulatordir}/notdone" "::NOTDONE" warp="-warp" else - scale="-scale 2" + # scale="-scale 2" debug="-debug" fi