Problem: no CI coverage for VMCI transport

Solution: add a build test
This commit is contained in:
Luca Boccassi 2021-02-20 18:09:24 +00:00
parent 8fe5b54b8a
commit 4bb9a4ccff
2 changed files with 11 additions and 1 deletions

View File

@ -65,7 +65,7 @@ matrix:
packages: packages:
- valgrind - valgrind
- libgnutls-dev - 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 os: linux
addons: addons:
apt: apt:

View File

@ -66,4 +66,14 @@ function set_config_opts() {
if [ -n "$FORCE_98" ] && [ "$FORCE_98" = "enabled" ]; then if [ -n "$FORCE_98" ] && [ "$FORCE_98" = "enabled" ]; then
CONFIG_OPTS+=("--enable-force-CXX98-compat=yes") CONFIG_OPTS+=("--enable-force-CXX98-compat=yes")
fi 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
} }