small fixes
This commit is contained in:
15
test.sh
15
test.sh
@@ -1,6 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
roms=($(find tests/ -type f))
|
||||
if [ ! -d tests/extern ]; then
|
||||
mkdir tests/extern
|
||||
fi
|
||||
|
||||
extern_roms=("https://github.com/Timendus/chip8-test-suite/raw/main/bin/1-chip8-logo.ch8" "https://github.com/Timendus/chip8-test-suite/raw/main/bin/2-ibm-logo.ch8")
|
||||
for rom in "${extern_roms[@]}"; do
|
||||
if [ ! -f tests/extern/$(basename $rom) ]; then
|
||||
echo "Downloading $rom"
|
||||
curl -L $rom -o tests/extern/$(basename $rom)
|
||||
fi
|
||||
done
|
||||
|
||||
roms=($(find tests/ -type f -name "*.ch8"))
|
||||
|
||||
testOutput=$(mktemp)
|
||||
|
||||
@@ -8,6 +20,7 @@ if ${VERBOSE:-false}; then
|
||||
testOutput=2
|
||||
fi
|
||||
|
||||
|
||||
for rom in "${roms[@]}"; do
|
||||
echo -n "$rom "
|
||||
./bin/voidEmu $rom 1>&$testOutput
|
||||
|
||||
Reference in New Issue
Block a user