Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1d48322

Browse files
committedSep 22, 2023
Turned on output on failure
1 parent 3a03b94 commit 1d48322

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
 

‎conanfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def generate(self):
158158
copy(self, "*.dylib", dep.cpp_info.libdirs[0], os.path.join(self.build_folder, "libs"), keep_path=False)
159159

160160
tc = CMakeToolchain(self)
161-
161+
tc.cache_variables['CTEST_OUTPUT_ON_FAILURE'] = True
162162
tc.cache_variables['SHARED_AGENT_LIB'] = self.options.shared.__bool__()
163163
tc.cache_variables['WITH_RUBY'] = self.options.with_ruby.__bool__()
164164
tc.cache_variables['AGENT_WITH_DOCS'] = self.options.with_docs.__bool__()
@@ -183,7 +183,7 @@ def build(self):
183183
cmake.build(build_type=None, target='docs')
184184

185185
if self.options.development and not self.conf.get("tools.build:skip_test", default=False):
186-
cmake.test()
186+
cmake.test(env='CTEST_OUTPUT_ON_FAILURE=YES')
187187

188188
def package_info(self):
189189
self.cpp_info.includedirs = ['include']

‎test_package/conanfile.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def generate(self):
2020
agent_options = self.dependencies[self.tested_reference_str].options
2121

2222
tc = CMakeToolchain(self)
23-
23+
tc.cache_variables['CTEST_OUTPUT_ON_FAILURE'] = True
24+
2425
if agent_options.shared:
2526
tc.cache_variables['SHARED_AGENT_LIB'] = True
2627
if agent_options.with_ruby:
@@ -44,5 +45,6 @@ def build(self):
4445
def test(self):
4546
if can_run(self):
4647
cmake = CMake(self)
47-
cmake.test()
48-
48+
cmake.verbose = True
49+
cmake.test(env='CTEST_OUTPUT_ON_FAILURE=YES')
50+

0 commit comments

Comments
 (0)
This repository has been archived.