From 5ff80617fa99c7d61b4e058f0c65431bec55cd7d Mon Sep 17 00:00:00 2001 From: Harish Mahendrakar Date: Tue, 30 Jan 2024 04:36:51 +0000 Subject: [PATCH] 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 --- TEST_MAPPING | 5 +++++ tests/Android.bp | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 TEST_MAPPING 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: [