Enabled python tests on mac

This commit is contained in:
Jan Möbius
2015-11-25 16:09:22 +01:00
parent 6b24398fbc
commit a04d46d612

View File

@@ -28,7 +28,7 @@ fi
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
make
@@ -45,6 +45,14 @@ cd Unittests
#execute tests
./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 ..
@@ -59,7 +67,7 @@ fi
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
make unittests
@@ -74,4 +82,9 @@ cd Unittests
# Run the unittests
./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