Add debug ramdisk variant
A module will be installed to debug_ramdisk (or debug_ramdisk/first_stage_ramdisk if recovery as boot is true) if debug_ramdisk is set to true. Bug: 184004542 Test: soong test Change-Id: Ic5a4d27407e506fffa462de2149e0785f11b2ac7
This commit is contained in:
@@ -394,6 +394,19 @@ func TestPathForModuleInstall(t *testing.T) {
|
||||
out: "target/product/test_device/vendor_ramdisk/my_test",
|
||||
partitionDir: "target/product/test_device/vendor_ramdisk",
|
||||
},
|
||||
{
|
||||
name: "debug_ramdisk binary",
|
||||
ctx: &testModuleInstallPathContext{
|
||||
baseModuleContext: baseModuleContext{
|
||||
os: deviceTarget.Os,
|
||||
target: deviceTarget,
|
||||
},
|
||||
inDebugRamdisk: true,
|
||||
},
|
||||
in: []string{"my_test"},
|
||||
out: "target/product/test_device/debug_ramdisk/my_test",
|
||||
partitionDir: "target/product/test_device/debug_ramdisk",
|
||||
},
|
||||
{
|
||||
name: "system native test binary",
|
||||
ctx: &testModuleInstallPathContext{
|
||||
@@ -733,6 +746,19 @@ func TestPathForModuleInstallRecoveryAsBoot(t *testing.T) {
|
||||
out: "target/product/test_device/vendor_ramdisk/first_stage_ramdisk/my_test",
|
||||
partitionDir: "target/product/test_device/vendor_ramdisk/first_stage_ramdisk",
|
||||
},
|
||||
{
|
||||
name: "debug_ramdisk binary",
|
||||
ctx: &testModuleInstallPathContext{
|
||||
baseModuleContext: baseModuleContext{
|
||||
os: deviceTarget.Os,
|
||||
target: deviceTarget,
|
||||
},
|
||||
inDebugRamdisk: true,
|
||||
},
|
||||
in: []string{"my_test"},
|
||||
out: "target/product/test_device/debug_ramdisk/first_stage_ramdisk/my_test",
|
||||
partitionDir: "target/product/test_device/debug_ramdisk/first_stage_ramdisk",
|
||||
},
|
||||
}
|
||||
|
||||
for _, tc := range testCases {
|
||||
|
Reference in New Issue
Block a user