run-make-check.sh uses run-make.sh to `prepare`(install dependencies)
and `configure` cmake options, without quotes these options containing
special characters(hypens mostly) are skipped, hence we see not all
options supplied at cmake configure step.
Resolves(focused to solve issues in jenkins build env):
- missing cmake options:
cmake_opts+=" -DCMAKE_CXX_COMPILER=$cxx_compiler -DCMAKE_C_COMPILER=$c_compiler"
cmake_opts+=" -DCMAKE_CXX_FLAGS_DEBUG=\-Werror"
- Ninja not being used as cmake generator
Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
echo "Please fix 'hostname --fqdn', otherwise 'make check' will fail"
return 1
fi
+ # uses run-make.sh to install-deps
FOR_MAKE_CHECK=1 prepare
local cxx_compiler=g++
local c_compiler=gcc
if [ $WITH_PMEM ]; then
cmake_opts+=" -DWITH_RBD_RWL=ON -DWITH_SYSTEM_PMDK=ON"
fi
- configure $cmake_opts $@
+ configure "$cmake_opts" "$@"
build tests
echo "make check: successful build on $(git rev-parse HEAD)"
run