From: Hugo Villeneuve Date: Thu, 13 Feb 2014 05:23:51 +0000 (-0500) Subject: Fix test script to work in external build directory X-Git-Tag: v2.0.1~11 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=c69c15d65b504b8d35df108bd7370c2fcd7680ed;hp=00deadc94f868a45431b58e34e707d235cf02b47;p=emu8051.git Fix test script to work in external build directory --- diff --git a/tests/opcodes.sh b/tests/opcodes.sh index 57ff3db..23175e9 100755 --- a/tests/opcodes.sh +++ b/tests/opcodes.sh @@ -12,6 +12,7 @@ name=$(basename ${test_name} .sh) hexfile=${name}.hex echo "Testing ${name}.hex" > ${lf} + ../src/cli/emu8051-cli -d 2 --xram=${XRAM_SIZE} -s ${STOP_ADDRESS} ${hexfile} >> ${lf} if test $? -ne 0 ; then return 1 @@ -30,7 +31,7 @@ while read line; do exit 1 fi fi -done < ${name}.asm +done < $srcdir/${name}.asm if [ x"${test_output_found}" == x0 ]; then # Need at least one test output condition to verify correct operation