From 075c621d834af7ffc32d2067fadb147cc1758b99 Mon Sep 17 00:00:00 2001 From: Chris Wailes Date: Mon, 2 Jun 2014 11:53:16 -0700 Subject: Adds the ability to run the llvm test suite in-tree. This was accomplished by building additional tools and hand-generating several files that are auto-generated by the configuration system when LLVM is built out-of-tree. The LTO, Interpreter, and DebugInfo libraries are now being compiled, and several source files were added to existing compilation targets. To run these tests you must first run build/envsetup.sh and have used lunch to select a target. You can then launch the test script by running: cd $ANDROID_BUILD_TOP/external/llvm && ./android_test.sh Bug: 15433215 Change-Id: I43d87de0a4620cdd46c8d0f825dd4428e8409702 --- android_test.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 android_test.sh (limited to 'android_test.sh') 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 -- cgit v1.1