aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarish Mahendrakar <hmahendrakar@google.com>2024-01-30 04:36:51 +0000
committerHarish Mahendrakar <hmahendrakar@google.com>2024-01-30 05:53:40 +0000
commitdf62df735793b86b8cadd2d3de7ec063fcc09488 (patch)
tree1e4fbc71a391af99798dfe971aa3745abc8ca677
parent6f5498bd83477311034e5567799e0e42c1a92d7a (diff)
downloadlibavc-df62df735793b86b8cadd2d3de7ec063fcc09488.tar.gz
Enable unit tests in postsubmit
After some time of running these in postsubmit, these will be changed to presubmit. - Added AvcEncTest to device-tests test suite - Also run bpfmt on test/Android.bp Bug: 304383609 Test: atest AvcEncTest Change-Id: Ic18b25d8ed27313b6e3a984259af1215ae240c9e
-rw-r--r--TEST_MAPPING5
-rw-r--r--tests/Android.bp7
2 files changed, 9 insertions, 3 deletions
diff --git a/TEST_MAPPING b/TEST_MAPPING
new file mode 100644
index 0000000..d690c4e
--- /dev/null
+++ b/TEST_MAPPING
@@ -0,0 +1,5 @@
+{
+ "postsubmit": [
+ { "name": "AvcEncTest" }
+ ]
+}
diff --git a/tests/Android.bp b/tests/Android.bp
index 656d3b7..89bb1e7 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -26,16 +26,17 @@ package {
cc_test {
name: "AvcEncTest",
gtest: true,
+ test_suites: ["device-tests"],
- srcs : [ "AvcEncTest.cpp" ],
+ srcs: ["AvcEncTest.cpp"],
shared_libs: [
"libutils",
- "liblog"
+ "liblog",
],
static_libs: [
- "libavcenc"
+ "libavcenc",
],
cflags: [