Skip to content

Commit e9941e1

Browse files
committed
CI: enable virtio-net tests
Build with NET=1 and run network/iperf3 tests in CI. Signed-off-by: Matej Hrica <mhrica@redhat.com>
1 parent dca8805 commit e9941e1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/integration_tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
run: rustup target add x86_64-unknown-linux-musl
1616

1717
- name: Build and install libkrun to test prefix
18-
run: make test-prefix
18+
run: make test-prefix NET=1
1919

2020
- name: Clippy (test_cases guest)
2121
run: |
@@ -58,7 +58,7 @@ jobs:
5858
run: TAG=`curl -sL https://api.github.com/repos/containers/libkrunfw/releases/latest |jq -r .tag_name` && curl -L -o /tmp/libkrunfw-x86_64.tgz https://github.com/containers/libkrunfw/releases/download/$TAG/libkrunfw-x86_64.tgz && mkdir tmp && tar xf /tmp/libkrunfw-x86_64.tgz -C tmp && sudo mv tmp/lib64/* /lib/x86_64-linux-gnu
5959

6060
- name: Integration tests
61-
run: KRUN_ENOMEM_WORKAROUND=1 KRUN_NO_UNSHARE=1 KRUN_TEST_BASE_DIR=/tmp/libkrun-tests make test TEST_FLAGS="--keep-all --github-summary"
61+
run: KRUN_ENOMEM_WORKAROUND=1 KRUN_TEST_BASE_DIR=/tmp/libkrun-tests make test NET=1 IPERF_DURATION=3 TEST_FLAGS="--keep-all --github-summary"
6262

6363
- name: Upload test logs
6464
if: always()
@@ -84,7 +84,7 @@ jobs:
8484
run: rustup target add aarch64-unknown-linux-musl
8585

8686
- name: Build and install libkrun to test prefix
87-
run: make test-prefix
87+
run: make test-prefix NET=1
8888

8989
- name: Clippy (test_cases guest)
9090
run: |
@@ -123,7 +123,7 @@ jobs:
123123
run: rm -fr /tmp/libkrun-tests
124124

125125
- name: Integration tests
126-
run: KRUN_ENOMEM_WORKAROUND=1 KRUN_NO_UNSHARE=1 KRUN_TEST_BASE_DIR=/tmp/libkrun-tests make test TEST_FLAGS="--keep-all --github-summary"
126+
run: KRUN_ENOMEM_WORKAROUND=1 KRUN_NO_UNSHARE=1 KRUN_TEST_BASE_DIR=/tmp/libkrun-tests make test NET=1 IPERF_DURATION=3 TEST_FLAGS="--keep-all --github-summary"
127127

128128
- name: Upload test logs
129129
if: always()

0 commit comments

Comments
 (0)