From abc542bd5abf46c5170f8a0c3dcc62eff0c9cfde Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Mon, 13 Aug 2018 15:25:10 +0200 Subject: travis: Check that proxy module can be loaded and unloaded --- .travis/linux/before_install.sh | 2 +- .travis/linux/script.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis/linux/before_install.sh b/.travis/linux/before_install.sh index adfc72d..454b9eb 100644 --- a/.travis/linux/before_install.sh +++ b/.travis/linux/before_install.sh @@ -5,5 +5,5 @@ export CONTAINER=$(docker run -d fedora sleep 1800) docker exec $CONTAINER dnf -y install 'dnf-command(builddep)' docker exec $CONTAINER dnf -y builddep p11-kit -docker exec $CONTAINER dnf -y install gettext-devel git libtool make opensc openssl $EXTRA_PKGS +docker exec $CONTAINER dnf -y install gettext-devel git libtool make opensc openssl valgrind $EXTRA_PKGS docker exec $CONTAINER useradd user diff --git a/.travis/linux/script.sh b/.travis/linux/script.sh index d8ff4e5..16e9f8f 100644 --- a/.travis/linux/script.sh +++ b/.travis/linux/script.sh @@ -9,3 +9,4 @@ docker exec $CONTAINER su - user sh -c "cd $BUILDDIR && $SCAN_BUILD make -j$(npr docker exec $CONTAINER su - user sh -c "cd $BUILDDIR && P11_KIT_DEBUG=all LSAN_OPTIONS="$LSAN_OPTIONS" P11_KIT_TEST_LD_PRELOAD=\"$P11_KIT_TEST_LD_PRELOAD\" make check -j$(nproc) V=1 $CHECK_OPTS" docker exec $CONTAINER su - user sh -c "cd $BUILDDIR && make install" docker exec $CONTAINER su - user sh -c "cd $BUILDDIR && make installcheck" +docker exec $CONTAINER su - user sh -c "cd $BUILDDIR && valgrind --error-exitcode=81 pkcs11-tool --module p11-kit-proxy.so -L" -- cgit v1.1