From 4bb9a4ccffe2cbd55b361d2376fbb01c3d9840ff Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sat, 20 Feb 2021 18:09:24 +0000 Subject: [PATCH] Problem: no CI coverage for VMCI transport Solution: add a build test --- .travis.yml | 2 +- config.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cdd961e0..5774f5e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -65,7 +65,7 @@ matrix: packages: - valgrind - libgnutls-dev - - env: BUILD_TYPE=default CURVE=libsodium GSSAPI=enabled PGM=enabled NORM=enabled + - env: BUILD_TYPE=default CURVE=libsodium GSSAPI=enabled PGM=enabled NORM=enabled VMCI=enabled os: linux addons: apt: diff --git a/config.sh b/config.sh index 4648cab4..73729fed 100644 --- a/config.sh +++ b/config.sh @@ -66,4 +66,14 @@ function set_config_opts() { if [ -n "$FORCE_98" ] && [ "$FORCE_98" = "enabled" ]; then CONFIG_OPTS+=("--enable-force-CXX98-compat=yes") fi + + if [ -n "$VMCI" ] && [ "$VMCI" = "enabled" ]; then + CONFIG_OPTS+=("--with-vmci=$PWD/vmci") + # VMWare headeers are not ISO C++ compliant + CONFIG_OPTS+=("--disable-pedantic") + git clone --depth 1 https://github.com/vmware/open-vm-tools.git + mkdir -p vmci + # Linux headers are redefined, so we can't just add -I to the whole dir + cp open-vm-tools/open-vm-tools/lib/include/vmci_* vmci/ + fi }