Run each test separately from single shell script
[emu8051.git] / tests / opcodes
diff --git a/tests/opcodes b/tests/opcodes
deleted file mode 100755 (executable)
index 0dba166..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-lf=test.log
-
-STOP_ADDRESS="0xFFF0"
-XRAM_SIZE="256"
-
-for f in *.hex; do
-    name=$(basename ${f} .hex)
-
-    echo "Testing ${name}" > ${lf}
-    ../src/emu8051-cli -d 2 --xram=${XRAM_SIZE} -s ${STOP_ADDRESS} ${f} >> ${lf}
-    if $? -ne 0; then
-        return 1
-    fi
-
-    while read line; do
-        if echo ${line} | grep -q "; Test output"; then
-            test_str=$(echo ${line} | sed "s/^; Test output: //")
-
-            if ! grep -q "${test_str}" ${lf}; then
-                echo "Failed test: ${test_str}" >> ${lf}
-                exit 1
-            fi
-        fi
-    done < ${name}.asm
-
-done
-
-exit 0