|
@@ -25,11 +25,11 @@ fi
|
|
if ! [ -z ${FUZZER+x} ]; then
|
|
if ! [ -z ${FUZZER+x} ]; then
|
|
# Test the corpus generator and use new corpus for fuzz test
|
|
# Test the corpus generator and use new corpus for fuzz test
|
|
./tests/fuzz/generate_corpus.sh
|
|
./tests/fuzz/generate_corpus.sh
|
|
- if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
|
|
|
|
+ if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
|
|
|
|
- cd build_fuzz
|
|
|
|
- make && make run_fuzzer
|
|
|
|
- if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
|
|
|
|
+ cd build_fuzz
|
|
|
|
+ make && make run_fuzzer
|
|
|
|
+ if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
exit 0
|
|
exit 0
|
|
fi
|
|
fi
|
|
|
|
|
|
@@ -172,58 +172,71 @@ else
|
|
make -j
|
|
make -j
|
|
if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
cd .. && rm build -rf
|
|
cd .. && rm build -rf
|
|
|
|
+ echo -en 'travis_fold:end:script.build.shared_libs\\r'
|
|
|
|
|
|
- if [ "$CC" != "tcc" ]; then
|
|
|
|
- echo -en 'travis_fold:end:script.build.shared_libs\\r'echo -e "\r\n==Compile multithreaded version==" && echo -en 'travis_fold:start:script.build.multithread\\r'
|
|
|
|
- mkdir -p build && cd build
|
|
|
|
- cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$PYTHON -DUA_ENABLE_MULTITHREADING=ON -DUA_BUILD_EXAMPLES=ON ..
|
|
|
|
- make -j
|
|
|
|
- if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
|
|
- cd .. && rm build -rf
|
|
|
|
- echo -en 'travis_fold:end:script.build.multithread\\r'
|
|
|
|
- fi
|
|
|
|
-
|
|
|
|
- echo -e "\r\n== Compile without discovery version ==" && echo -en 'travis_fold:start:script.build.unit_test_valgrind\\r'
|
|
|
|
|
|
+ if [ "$CC" != "tcc" ]; then
|
|
|
|
+ echo -e "\r\n==Compile multithreaded version==" && echo -en 'travis_fold:start:script.build.multithread\\r'
|
|
|
|
+ mkdir -p build && cd build
|
|
|
|
+ cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$PYTHON -DUA_ENABLE_MULTITHREADING=ON -DUA_BUILD_EXAMPLES=ON ..
|
|
|
|
+ make -j
|
|
|
|
+ if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
|
|
+ cd .. && rm build -rf
|
|
|
|
+ echo -en 'travis_fold:end:script.build.multithread\\r'
|
|
|
|
+ fi
|
|
|
|
+
|
|
|
|
+ echo -e "\r\n== Compile with encryption ==" && echo -en 'travis_fold:start:script.build.encryption\\r'
|
|
|
|
+ mkdir -p build && cd build
|
|
|
|
+ cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$PYTHON -DUA_ENABLE_ENCRYPTION=ON -DUA_BUILD_EXAMPLES=ON ..
|
|
|
|
+ make -j
|
|
|
|
+ if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
|
|
+ cd .. && rm build -rf
|
|
|
|
+ echo -en 'travis_fold:end:script.build.encryption\\r'
|
|
|
|
+
|
|
|
|
+ echo -e "\r\n== Compile without discovery version ==" && echo -en 'travis_fold:start:script.build.discovery\\r'
|
|
mkdir -p build && cd build
|
|
mkdir -p build && cd build
|
|
cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$PYTHON -DUA_ENABLE_DISCOVERY=OFF -DUA_ENABLE_DISCOVERY_MULTICAST=OFF -DUA_BUILD_EXAMPLES=ON ..
|
|
cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$PYTHON -DUA_ENABLE_DISCOVERY=OFF -DUA_ENABLE_DISCOVERY_MULTICAST=OFF -DUA_BUILD_EXAMPLES=ON ..
|
|
make -j
|
|
make -j
|
|
if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
cd .. && rm build -rf
|
|
cd .. && rm build -rf
|
|
|
|
+ echo -en 'travis_fold:end:script.build.discovery\\r'
|
|
|
|
|
|
- echo -e "\r\n== Compile discovery without multicast version =="
|
|
|
|
|
|
+ echo -e "\r\n== Compile discovery without multicast version ==" && echo -en 'travis_fold:start:script.build.multicast\\r'
|
|
mkdir -p build && cd build
|
|
mkdir -p build && cd build
|
|
cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$PYTHON -DUA_ENABLE_DISCOVERY=ON -DUA_ENABLE_DISCOVERY_MULTICAST=OFF -DUA_BUILD_EXAMPLES=ON ..
|
|
cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$PYTHON -DUA_ENABLE_DISCOVERY=ON -DUA_ENABLE_DISCOVERY_MULTICAST=OFF -DUA_BUILD_EXAMPLES=ON ..
|
|
make -j
|
|
make -j
|
|
if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
cd .. && rm build -rf
|
|
cd .. && rm build -rf
|
|
|
|
+ echo -en 'travis_fold:end:script.build.multicast\\r'
|
|
|
|
|
|
- if [ "$CC" != "tcc" ]; then
|
|
|
|
- echo -e "\r\n== Compile multithreaded version with discovery =="
|
|
|
|
- mkdir -p build && cd build
|
|
|
|
- cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$PYTHON -DUA_ENABLE_MULTITHREADING=ON -DUA_ENABLE_DISCOVERY=ON -DUA_ENABLE_DISCOVERY_MULTICAST=ON -DUA_BUILD_EXAMPLES=ON ..
|
|
|
|
- make -j
|
|
|
|
- if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
|
|
- cd .. && rm build -rf
|
|
|
|
- echo -en 'travis_fold:end:script.build.multithread\\r'
|
|
|
|
- fi
|
|
|
|
|
|
+ if [ "$CC" != "tcc" ]; then
|
|
|
|
+ echo -e "\r\n== Compile multithreaded version with discovery ==" && echo -en 'travis_fold:start:script.build.multithread_discovery\\r'
|
|
|
|
+ mkdir -p build && cd build
|
|
|
|
+ cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$PYTHON -DUA_ENABLE_MULTITHREADING=ON -DUA_ENABLE_DISCOVERY=ON -DUA_ENABLE_DISCOVERY_MULTICAST=ON -DUA_BUILD_EXAMPLES=ON ..
|
|
|
|
+ make -j
|
|
|
|
+ if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
|
|
+ cd .. && rm build -rf
|
|
|
|
+ echo -en 'travis_fold:end:script.build.multithread_discovery\\r'
|
|
|
|
+ fi
|
|
|
|
|
|
echo -e "\r\n== Unit tests (full NS0) ==" && echo -en 'travis_fold:start:script.build.unit_test_ns0_full\\r'
|
|
echo -e "\r\n== Unit tests (full NS0) ==" && echo -en 'travis_fold:start:script.build.unit_test_ns0_full\\r'
|
|
mkdir -p build && cd build
|
|
mkdir -p build && cd build
|
|
# Valgrind cannot handle the full NS0 because the generated file is too big. Thus run NS0 full without valgrind
|
|
# Valgrind cannot handle the full NS0 because the generated file is too big. Thus run NS0 full without valgrind
|
|
cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$PYTHON -DUA_ENABLE_FULL_NS0=ON \
|
|
cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$PYTHON -DUA_ENABLE_FULL_NS0=ON \
|
|
- -DCMAKE_BUILD_TYPE=Debug -DUA_BUILD_EXAMPLES=ON -DUA_ENABLE_DISCOVERY=ON -DUA_ENABLE_DISCOVERY_MULTICAST=ON \
|
|
|
|
- -DUA_BUILD_UNIT_TESTS=ON -DUA_ENABLE_COVERAGE=OFF -DUA_ENABLE_UNIT_TESTS_MEMCHECK=OFF ..
|
|
|
|
|
|
+ -DCMAKE_BUILD_TYPE=Debug -DUA_BUILD_EXAMPLES=ON -DUA_ENABLE_ENCRYPTION=ON -DUA_ENABLE_DISCOVERY=ON \
|
|
|
|
+ -DUA_ENABLE_DISCOVERY_MULTICAST=ON -DUA_BUILD_UNIT_TESTS=ON -DUA_ENABLE_COVERAGE=OFF \
|
|
|
|
+ -DUA_ENABLE_UNIT_TESTS_MEMCHECK=OFF ..
|
|
make -j && make test ARGS="-V"
|
|
make -j && make test ARGS="-V"
|
|
if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
cd .. && rm build -rf
|
|
cd .. && rm build -rf
|
|
- echo -en 'travis_fold:end:script.build.unit_test_ns0\\r'
|
|
|
|
|
|
+ echo -en 'travis_fold:end:script.build.unit_test_ns0_full\\r'
|
|
|
|
|
|
- if [ "$CC" != "tcc" ]; then
|
|
|
|
|
|
+ if [ "$CC" != "tcc" ]; then
|
|
echo -e "\r\n== Unit tests (minimal NS0) ==" && echo -en 'travis_fold:start:script.build.unit_test_ns0_minimal\\r'
|
|
echo -e "\r\n== Unit tests (minimal NS0) ==" && echo -en 'travis_fold:start:script.build.unit_test_ns0_minimal\\r'
|
|
mkdir -p build && cd build
|
|
mkdir -p build && cd build
|
|
cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$PYTHON \
|
|
cmake -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/$PYTHON \
|
|
- -DCMAKE_BUILD_TYPE=Debug -DUA_BUILD_EXAMPLES=ON -DUA_ENABLE_DISCOVERY=ON -DUA_ENABLE_DISCOVERY_MULTICAST=ON \
|
|
|
|
- -DUA_BUILD_UNIT_TESTS=ON -DUA_ENABLE_COVERAGE=ON -DUA_ENABLE_UNIT_TESTS_MEMCHECK=ON ..
|
|
|
|
|
|
+ -DCMAKE_BUILD_TYPE=Debug -DUA_BUILD_EXAMPLES=ON -DUA_ENABLE_ENCRYPTION=ON -DUA_ENABLE_DISCOVERY=ON \
|
|
|
|
+ -DUA_ENABLE_DISCOVERY_MULTICAST=ON -DUA_BUILD_UNIT_TESTS=ON -DUA_ENABLE_COVERAGE=ON \
|
|
|
|
+ -DUA_ENABLE_UNIT_TESTS_MEMCHECK=ON ..
|
|
make -j && make test ARGS="-V"
|
|
make -j && make test ARGS="-V"
|
|
if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
if [ $? -ne 0 ] ; then exit 1 ; fi
|
|
echo -en 'travis_fold:end:script.build.unit_test_ns0_minimal\\r'
|
|
echo -en 'travis_fold:end:script.build.unit_test_ns0_minimal\\r'
|
|
@@ -236,5 +249,5 @@ else
|
|
echo -en 'travis_fold:end:script.build.coveralls\\r'
|
|
echo -en 'travis_fold:end:script.build.coveralls\\r'
|
|
fi
|
|
fi
|
|
cd .. && rm build -rf
|
|
cd .. && rm build -rf
|
|
- fi
|
|
|
|
|
|
+ fi
|
|
fi
|
|
fi
|