Commit a04d46d6 authored by Jan Möbius's avatar Jan Möbius
Browse files

Enabled python tests on mac

parent 6b24398f
Pipeline #136 canceled with stage
...@@ -28,7 +28,7 @@ fi ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment