aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp42
1 files changed, 41 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 0091c9f6..ea33a687 100644
--- a/Android.bp
+++ b/Android.bp
@@ -233,7 +233,7 @@ cc_test_host {
"test",
],
exclude_srcs: [
- "test/test-donkey.cc"
+ "test/test-donkey.cc",
],
srcs: [
"test/*.cc",
@@ -256,3 +256,43 @@ cc_test_host {
},
},
}
+
+cc_genrule {
+ name: "vixl-test-timestamp",
+ srcs: [
+ ":libc++",
+ ":vixl-test-runner",
+ "test/test-trace-reference/**/*",
+ ],
+ compile_multilib: "first",
+ host_supported: true,
+ device_supported: false,
+ cmd: "echo 'Running vixl tests' && " +
+ "cp $(location :vixl-test-runner) $(genDir)/ && " +
+ // Copy needed share libs for vixl-test-runner
+ "cp $(location :libc++) $(genDir)/ && " +
+ "mkdir -p $(genDir)/test/test-trace-reference/ && " +
+ "cp $(locations test/test-trace-reference/**/*) $(genDir)/test/test-trace-reference/ && " +
+ "cd $(genDir) && " +
+ "./vixl-test-runner --run_all 2>&1 && " +
+ "./vixl-test-runner --run_all --debugger 2>&1 && " +
+ "echo 'vixl tests PASSED' && " +
+ "touch vixl-test-timestamp.txt",
+ out: ["vixl-test-timestamp.txt"],
+ enabled: false,
+ target: {
+ linux_glibc_x86_64: {
+ enabled: true,
+ },
+ linux_musl_x86_64: {
+ enabled: true,
+ },
+ },
+}
+
+phony_rule {
+ name: "run-vixl-tests",
+ phony_deps: [
+ "vixl-test-timestamp",
+ ],
+}