2019-10-29 09:30:35 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
source CI/ci-linux-prepare.sh
|
|
|
|
|
|
|
|
|
|
echo -e "${OUTPUT}"
|
|
|
|
|
echo ""
|
|
|
|
|
echo "======================================================================"
|
|
|
|
|
echo "Basic configuration details:"
|
|
|
|
|
echo "======================================================================"
|
|
|
|
|
echo -e "${NC}"
|
|
|
|
|
|
|
|
|
|
echo "Compiler: $COMPILER"
|
|
|
|
|
echo "Options: $OPTIONS"
|
|
|
|
|
echo "Language: $LANGUAGE"
|
|
|
|
|
echo "Make Options: $OPTIONS"
|
|
|
|
|
echo "BuildPath: $BUILDPATH"
|
|
|
|
|
echo "Path: $PATH"
|
|
|
|
|
echo "Language: $LANGUAGE"
|
|
|
|
|
|
|
|
|
|
echo -e "${OUTPUT}"
|
|
|
|
|
echo ""
|
|
|
|
|
echo "======================================================================"
|
|
|
|
|
echo "Building $BUILD_TYPE version unittests"
|
|
|
|
|
echo "======================================================================"
|
|
|
|
|
echo -e "${NC}"
|
|
|
|
|
|
2021-02-02 14:25:38 +01:00
|
|
|
if [ ! -d build-$BUILDPATH ]; then
|
|
|
|
|
mkdir build-$BUILDPATH
|
2019-10-29 09:30:35 +01:00
|
|
|
fi
|
|
|
|
|
|
2021-02-02 14:25:38 +01:00
|
|
|
cd build-$BUILDPATH
|
2019-10-29 09:30:35 +01:00
|
|
|
|
2021-02-02 15:04:02 +01:00
|
|
|
# Run cmake to make sure the tests are configured correctly for this system
|
|
|
|
|
cmake -DOPENFLIPPER_BUILD_UNIT_TESTS=TRUE -DSTL_VECTOR_CHECKS=ON $OPTIONS ../
|
|
|
|
|
|
2019-10-29 09:30:35 +01:00
|
|
|
#build the unit tests
|
|
|
|
|
make $MAKE_OPTIONS unittests
|
|
|
|
|
|
|
|
|
|
echo -e "${OUTPUT}"
|
|
|
|
|
echo ""
|
|
|
|
|
echo "======================================================================"
|
|
|
|
|
echo "Running unittests $BUILD_TYPE version with vectorchecks enabled"
|
|
|
|
|
echo "======================================================================"
|
|
|
|
|
echo -e "${NC}"
|
|
|
|
|
|
|
|
|
|
cd Unittests
|
|
|
|
|
|
|
|
|
|
#execute tests
|
2020-05-25 13:08:27 +02:00
|
|
|
./unittests --gtest_color=yes --gtest_output=xml:./report.xml
|
2019-10-29 09:30:35 +01:00
|
|
|
|
|
|
|
|
echo -e "${OUTPUT}"
|
|
|
|
|
echo ""
|
|
|
|
|
echo "======================================================================"
|
|
|
|
|
echo "Running unittests $BUILD_TYPE version with custom vector type"
|
|
|
|
|
echo "======================================================================"
|
|
|
|
|
echo -e "${NC}"
|
|
|
|
|
|
2020-05-25 13:08:27 +02:00
|
|
|
./unittests_customvec --gtest_color=yes --gtest_output=xml:./report-customvec.xml
|
2019-10-29 09:30:35 +01:00
|
|
|
|
|
|
|
|
echo -e "${OUTPUT}"
|
|
|
|
|
echo ""
|
|
|
|
|
echo "======================================================================"
|
|
|
|
|
echo "Running unittests $BUILD_TYPE version with double vector type"
|
|
|
|
|
echo "======================================================================"
|
|
|
|
|
echo -e "${NC}"
|
|
|
|
|
|
|
|
|
|
#execute tests
|
2020-05-25 13:08:27 +02:00
|
|
|
./unittests_doublevec --gtest_color=yes --gtest_output=xml:./report-doublevec.xml
|
|
|
|
|
|
|
|
|
|
pwd
|
|
|
|
|
ls *.xml
|
2019-10-29 09:30:35 +01:00
|
|
|
|
|
|
|
|
cd ..
|
2020-05-25 07:16:41 +02:00
|
|
|
cd ..
|