diff options
author | 2024-11-07 22:19:12 +0000 | |
---|---|---|
committer | 2024-11-07 22:19:12 +0000 | |
commit | 6d89d77d2647b60552cd04989d162245fb58dd16 (patch) | |
tree | f773010dc76feac70ff3aceea837b798353abd18 /sh/sh_binary_test.go | |
parent | 81f663e478ad77e36244a3808f7dacf7b30dffdd (diff) | |
parent | 45dca5c8cc538392edbde4ee1077fc86509b2e38 (diff) |
Merge "test_module_config for sh_test" into main
Diffstat (limited to 'sh/sh_binary_test.go')
-rw-r--r-- | sh/sh_binary_test.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sh/sh_binary_test.go b/sh/sh_binary_test.go index 5a5043946..28f997d8e 100644 --- a/sh/sh_binary_test.go +++ b/sh/sh_binary_test.go @@ -176,6 +176,22 @@ func TestShTestHost(t *testing.T) { android.AssertBoolEquals(t, "LOCAL_IS_UNIT_TEST", true, actualData) } +func TestShTestExtraTestConfig(t *testing.T) { + result, _ := testShBinary(t, ` + sh_test { + name: "foo", + src: "test.sh", + filename: "test.sh", + extra_test_configs: ["config1.xml", "config2.xml"], + } + `) + + mod := result.ModuleForTests("foo", "android_arm64_armv8-a").Module().(*ShTest) + entries := android.AndroidMkEntriesForTest(t, result, mod)[0] + actualData := entries.EntryMap["LOCAL_EXTRA_FULL_TEST_CONFIGS"] + android.AssertStringPathsRelativeToTopEquals(t, "extra_configs", result.Config(), []string{"config1.xml", "config2.xml"}, actualData) +} + func TestShTestHost_dataDeviceModules(t *testing.T) { ctx, config := testShBinary(t, ` sh_test_host { |