summaryrefslogtreecommitdiff
path: root/linaro-android-kernel-tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'linaro-android-kernel-tests.sh')
-rwxr-xr-xlinaro-android-kernel-tests.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/linaro-android-kernel-tests.sh b/linaro-android-kernel-tests.sh
index d35cb90..5431f1c 100755
--- a/linaro-android-kernel-tests.sh
+++ b/linaro-android-kernel-tests.sh
@@ -42,6 +42,9 @@ run_ashmemtest_expanded()
{
echo "Running expanded ashmemtest."
DIR=/data/linaro-android-kernel-test/ashmemtest-expanded
+ OUT_DIR=/data/local/tmp/linaro-android-kernel-test/
+ mkdir $OUT_DIR
+
FILES=$DIR/*.txt
for f in $FILES
@@ -50,17 +53,17 @@ run_ashmemtest_expanded()
TESTNAME="${BASENAME%.*}"
echo "running $TESTNAME"
- ashmemtest-expanded $f &> $DIR/tmp.out
+ ashmemtest-expanded $f &> $OUT_DIR/tmp.out
- diff $DIR/tmp.out $DIR/$TESTNAME.out > /dev/null
+ diff $OUT_DIR/tmp.out $DIR/$TESTNAME.out > /dev/null
if [ $? -eq 0 ]; then
- cat $DIR/tmp.out
+ cat $OUT_DIR/tmp.out
echo "[ashmem_expanded_$TESTNAME]: test passed"
else
- cat $DIR/tmp.out
+ cat $OUT_DIR/tmp.out
echo "[ashmem_expanded_$TESTNAME]: test failed"
fi
- rm $DIR/tmp.out
+ rm $OUT_DIR/tmp.out
done
}