summaryrefslogtreecommitdiff
path: root/testing.sh
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-06-10 16:12:33 +0200
committerkdx <kikoodx@paranoici.org>2023-06-10 16:12:33 +0200
commit37d470da243a2165d28b8a807ce940cb27b2c321 (patch)
treea64995748228bcb0e998ffeffa4fd124bf4e07ad /testing.sh
parentc9dd409007a4c87bac3c497fd2df2e7d333b8609 (diff)
downloadgolem-37d470da243a2165d28b8a807ce940cb27b2c321.tar.gz
read source from file
Diffstat (limited to 'testing.sh')
-rwxr-xr-xtesting.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing.sh b/testing.sh
index 4fe973e..f50354f 100755
--- a/testing.sh
+++ b/testing.sh
@@ -4,7 +4,8 @@ function test() {
QUIET="$1"
CODE="$2"
echo "--- $CODE ---"
- ./build/golem "$CODE" >"build/tmp.orgaasm"
+ printf '%s' "$CODE" >"build/tmp.golem"
+ ./build/golem "build/tmp.golem" >"build/tmp.orgaasm"
[ "$QUIET" != "-q" ] && cat "build/tmp.orgaasm"
orgaasm "build/tmp.orgaasm" "build/tmp.rom"
orgaemu "build/tmp.rom"