diff mbox

[rdma-core,6/6] Have travis test all three IOCTL_MODE's

Message ID 20180218204002.7408-7-jgg@ziepe.ca (mailing list archive)
State Accepted
Headers show

Commit Message

Jason Gunthorpe Feb. 18, 2018, 8:40 p.m. UTC
From: Jason Gunthorpe <jgg@mellanox.com>

Use the existing compiler runs to get coverage. 'both' leaves the most
code enabled so use it as the default. The debian build will cover
the default mode of 'write'.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
---
 buildlib/travis-build | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox

Patch

diff --git a/buildlib/travis-build b/buildlib/travis-build
index cb5c1149a43ab8..b0b00b23b3378b 100755
--- a/buildlib/travis-build
+++ b/buildlib/travis-build
@@ -9,7 +9,7 @@  mkdir build-clang build32 build-sparse build-aarch64
 
 # Build with latest clang first
 cd build-clang
-CC=clang-5.0 CFLAGS=-Werror cmake -GNinja ..
+CC=clang-5.0 CFLAGS=-Werror cmake -GNinja .. -DIOCTL_MODE=both
 ninja
 ../buildlib/check-build --src .. --cc clang-5.0
 
@@ -17,19 +17,19 @@  ninja
 cd ../build32
 # travis's trusty is not configured in a way that enables all 32 bit
 # packages. We could fix this with some sudo stuff.. For now turn off libnl
-CC=gcc-7 CFLAGS="-Werror -m32" cmake -GNinja .. -DENABLE_RESOLVE_NEIGH=0
+CC=gcc-7 CFLAGS="-Werror -m32" cmake -GNinja .. -DENABLE_RESOLVE_NEIGH=0 -DIOCTL_MODE=both
 ninja
 
 # aarch64 build to check compilation on ARM 64bit platform
 cd ../build-aarch64
-CC=$HOME/aarch64/bin/aarch64-linux-gnu-gcc CFLAGS="-Werror -Wno-maybe-uninitialized" cmake -GNinja .. -DENABLE_RESOLVE_NEIGH=0
+CC=$HOME/aarch64/bin/aarch64-linux-gnu-gcc CFLAGS="-Werror -Wno-maybe-uninitialized" cmake -GNinja .. -DENABLE_RESOLVE_NEIGH=0 -DIOCTL_MODE=ioctl
 ninja
 
 # Run sparse on the subdirectories which are sparse clean
 cd ../build-sparse
 mv ../CMakeLists.txt ../CMakeLists-orig.txt
 grep -v "# NO SPARSE" ../CMakeLists-orig.txt > ../CMakeLists.txt
-CC=cgcc CFLAGS="-Werror" cmake -GNinja ..
+CC=cgcc CFLAGS="-Werror" cmake -GNinja .. -DIOCTL_MODE=both
 ninja | grep -v '^\[' | tee out
 # sparse does not fail gcc on messages
 if [ -s out ]; then
@@ -42,7 +42,7 @@  cd ../build-clang
 cp ../util/udma_barrier.h ../util/udma_barrier.h.old
 echo "#error Fail" >> ../util/udma_barrier.h
 rm CMakeCache.txt
-CC=clang-5.0 CFLAGS=-Werror cmake -GNinja ..
+CC=clang-5.0 CFLAGS=-Werror cmake -GNinja .. -DIOCTL_MODE=both
 ninja
 cp ../util/udma_barrier.h.old ../util/udma_barrier.h