Skip to content

Commit 6bed569

Browse files
committed
e2etests: enhance CF host presubmit to cover SDV and IVI use cases
- Add sdv_media to cvd_create_tests. - Add SDVMedia and Auto (IVI) to launch_cvd_tests. - Add multi-instance sdv_core + sdv_media test case to cvd_load_tests. These tests use Tip of Tree (@ab/git_main) artifacts to ensure 3p accessibility and alignment with standard presubmit patterns. Bug: 507906785 Test: local bazel validation
1 parent 096139a commit 6bed569

3 files changed

Lines changed: 52 additions & 0 deletions

File tree

e2etests/cvd/cvd_create_tests/main_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ func TestCvdCreate(t *testing.T) {
3838
branch: "git_main-throttled-nightly",
3939
target: "aosp_cf_x86_64_auto-trunk_staging-userdebug",
4040
},
41+
{
42+
branch: "git_main",
43+
target: "aosp_cf_x86_64_sdv_media-trunk_staging-userdebug",
44+
},
4145
}
4246
c := e2etests.TestContext{}
4347
for _, tc := range testcases {

e2etests/cvd/cvd_load_tests/main_test.go

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,44 @@ func TestCvdLoad(t *testing.T) {
133133
"common": {
134134
"host_package": "@ab\/aosp-android-latest-release\/aosp_cf_x86_64_only_phone-userdebug"
135135
}
136+
}`,
137+
},
138+
{
139+
name: "GitMainSDVMULTI",
140+
loadconfig: `
141+
{
142+
"instances": [
143+
{
144+
"name": "core",
145+
"disk": {
146+
"default_build": "@ab\/git_main\/aosp_cf_x86_64_sdv_core-trunk_staging-userdebug"
147+
},
148+
"vm": {
149+
"cpus": 2,
150+
"memory_mb": 4096
151+
},
152+
"graphics": {
153+
"displays": [],
154+
"record_screen": false
155+
}
156+
},
157+
{
158+
"name": "media",
159+
"disk": {
160+
"default_build": "@ab\/git_main\/aosp_cf_x86_64_sdv_media-trunk_staging-userdebug"
161+
},
162+
"vm": {
163+
"cpus": 2,
164+
"memory_mb": 4096
165+
}
166+
}
167+
],
168+
"metrics": {
169+
"enable": true
170+
},
171+
"common": {
172+
"host_package": "@ab\/git_main\/aosp_cf_x86_64_only_phone-trunk_staging-userdebug"
173+
}
136174
}`,
137175
},
138176
}

e2etests/cvd/launch_cvd_tests/main_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ func TestLaunchCvd(t *testing.T) {
3131
branch: "git_main",
3232
target: "aosp_cf_x86_64_only_phone-trunk_staging-userdebug",
3333
},
34+
{
35+
name: "GitMainSDVMedia",
36+
branch: "git_main",
37+
target: "aosp_cf_x86_64_sdv_media-trunk_staging-userdebug",
38+
},
39+
{
40+
name: "GitMainAuto",
41+
branch: "git_main",
42+
target: "aosp_cf_x86_64_auto-trunk_staging-userdebug",
43+
},
3444
{
3545
name: "AospMainPhone",
3646
branch: "aosp-android-latest-release",

0 commit comments

Comments
 (0)