Skip to content

Commit e3607c1

Browse files
committed
Do not run the example app with build
Signed-off-by: Uilian Ries <uilianries@gmail.com>
1 parent 46a4e24 commit e3607c1

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

examples/tools/system/package_manager/ci_test_example.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from test.examples_tools import run
2-
import os
32
import sys
43

54

@@ -21,10 +20,6 @@
2120

2221
print("- Consuming Conan package ncurses/system -")
2322

24-
os.environ["TERMINFO"] = "/usr/share/terminfo"
25-
2623
out = run("conan build consumer/ --name=ncurses-version --version=0.1.0 {}".format(" ".join(["-c " + conf for conf in confs])))
2724

28-
os.environ.pop("TERMINFO")
29-
30-
assert "Conan: Target declared 'Curses::Curses'" in out
25+
assert "The example application has been built with success" in out

examples/tools/system/package_manager/consumer/conanfile.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,8 @@ class AppNCursesVersionConan(ConanFile):
1010
package_type = "application"
1111
exports_sources = "CMakeLists.txt", "ncurses_version.c"
1212

13-
@property
14-
def _supported_os(self):
15-
return ["Linux", "Macos", "FreeBSD"]
16-
1713
def requirements(self):
18-
if self.settings.os in self._supported_os:
14+
if self.settings.os in ["Linux", "Macos", "FreeBSD"]:
1915
self.requires("ncurses/system")
2016

2117
def layout(self):
@@ -26,5 +22,5 @@ def build(self):
2622
cmake.configure()
2723
cmake.build()
2824

29-
if self.settings.os in self._supported_os:
30-
self.run(os.path.join(self.build_folder, "ncurses_version"), env="conanrun")
25+
app_path = os.path.join(self.build_folder, "ncurses_version")
26+
self.output.info(f"The example application has been built with success.\nPlease, run it with: '{app_path}'")

0 commit comments

Comments
 (0)