Skip to content

Commit 5e87dff

Browse files
authored
Merge pull request #83 from nirs/ci-cleanups
ci: Cleanup iperf3 tests
2 parents c3f1b45 + f469a40 commit 5e87dff

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,24 +82,24 @@ jobs:
8282
run: brew install iperf3 jq
8383
- name: "Lima: vm1: prepare"
8484
run: |
85-
limactl start --name=vm1 --set '.cpus=1 | .memory = "1GiB"' --tty=false ./test/vmnet.yaml
85+
limactl start --name=vm1 --tty=false ./test/vmnet.yaml
8686
limactl shell vm1 ip a
8787
- name: "Lima: vm1: set up iperf3"
8888
run: |
8989
limactl shell vm1 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
90-
limactl shell vm1 systemd-run --user --unit=iperf3 iperf3 -s
90+
limactl shell vm1 sudo systemctl start iperf3.service
9191
- name: "Lima: vm1: get the IP"
9292
run: |
9393
limactl shell vm1 ip -4 -json addr show dev lima0 | jq -r .[0].addr_info[0].local | tee /tmp/vm1_iP
9494
- name: "Lima: vm1: iperf3 (host -> vm1)"
9595
run: |
96-
iperf3 -c "$(cat /tmp/vm1_ip)"
96+
iperf3-darwin -c "$(cat /tmp/vm1_ip)"
9797
- name: "Lima: vm1: debug"
9898
if: failure()
9999
run: tail -n500 ~/.lima/vm1/*.log
100100
- name: "Lima: vm2: prepare"
101101
run: |
102-
limactl start --name=vm2 --set '.cpus=1 | .memory = "1GiB"' --tty=false ./test/vmnet.yaml
102+
limactl start --name=vm2 --tty=false ./test/vmnet.yaml
103103
limactl shell vm2 ip a
104104
- name: "Lima: vm2: set up iperf3"
105105
run: |

test/vmnet.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ mounts:
1818
- location: "~"
1919
- location: "/tmp/lima"
2020
writable: true
21+
memory: "1g"
22+
cpus: 1
2123
networks:
2224
- lima: shared

0 commit comments

Comments
 (0)