Lines Matching refs:test
75 func (test *testDecorator) dataPaths() []android.DataPath {
76 return test.data
79 func (test *testDecorator) nativeCoverage() bool {
83 func (test *testDecorator) testHarness() bool {
84 return BoolDefault(test.Properties.Test_harness, true)
97 test := &testDecorator{
103 module.compiler = test
104 return module, test
107 func (test *testDecorator) compilerProps() []interface{} {
108 return append(test.binaryDecorator.compilerProps(), &test.Properties)
111 func (test *testDecorator) install(ctx ModuleContext) {
112 test.testConfig = tradefed.AutoGenRustTestConfig(ctx,
113 test.Properties.Test_config,
114 test.Properties.Test_config_template,
115 test.Properties.Test_suites,
117 test.Properties.Auto_gen_config)
119 dataSrcPaths := android.PathsForModuleSrc(ctx, test.Properties.Data)
122 test.data = append(test.data, android.DataPath{SrcPath: dataSrcPath})
126 if !Bool(test.Properties.No_named_install_directory) {
127 test.baseCompiler.relative = ctx.ModuleName()
128 } else if String(test.baseCompiler.Properties.Relative_install_path) == "" {
132 if ctx.Host() && test.Properties.Test_options.Unit_test == nil {
133 test.Properties.Test_options.Unit_test = proptools.BoolPtr(true)
135 test.binaryDecorator.install(ctx)
138 func (test *testDecorator) compilerFlags(ctx ModuleContext, flags Flags) Flags {
139 flags = test.binaryDecorator.compilerFlags(ctx, flags)
140 if test.testHarness() {
149 func (test *testDecorator) autoDep(ctx android.BottomUpMutatorContext) autoDep {
169 func (test *testDecorator) stdLinkage(ctx *depsContext) RustLinkage {
173 func (test *testDecorator) compilerDeps(ctx DepsContext, deps Deps) Deps {
174 deps = test.binaryDecorator.compilerDeps(ctx, deps)