Generate tradefed config for rust device tests.
* The RustBinaryTest runner and device test config template are derived from GTest. Device tests are pushed to /data/local/tmp. Bug: 140938178 Test: make unicode-xid projects; run atest Change-Id: Idb4cab7872b48c6e25bc59b85aa6d9dece4383ec
This commit is contained in:
committed by
Chih-hung Hsieh
parent
01178ed7d1
commit
ede57ae812
@@ -197,11 +197,14 @@ func AutoGenPythonBinaryHostTestConfig(ctx android.ModuleContext, testConfigProp
|
||||
return path
|
||||
}
|
||||
|
||||
func AutoGenRustHostTestConfig(ctx android.ModuleContext, name string, testConfigProp *string,
|
||||
func AutoGenRustTestConfig(ctx android.ModuleContext, name string, testConfigProp *string,
|
||||
testConfigTemplateProp *string, testSuites []string, autoGenConfig *bool) android.Path {
|
||||
path, autogenPath := testConfigPath(ctx, testConfigProp, testSuites, autoGenConfig)
|
||||
if autogenPath != nil {
|
||||
templatePathString := "${RustHostTestConfigTemplate}"
|
||||
if ctx.Device() {
|
||||
templatePathString = "${RustDeviceTestConfigTemplate}"
|
||||
}
|
||||
templatePath := getTestConfigTemplate(ctx, testConfigTemplateProp)
|
||||
if templatePath.Valid() {
|
||||
templatePathString = templatePath.String()
|
||||
|
Reference in New Issue
Block a user