Enabled python tests on mac
This commit is contained in:
17
CI/ci-mac.sh
17
CI/ci-mac.sh
@@ -28,7 +28,7 @@ fi
|
|||||||
|
|
||||||
cd build-release
|
cd build-release
|
||||||
|
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DOPENMESH_BUILD_UNIT_TESTS=TRUE $OPTIONS ../
|
cmake -DCMAKE_BUILD_TYPE=Release -DOPENMESH_BUILD_UNIT_TESTS=TRUE -DSTL_VECTOR_CHECKS=ON -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON $OPTIONS ../
|
||||||
|
|
||||||
#build it
|
#build it
|
||||||
make
|
make
|
||||||
@@ -45,6 +45,14 @@ cd Unittests
|
|||||||
#execute tests
|
#execute tests
|
||||||
./unittests --gtest_color=yes --gtest_output=xml
|
./unittests --gtest_color=yes --gtest_output=xml
|
||||||
|
|
||||||
|
# Execute Python unittests
|
||||||
|
cd Python-Unittests
|
||||||
|
|
||||||
|
rm -f openmesh.so
|
||||||
|
cp ../Build/python/openmesh.so .
|
||||||
|
python -m unittest discover -v
|
||||||
|
|
||||||
|
cd ..
|
||||||
cd ..
|
cd ..
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
@@ -59,7 +67,7 @@ fi
|
|||||||
|
|
||||||
cd build-debug
|
cd build-debug
|
||||||
|
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug -DOPENMESH_BUILD_UNIT_TESTS=TRUE $OPTIONS ../
|
cmake -DCMAKE_BUILD_TYPE=Debug -DOPENMESH_BUILD_UNIT_TESTS=TRUE -DSTL_VECTOR_CHECKS=ON -DOPENMESH_BUILD_PYTHON_UNIT_TESTS=ON $OPTIONS ../
|
||||||
|
|
||||||
#build the unit tests
|
#build the unit tests
|
||||||
make unittests
|
make unittests
|
||||||
@@ -74,4 +82,9 @@ cd Unittests
|
|||||||
# Run the unittests
|
# Run the unittests
|
||||||
./unittests --gtest_color=yes --gtest_output=xml
|
./unittests --gtest_color=yes --gtest_output=xml
|
||||||
|
|
||||||
|
# Execute Python unittests
|
||||||
|
cd Python-Unittests
|
||||||
|
|
||||||
|
rm -f openmesh.so
|
||||||
|
cp ../Build/python/openmesh.so .
|
||||||
|
python -m unittest discover -v
|
||||||
|
|||||||
Reference in New Issue
Block a user