Skip to content

Commit

Permalink
run_tests.sh: Load vsock_loopback module for vsock-proxy tests
Browse files Browse the repository at this point in the history
The `connection_test` test runs the vsock-proxy on the parent instance
for testing the connection between a server and a client on the same
instance, in which case the vsock loopback must be enabled on the parent
instance.

Signed-off-by: Costin Lupu <[email protected]>
  • Loading branch information
clupuishere committed Nov 23, 2023
1 parent 06d98e3 commit c541c2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ sed -i 's/CMD/ENTRYPOINT/g' examples/"${ARCH}"/hello-entrypoint/Dockerfile || te
nitro-cli build-enclave --docker-dir examples/"${ARCH}"/hello-entrypoint --docker-uri hello-entrypoint-usage \
--output-file test_images/hello-entrypoint-usage.eif || test_failed

# Load vsock_loopback module for connection_test test of vsock-proxy
if [ "$(lsmod | grep -cw vsock_loopback)" -eq 0 ]; then
modprobe vsock_loopback || test_failed
fi

# Run all unit tests
while IFS= read -r test_line
do
Expand Down

0 comments on commit c541c2b

Please sign in to comment.