mirror of https://github.com/containers/podman.git
Before, we required that the mount target exist and be a directory for the 9p mount to successfully complete, which is not how things are supposed to work - the user should be able to mount anywhere. This should just be a simple mkdir, but with FCOS the root directory is immutable so we need to undo that before we can mkdir, and unfortunately we don't have a library that can do chattr (and I didn't want to drag in a new dependency just for that), so let's be gross and add it to the SSH command. I aggressively dislike this but it does work. [NO NEW TESTS NEEDED] Can worry about getting a more generic mount test together for Machine later. Signed-off-by: Matt Heon <mheon@redhat.com> |
||
|---|---|---|
| .. | ||
| README.md | ||
| basic_test.go | ||
| config_basic_test.go | ||
| config_darwin_test.go | ||
| config_info_test.go | ||
| config_init_test.go | ||
| config_inspect_test.go | ||
| config_linux_test.go | ||
| config_list_test.go | ||
| config_os_apply_test.go | ||
| config_reset_test.go | ||
| config_rm_test.go | ||
| config_set_test.go | ||
| config_ssh_test.go | ||
| config_start_test.go | ||
| config_stop_test.go | ||
| config_test.go | ||
| config_unix_test.go | ||
| config_windows_test.go | ||
| info_test.go | ||
| init_test.go | ||
| init_windows_test.go | ||
| inspect_test.go | ||
| list_test.go | ||
| machine_test.go | ||
| os_test.go | ||
| proxy_test.go | ||
| pull_test.go | ||
| reset_test.go | ||
| rm_test.go | ||
| set_test.go | ||
| ssh_test.go | ||
| start_test.go | ||
| stop_test.go | ||
README.md
Working README for running the machine tests
Note: you must not have any machines defined before running tests
Linux
QEMU
make localmachine
Microsoft Windows
HyperV
- Open a powershell as admin
- $env:CONTAINERS_MACHINE_PROVIDER="hyperv"
./winmake localmachine
Note: To run specific test files, add the test files to the end of the winmake command:
./winmake localmachine "basic_test.go start_test.go"
WSL
- Open a powershell as a regular user
- Build and copy win-sshproxy into bin/
./winmake localmachine
Note: To run specific test files, add the test files to the end of the winmake command:
./winmake localmachine "basic_test.go start_test.go"
MacOS
Apple Hypervisor
make podman-remotemake localmachine(AddFOCUS_FILE=basic_test.goto only run basic test)