Skip to content

Commit

Permalink
Merge pull request lima-vm#83 from nirs/ci-cleanups
Browse files Browse the repository at this point in the history
ci: Cleanup iperf3 tests
  • Loading branch information
AkihiroSuda authored Nov 23, 2024
2 parents c3f1b45 + f469a40 commit 5e87dff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,24 +82,24 @@ jobs:
run: brew install iperf3 jq
- name: "Lima: vm1: prepare"
run: |
limactl start --name=vm1 --set '.cpus=1 | .memory = "1GiB"' --tty=false ./test/vmnet.yaml
limactl start --name=vm1 --tty=false ./test/vmnet.yaml
limactl shell vm1 ip a
- name: "Lima: vm1: set up iperf3"
run: |
limactl shell vm1 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
limactl shell vm1 systemd-run --user --unit=iperf3 iperf3 -s
limactl shell vm1 sudo systemctl start iperf3.service
- name: "Lima: vm1: get the IP"
run: |
limactl shell vm1 ip -4 -json addr show dev lima0 | jq -r .[0].addr_info[0].local | tee /tmp/vm1_iP
- name: "Lima: vm1: iperf3 (host -> vm1)"
run: |
iperf3 -c "$(cat /tmp/vm1_ip)"
iperf3-darwin -c "$(cat /tmp/vm1_ip)"
- name: "Lima: vm1: debug"
if: failure()
run: tail -n500 ~/.lima/vm1/*.log
- name: "Lima: vm2: prepare"
run: |
limactl start --name=vm2 --set '.cpus=1 | .memory = "1GiB"' --tty=false ./test/vmnet.yaml
limactl start --name=vm2 --tty=false ./test/vmnet.yaml
limactl shell vm2 ip a
- name: "Lima: vm2: set up iperf3"
run: |
Expand Down
2 changes: 2 additions & 0 deletions test/vmnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ mounts:
- location: "~"
- location: "/tmp/lima"
writable: true
memory: "1g"
cpus: 1
networks:
- lima: shared

0 comments on commit 5e87dff

Please sign in to comment.