Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions e2etests/cvd/networking_tests/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ import (

func TestDeviceNetworking(t *testing.T) {
testcases := []struct {
branch string
target string
name string
branch string
target string
createArgs e2etests.CreateArgs
}{
{
branch: "aosp-android-latest-release",
Expand All @@ -36,10 +38,22 @@ func TestDeviceNetworking(t *testing.T) {
branch: "git_main",
target: "aosp_cf_x86_64_only_phone-trunk_staging-userdebug",
},
{
name: "cvdalloc",
branch: "git_main",
target: "aosp_cf_x86_64_only_phone-trunk_staging-userdebug",
createArgs: e2etests.CreateArgs{
Args: []string{"--use_cvdalloc=true"},
},
},
}
c := e2etests.TestContext{}
for _, tc := range testcases {
t.Run(fmt.Sprintf("BUILD=%s/%s", tc.branch, tc.target), func(t *testing.T) {
testName := fmt.Sprintf("BUILD=%s/%s", tc.branch, tc.target)
if tc.name != "" {
testName = fmt.Sprintf("%s_CONFIG=%s", testName, tc.name)
}
t.Run(testName, func(t *testing.T) {
c.SetUp(t)
defer c.TearDown()

Expand All @@ -52,7 +66,7 @@ func TestDeviceNetworking(t *testing.T) {
}

t.Log("Launching Cuttlefish...")
if err := c.CVDCreate(e2etests.CreateArgs{}); err != nil {
if err := c.CVDCreate(tc.createArgs); err != nil {
t.Fatal(err)
}

Expand Down
Loading