Skip to content
Snippets Groups Projects
Commit 8c22d10f authored by Alessandro Di Federico's avatar Alessandro Di Federico
Browse files

Add support for running tests

parent c886bb03
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@
---
#@ def build_args():
test: true
extra_cmake_args: #@ cmake_boost_configuration
build_dependencies:
- cmake
......
......@@ -3,6 +3,7 @@
---
#@ def build_args():
test: true
extra_cmake_args: #@ cmake_boost_configuration
build_dependencies:
- cmake
......
......@@ -3,6 +3,7 @@
---
#@ def build_args():
test: true
extra_cmake_args: #@ cmake_boost_configuration
build_dependencies:
- cmake
......
......@@ -5,6 +5,7 @@
---
#@ def build_args():
test: true
pre_configure_script: |
orc clone --no-force ui/qt-creator
extra_cmake_args:
......
......@@ -79,6 +79,7 @@
#@ post_configure_script="",
#@ pre_install_script="",
#@ post_install_script="",
#@ test=False,
#@ ):
#@ for flavor, opts in typical_cmake_flavors(use_asan=use_asan).items():
......@@ -117,6 +118,14 @@
cmake --build "$BUILD_DIR" ${JOBS:+-j$JOBS}
cmake --install "$BUILD_DIR"
(@- if test: @)
if test "$RUN_TESTS" -eq 1; then
cd "$BUILD_DIR"
ctest ${JOBS:+-j$JOBS}
cd -
fi
(@ end -@)
(@- if post_install_script: @)
(@= post_install_script @)
(@ end -@)
......@@ -129,6 +138,9 @@
#@ if/end opts["ndebug"] == False:
ndebug: false
#@ if/end test:
test: #@ test
#@ end
#@ end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment