diff options
author | kdx <kikoodx@paranoici.org> | 2023-06-10 16:12:33 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-06-10 16:12:33 +0200 |
commit | 37d470da243a2165d28b8a807ce940cb27b2c321 (patch) | |
tree | a64995748228bcb0e998ffeffa4fd124bf4e07ad /testing.sh | |
parent | c9dd409007a4c87bac3c497fd2df2e7d333b8609 (diff) | |
download | golem-37d470da243a2165d28b8a807ce940cb27b2c321.tar.gz |
read source from file
Diffstat (limited to 'testing.sh')
-rwxr-xr-x | testing.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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" |