aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2021-02-01 09:53:48 +0000
committerGitHub <noreply@github.com>2021-02-01 09:53:48 +0000
commiteb51bf03e38882479206ee1dc2e1797976984294 (patch)
treec93c7833439a2fe606af4de3853029e85bae5817 /test
parentcfa10a52e23587118d7432c960ecdd213cda3e91 (diff)
downloadlibvfio-user-eb51bf03e38882479206ee1dc2e1797976984294.zip
libvfio-user-eb51bf03e38882479206ee1dc2e1797976984294.tar.gz
libvfio-user-eb51bf03e38882479206ee1dc2e1797976984294.tar.bz2
CI: run client/server through Valgrind (#282)
CI: run client/server through Valgrind And fail the test if Valgrind discovers any errors. Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-client-server.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test-client-server.sh b/test/test-client-server.sh
index 397f312..bda91a2 100755
--- a/test/test-client-server.sh
+++ b/test/test-client-server.sh
@@ -2,12 +2,13 @@
set -e
+valgrind="valgrind --quiet --trace-children=yes --error-exitcode=1 --leak-check=full"
+
sock="/tmp/vfio-user.sock"
rm -f ${sock}*
-../samples/server -v ${sock} &
-server_pid=$!
+${valgrind} ../samples/server ${sock} &
while [ ! -S ${sock} ]; do
sleep 0.1
done
-../samples/client ${sock}
+${valgrind} ../samples/client ${sock}
wait