lima-vm / lima-vm/lima

Test limactl copy

Open
#3,170 0 comments 0 reactions 0 assignees View on GitHub
area/test
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

The copy command seems to be tests only in one case, copying file from vm to host. The command support many other untested operations.

Tests:

- [x] copy single file from vm to host
- https://github.com/lima-vm/lima/blob/e911564e4a5f3151a3beef5ec2446914e016c745/hack/test-templates.sh#L197
- [ ] copy single file from host to vm
- [ ] copy directory from vm to host
- [ ] copy single file from vm to host
- [ ] copy directory from vm to host with --recursive flag
- [ ] copy directory from host to vm with --recursive flag
- [ ] copy multiple sources from vm to host
- [ ] copy multiple sources from host to vm
- [ ] copy multiple sources from vm to host with --recursive flag
- [ ] copy multiple sources from host to vm with --recursive flag

I'm not sure that adding these test-template.sh is the best way, it is very hard to work with such a big test.

I think we need to use go test running limactl with test vms created before the test.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.