diff options
author | Dan Willemsen <dwillemsen@google.com> | 2019-03-21 12:44:57 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2019-03-21 12:44:57 -0700 |
commit | 3db041948b7ba5cc9561426df6bacb928917325e (patch) | |
tree | d4aef98ce186aae9029c1b46524b3fd57bd7fa6b /android | |
parent | 53c88448fd2497023cd6403a7aa72a3f763f3e3a (diff) | |
download | build_soong-3db041948b7ba5cc9561426df6bacb928917325e.tar.gz build_soong-3db041948b7ba5cc9561426df6bacb928917325e.tar.bz2 build_soong-3db041948b7ba5cc9561426df6bacb928917325e.zip |
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
Diffstat (limited to 'android')
-rw-r--r-- | android/sh_binary.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/android/sh_binary.go b/android/sh_binary.go index bee61ef4..cf415c56 100644 --- a/android/sh_binary.go +++ b/android/sh_binary.go @@ -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, " ")) |