spiegel_podman/pkg/machine/e2e
Arthur Sengileyev d26f0ca90f Implement disable default mounts via command line
Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
2024-07-15 15:27:19 +03:00
..
basic_test.go Implement disable default mounts via command line 2024-07-15 15:27:19 +03:00
config_basic_test.go enable linter for pkg/machine/e2e 2022-07-21 18:04:10 +02:00
config_darwin_test.go Enable machine e2e test for applehv 2023-09-25 15:45:26 -05:00
config_info_test.go enable linter for pkg/machine/e2e 2022-07-21 18:04:10 +02:00
config_init_test.go pkg/machine/e2e: fix broken cleanup 2024-07-01 14:23:11 +02:00
config_inspect_test.go Fix machine inspect test config 2024-01-11 11:42:54 -05:00
config_linux_test.go Enable machine e2e test for applehv 2023-09-25 15:45:26 -05:00
config_list_test.go enable linter for pkg/machine/e2e 2022-07-21 18:04:10 +02:00
config_os_apply_test.go Introduce podman machine os apply 2023-02-15 14:48:12 -05:00
config_reset_test.go Codespell code 2024-02-19 15:23:56 -05:00
config_rm_test.go Use single persistent ssh key for all machines 2024-01-04 23:47:49 -05:00
config_set_test.go Update machine init/set tests 2023-08-25 11:28:07 -04:00
config_ssh_test.go Fix typos 2023-02-11 18:23:24 +01:00
config_start_test.go Add --quiet and --no-info flags to podman machine start 2022-11-11 16:14:20 -05:00
config_stop_test.go enable linter for pkg/machine/e2e 2022-07-21 18:04:10 +02:00
config_system_connection_list_test.go Fix updating connection when SSH port conflict happens 2024-05-14 16:15:56 +01:00
config_test.go pkg/machine/e2e: run debug command only for macos 2024-07-09 13:14:42 +02:00
config_unix_test.go Prune FCOS related code 2024-02-15 21:05:17 -06:00
config_windows_test.go podman machine 5 - hyperv 2024-02-07 09:18:51 -06:00
info_test.go pkg/machine/e2e: fix broken cleanup 2024-07-01 14:23:11 +02:00
init_test.go pkg/machine/e2e: fix broken cleanup 2024-07-01 14:23:11 +02:00
init_windows_test.go pkg/machine/e2e: fix broken cleanup 2024-07-01 14:23:11 +02:00
inspect_test.go pkg/machine/e2e: fix broken cleanup 2024-07-01 14:23:11 +02:00
list_test.go pkg/machine/e2e: fix broken cleanup 2024-07-01 14:23:11 +02:00
machine_pull_test.go Clean machine pull cache 2024-04-26 12:31:42 -04:00
machine_test.go pkg/machine/e2e: print tests timings at the end 2024-07-05 15:28:33 +02:00
machine_wsl_test.go Use correct extension in suite 2024-03-19 13:07:45 -05:00
os_test.go pkg/machine/e2e: fix broken cleanup 2024-07-01 14:23:11 +02:00
proxy_test.go pkg/machine/e2e: fix broken cleanup 2024-07-01 14:23:11 +02:00
pull_test.go Prune FCOS related code 2024-02-15 21:05:17 -06:00
README.md add libkrun test docs 2024-07-09 08:54:09 -05:00
reset_test.go pkg/machine/e2e: fix broken cleanup 2024-07-01 14:23:11 +02:00
rm_test.go pkg/machine/e2e: fix broken cleanup 2024-07-01 14:23:11 +02:00
set_test.go pkg/machine/e2e: fix broken cleanup 2024-07-01 14:23:11 +02:00
ssh_test.go pkg/machine/e2e: fix broken cleanup 2024-07-01 14:23:11 +02:00
start_test.go pkg/machine/e2e: fix broken cleanup 2024-07-01 14:23:11 +02:00
stop_test.go pkg/machine/e2e: fix broken cleanup 2024-07-01 14:23:11 +02:00

Running the machine tests

This document is a quick how-to run machine tests. Not all dependencies, like gvproxy are documented. You must install gvproxy in all cases described below.

General notes

Environment must be clean

You must not have any machines defined before running tests. Consider running podman machine reset prior to running tests.

Scoping tests

You can scope tests in the machine suite by adding various incantations of FOCUS=. For example, add FOCUS_FILE=basic_test.go to only run basic test. Or add FOCUS="simple init with start" to only run one test case. For windows, the syntax differs slightly. In windows, executing something like following achieves the same result:

./winmake localmachine "basic_test.go start_test.go"

Linux

QEMU

  1. make localmachine

Microsoft Windows

Hyper-V

  1. Open a powershell as admin
  2. $env:CONTAINERS_MACHINE_PROVIDER="hyperv"
  3. ./winmake localmachine

WSL

  1. Open a powershell as a regular user
  2. Build and copy win-sshproxy into bin/
  3. ./winmake localmachine

MacOS

Macs now support two different machine providers: applehv and libkrun. The applehv provider is the default.

Note: On macOS, an error will occur if the path length of $TMPDIR is longer than 22 characters. Please set the appropriate path to $TMPDIR. Also, if $TMPDIR is empty, /private/tmp will be set.

Apple Hypervisor

  1. brew install vfkit
  2. make podman-remote
  3. make localmachine

Libkrun

  1. brew install krunkit
  2. make podman-remote
  3. export CONTAINERS_MACHINE_PROVIDER="libkrun"
  4. make localmachine