Tell make that sh_test is a NATIVE_TEST

So that it ends up in VTS's DATA/nativetest like a cc_test, and
otherwise acts like a test.

Test: convert external/linux-kselftest to sh_test
Change-Id: I44b7cfca45f8fe5d7fbb6eaa845a79bd70f155ef
This commit is contained in:
Dan Willemsen 2019-03-21 12:44:57 -07:00
parent 53c88448fd
commit 3db041948b
1 changed files with 1 additions and 0 deletions

View File

@ -139,6 +139,7 @@ func (s *ShBinary) AndroidMk() AndroidMkData {
func (s *ShTest) AndroidMk() AndroidMkData {
data := s.ShBinary.AndroidMk()
data.Class = "NATIVE_TESTS"
data.Extra = append(data.Extra, func(w io.Writer, outputFile Path) {
fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=",
strings.Join(s.testProperties.Test_suites, " "))