INNER CODE UNIT · Go

TestWindowsInstallerWSL2

ddev/ddev · winpkg/installer_test.go:196

func TestWindowsInstallerWSL2(t *testing.T) {
	if nodeps.IsEnvFalse("DDEV_TEST_USE_REAL_INSTALLER") {
		t.Skip("Skipping installer test, set DDEV_TEST_USE_REAL_INSTALLER=true to run")
	}

	// The test matrix is one entry per (base distro × Docker provider). The
	// instance name is also the subtest name, so `-run` filters read identically
	// to the WSL distro name, e.g. `-run TestWindowsInstallerWSL2/ddev-test-debian-ce`.
	// The named instances are provisioned out-of-band on each runner (see
	// docs/content/developers/buildkite-testmachine-setup.md); the test only
	// resets and reuses them. baseDistro is documentation of the provisioning
	// source and is not used at test runtime.
	matrix := []struct {
		instance   string // WSL instance name == subtest name
		baseDistro string // WSL catalog distro the instance is provisioned from
		provider   string // "docker-ce" or "docker-desktop"
	}{
		// "Ubuntu" in the WSL catalog installs the current LTS (Ubuntu-26.04 as of 2026).

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…