mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Run doctest unit tests in Travis CI
This commit is contained in:
parent
9e83abc5d9
commit
9941537481
1 changed files with 23 additions and 3 deletions
|
@ -165,7 +165,7 @@ build() {
|
|||
# not needed by the Zeek tests. If the distro is set for leak tests, enable
|
||||
# those options as well.
|
||||
if [ "${BUILD_DISTRO}" != "${LEAK_TEST_DISTRO}" ]; then
|
||||
./configure --build-type=Release --disable-broker-tests --disable-python --disable-zeekctl && make -j 2
|
||||
./configure --build-type=Release --disable-broker-tests --enable-cpp-tests --disable-python --disable-zeekctl && make -j 2
|
||||
else
|
||||
echo "Configuring zeek to build for leak testing"
|
||||
./configure --build-type=Debug --disable-broker-tests --disable-python --disable-zeekctl --enable-perftools --enable-perftools-debug && make -j 2
|
||||
|
@ -207,8 +207,25 @@ run() {
|
|||
|
||||
ulimit -c unlimited
|
||||
ulimit -a
|
||||
ret=0
|
||||
|
||||
if [ "${BUILD_DISTRO}" != "${LEAK_TEST_DISTRO}" ]; then
|
||||
echo
|
||||
echo "Running unit tests ##################################################"
|
||||
echo
|
||||
|
||||
set +e
|
||||
( cd build && . ./zeek-path-dev.sh && zeek --test )
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
ret=1
|
||||
fi
|
||||
|
||||
set -e
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "Running unit tests ##################################################"
|
||||
echo "Running baseline tests ##############################################"
|
||||
echo
|
||||
cd testing/btest
|
||||
|
||||
|
@ -220,7 +237,10 @@ run() {
|
|||
../../aux/btest/btest -j 4 -d -g leaks
|
||||
fi
|
||||
|
||||
ret=$?
|
||||
if [ $? -ne 0 ]; then
|
||||
ret=1
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
echo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue