diff --git a/cc/test.go b/cc/test.go index 96049db8d..e6251d33c 100644 --- a/cc/test.go +++ b/cc/test.go @@ -31,6 +31,12 @@ type TestProperties struct { Isolated *bool } +// Test option struct. +type TestOptions struct { + // the UID that you want to run in device. + Run_test_as string `android:"arch_variant"` +} + type TestBinaryProperties struct { // Create a separate binary for each source file. Useful when there is // global state that can not be torn down and reset between each test suite. @@ -56,6 +62,9 @@ type TestBinaryProperties struct { // the name of the test configuration template (for example "AndroidTestTemplate.xml") that // should be installed with the module. Test_config_template *string `android:"arch_variant"` + + // Test options. + Test_options *TestOptions } func init() { @@ -244,8 +253,16 @@ func (test *testBinary) linkerFlags(ctx ModuleContext, flags Flags) Flags { func (test *testBinary) install(ctx ModuleContext, file android.Path) { test.data = ctx.ExpandSources(test.Properties.Data, nil) + + // Append new line in template like below + //