aboutsummaryrefslogtreecommitdiffstats
path: root/android_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'android_test.sh')
-rwxr-xr-xandroid_test.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/android_test.sh b/android_test.sh
new file mode 100755
index 0000000..a9d40c3
--- /dev/null
+++ b/android_test.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# Set resource limits
+ulimit -t 600
+ulimit -d 512000
+ulimit -m 512000
+ulimit -s 8192
+
+: ${ANDROID_BUILD_TOP:?"ANDROID_BUILD_TOP not set. Exiting."}
+
+if [ ! -d $ANDROID_BUILD_TOP/out/host/linux-x86/obj/test_llvm ]; then
+ mkdir $ANDROID_BUILD_TOP/out/host/linux-x86/obj/test_llvm
+fi
+
+python ./utils/lit/lit.py -s -v ./test