Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ae4cca6 authored by Jooyung Han's avatar Jooyung Han
Browse files

sh_test: Support per-testcase directories

Similar to cfb0f5e1

Bug: n/a
Test: add a new CTS sh_test_host module with duplicate 'data';
Change-Id: Ie7d183bb5703d616d61d7dcb7c8b44502de429bb
parent 73097427
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -149,6 +149,9 @@ type TestProperties struct {
	// Only available for host sh_test modules.
	Data_device_libs []string `android:"path,arch_variant"`

	// Install the test into a folder named for the module in all test suites.
	Per_testcase_directory *bool

	// Test options.
	Test_options TestOptions
}
@@ -464,6 +467,7 @@ func (s *ShTest) AndroidMkEntries() []android.AndroidMkEntries {
				if Bool(s.testProperties.Test_options.Unit_test) {
					entries.SetBool("LOCAL_IS_UNIT_TEST", true)
				}
				entries.SetBoolIfTrue("LOCAL_COMPATIBILITY_PER_TESTCASE_DIRECTORY", Bool(s.testProperties.Per_testcase_directory))
			},
		},
	}}