Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenMesh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenMesh
OpenMesh
Commits
a349c194
Commit
a349c194
authored
Dec 03, 2015
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed stl vector checks from python unittest build on linux
(cherry picked from commit
3ac9557d
)
parent
36d45f61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
86 additions
and
24 deletions
+86
-24
CI/ci-linux.sh
CI/ci-linux.sh
+86
-24
No files found.
CI/ci-linux.sh
View file @
a349c194
...
...
@@ -28,16 +28,21 @@ elif [ "$LANGUAGE" == "C++11" ]; then
BUILDPATH
=
"
$BUILDPATH
-cpp11"
fi
#########################################
# Make release build folder
if
[
!
-d
build-release-
$BUILDPATH
]
;
then
mkdir
build-release-
$BUILDPATH
echo
"
\n
"
echo
"
\n
"
echo
"======================================================================"
echo
"Building Release version with vectorchecks enabled"
echo
"======================================================================
\n
"
if
[
!
-d
build-release-
$BUILDPATH
-Vector-Checks
]
;
then
mkdir
build-release-
$BUILDPATH
-Vector-Checks
fi
cd
build-release-
$BUILDPATH
cd
build-release-
$BUILDPATH
-Vector-Checks
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DOPENMESH_BUILD_UNIT_TESTS
=
TRUE
-DSTL_VECTOR_CHECKS
=
ON
-DOPENMESH_BUILD_PYTHON_UNIT_TESTS
=
O
N
$OPTIONS
../
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DOPENMESH_BUILD_UNIT_TESTS
=
TRUE
-DSTL_VECTOR_CHECKS
=
ON
-DOPENMESH_BUILD_PYTHON_UNIT_TESTS
=
O
FF
$OPTIONS
../
#build it
make
...
...
@@ -45,36 +50,69 @@ make
#build the unit tests
make unittests
echo
"
\n
"
echo
"
\n
"
echo
"======================================================================"
echo
"Running unittests Release version with vectorchecks enabled"
echo
"======================================================================
\n
"
#########################################
# Run Release Unittests
#########################################
cd
Unittests
#execute tests
./unittests
--gtest_color
=
yes
--gtest_output
=
xml
cd
..
cd
..
echo
"
\n
"
echo
"
\n
"
echo
"======================================================================"
echo
"Building Release version with vectorchecks disabled for python tests"
echo
"======================================================================
\n
"
if
[
!
-d
build-release-
$BUILDPATH
]
;
then
mkdir
build-release-
$BUILDPATH
fi
cd
build-release-
$BUILDPATH
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DOPENMESH_BUILD_PYTHON_UNIT_TESTS
=
ON
-DBUILD_APPS
=
OFF
$OPTIONS
../
#build it
make
echo
"
\n
"
echo
"
\n
"
echo
"======================================================================"
echo
"Running Python unittests Release version "
echo
"======================================================================
\n
"
# Execute Python unittests
cd
Python-Unittests
python
-m
unittest discover
-v
cd
..
cd
..
#########################################
# Build Debug version and Unittests
#########################################
if
[
!
-d
build-debug-
$BUILDPATH
]
;
then
mkdir
build-debug-
$BUILDPATH
echo
"
\n
"
echo
"
\n
"
echo
"======================================================================"
echo
"Building Debug version with vectorchecks enabled"
echo
"======================================================================
\n
"
if
[
!
-d
build-debug-
$BUILDPATH
-Vector-Checks
]
;
then
mkdir
build-debug-
$BUILDPATH
-Vector-Checks
fi
cd
build-debug-
$BUILDPATH
cd
build-debug-
$BUILDPATH
-Vector-Checks
cmake
-DCMAKE_BUILD_TYPE
=
Debug
-DOPENMESH_BUILD_UNIT_TESTS
=
TRUE
-DSTL_VECTOR_CHECKS
=
ON
-DOPENMESH_BUILD_PYTHON_UNIT_TESTS
=
O
N
$OPTIONS
../
cmake
-DCMAKE_BUILD_TYPE
=
Debug
-DOPENMESH_BUILD_UNIT_TESTS
=
TRUE
-DSTL_VECTOR_CHECKS
=
ON
-DOPENMESH_BUILD_PYTHON_UNIT_TESTS
=
O
FF
$OPTIONS
../
#build it
make
...
...
@@ -82,22 +120,46 @@ make
#build the unit tests
make unittests
echo
"
\n
"
echo
"
\n
"
echo
"======================================================================"
echo
"Running unittests Debug version with vectorchecks enabled"
echo
"======================================================================
\n
"
#########################################
# Run Debug Unittests
#########################################
cd
Unittests
#
Run the unit
tests
#
execute
tests
./unittests
--gtest_color
=
yes
--gtest_output
=
xml
cd
..
cd
..
echo
"
\n
"
echo
"
\n
"
echo
"======================================================================"
echo
"Building Debug version with vectorchecks disabled for python tests"
echo
"======================================================================
\n
"
if
[
!
-d
build-debug-
$BUILDPATH
]
;
then
mkdir
build-debug-
$BUILDPATH
fi
cd
build-debug-
$BUILDPATH
cmake
-DCMAKE_BUILD_TYPE
=
DEBUG
-DOPENMESH_BUILD_PYTHON_UNIT_TESTS
=
ON
-DBUILD_APPS
=
OFF
$OPTIONS
../
#build it
make
echo
"
\n
"
echo
"
\n
"
echo
"======================================================================"
echo
"Running Python unittests Debug version "
echo
"======================================================================
\n
"
# Execute Python unittests
cd
Python-Unittests
python
-m
unittest discover
-v
cd
..
cd
..
python
-m
unittest discover
-v
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment