src/util: add script to run the testsuite on android
This commit is contained in:
parent
3302289cdd
commit
9176710d96
2 changed files with 25 additions and 0 deletions
7
src/util/test-android-target.sh
Executable file
7
src/util/test-android-target.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
export TMPDIR=/data/local/tmp/
|
||||
cd ${TMPDIR}/ecl-android/
|
||||
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${TMPDIR}/ecl-android/lib/
|
||||
export ECLDIR=${TMPDIR}/ecl-android/lib/ecl-$(./bin/ecl --eval "(princ (lisp-implementation-version))" --eval "(ext:quit)")/
|
||||
./bin/ecl -norc -eval "(ext:install-bytecodes-compiler)" -load "tests/doit.lsp" -eval "(in-package cl-test)" -eval "(2am-ecl:run 'make-check)" -eval "(ext:exit)"
|
||||
rm -r ${TMPDIR}/ecl-android/
|
||||
18
src/util/test-android.sh
Executable file
18
src/util/test-android.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# This script allows running the ECL test suite on android. USB
|
||||
# debugging via adb needs to be enabled in order for this to work.
|
||||
# Simply execute this file from the ECL toplevel directory.
|
||||
#
|
||||
# The script works by pushing the generated binary in `ecl-android/`
|
||||
# to a temporary directory on the device together with the
|
||||
# `test-android-target.sh` script which sets up paths and starts ECL
|
||||
# on the phone.
|
||||
#
|
||||
|
||||
export TMPDIR=/data/local/tmp/
|
||||
|
||||
adb push ecl-android/ ${TMPDIR}
|
||||
adb push src/tests/ ${TMPDIR}/ecl-android/
|
||||
adb push src/util/test-android-target.sh ${TMPDIR}/ecl-android/
|
||||
adb shell "sh ${TMPDIR}/ecl-android/test-android-target.sh"
|
||||
Loading…
Add table
Reference in a new issue