File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed
examples/tools/system/package_manager Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 11from test .examples_tools import run
2- import os
32import sys
43
54
2120
2221print ("- Consuming Conan package ncurses/system -" )
2322
24- os .environ ["TERMINFO" ] = "/usr/share/terminfo"
25-
2623out = 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
Original file line number Diff line number Diff 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. \n Please, run it with: ' { app_path } ' " )
You can’t perform that action at this time.
0 commit comments