...

Text file src/github.com/google/flatbuffers/tests/docker/cpp_test.run.sh

Documentation: github.com/google/flatbuffers/tests/docker

     1set -e
     2
     3JOBS=${JOBS:-1}
     4export UBSAN_OPTIONS=halt_on_error=1
     5export ASAN_OPTIONS=halt_on_error=1
     6export MAKEFLAGS="-j$JOBS"
     7
     8config=$1
     9echo ""
    10echo "Build Flatbuffers project for '$config' with jobs=$JOBS"
    11
    12cmake . -DCMAKE_BUILD_TYPE=$config \
    13  -DFLATBUFFERS_BUILD_TESTS=ON -DFLATBUFFERS_CODE_SANITIZE=ON
    14cmake --build . --target all --clean-first -- -j$JOBS
    15ctest --extra-verbose --output-on-failure -j$JOBS
    16
    17echo "Checking generated code"
    18scripts/check_generate_code.py
    19
    20echo "C++ tests done"

View as plain text