diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2021-02-01 09:53:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-01 09:53:48 +0000 |
commit | eb51bf03e38882479206ee1dc2e1797976984294 (patch) | |
tree | c93c7833439a2fe606af4de3853029e85bae5817 /test | |
parent | cfa10a52e23587118d7432c960ecdd213cda3e91 (diff) | |
download | libvfio-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-x | test/test-client-server.sh | 7 |
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 |