Skip to content

Commit

Permalink
Revert "No tests auto-run on package build"
Browse files Browse the repository at this point in the history
This reverts commit e81a57f.
  • Loading branch information
sguionni committed Jun 3, 2024
1 parent 48ac995 commit 8352ef5
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/cmake_util.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,9 @@ jobs:
working-directory: ${{env.CMAKELISTS_DIR}}
run: conan create . --build=missing --settings=compiler.cppstd=20

- name: Build tests
- name: Test
working-directory: ${{env.CMAKELISTS_DIR}}
run: conan create test --build=missing --settings=compiler.cppstd=20

- name: Test
uses: threeal/[email protected]
with:
test-dir: ${{env.CMAKELISTS_DIR}}/build
build-config: Release

- name: Upload dependencies
working-directory: ${{env.CMAKELISTS_DIR}}
Expand Down
1 change: 1 addition & 0 deletions lib/app/test/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
self.run("ctest --rerun-failed --output-on-failure")

def package(self):
cmake = CMake(self)
Expand Down
1 change: 1 addition & 0 deletions lib/io/test/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
self.run("ctest --rerun-failed --output-on-failure")

def package(self):
cmake = CMake(self)
Expand Down
1 change: 1 addition & 0 deletions lib/python_binding/test/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
self.run("ctest --rerun-failed --output-on-failure")

def package(self):
cmake = CMake(self)
Expand Down
1 change: 1 addition & 0 deletions lib/renderer/test/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
self.run("ctest --rerun-failed --output-on-failure")

def package(self):
cmake = CMake(self)
Expand Down
1 change: 1 addition & 0 deletions lib/tool/test/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
self.run("ctest --rerun-failed --output-on-failure")

def package(self):
cmake = CMake(self)
Expand Down
1 change: 1 addition & 0 deletions lib/tool/tools/mdprep/test/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
self.run("ctest --rerun-failed --output-on-failure") # TODO uncomment this when build is stable

def package(self):
cmake = CMake(self)
Expand Down
1 change: 1 addition & 0 deletions lib/ui/test/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
self.run("ctest --rerun-failed --output-on-failure")

def package(self):
cmake = CMake(self)
Expand Down
1 change: 1 addition & 0 deletions lib/util/test/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
self.run("ctest --rerun-failed --output-on-failure")

def package(self):
cmake = CMake(self)
Expand Down

0 comments on commit 8352ef5

Please sign in to comment.