<s> import unittest <EOL> from conans . test . tools import TestClient <EOL> import os <EOL> from conans . paths import CONANINFO <EOL> from conans . test . utils . cpp_test_files import cpp_hello_conan_files <EOL> from nose . plugins . attrib import attr <EOL> from conans . util . files import load <EOL> from conans . model . info import ConanInfo <EOL> import time <EOL> @ attr ( "<STR_LIT>" ) <EOL> class BasicBuildTest ( unittest . TestCase ) : <EOL> def complete_build_flow_test ( self ) : <EOL> """<STR_LIT>""" <EOL> client = TestClient ( ) <EOL> command = os . sep . join ( [ "<STR_LIT:.>" , "<STR_LIT>" , "<STR_LIT>" ] ) <EOL> for pure_c in ( False , True ) : <EOL> for install , lang , static in [ ( "<STR_LIT>" , <NUM_LIT:0> , True ) , <EOL> ( "<STR_LIT>" , <NUM_LIT:1> , True ) , <EOL> ( "<STR_LIT>" , <NUM_LIT:1> , False ) , <EOL> ( "<STR_LIT>" , <NUM_LIT:0> , False ) ] : <EOL> dll_export = client . default_compiler_visual_studio and not static <EOL> files = cpp_hello_conan_files ( "<STR_LIT>" , "<STR_LIT>" , dll_export = dll_export , <EOL> pure_c = pure_c ) <EOL> client . save ( files , clean_first = True ) <EOL> client . run ( install ) <EOL> time . sleep ( <NUM_LIT:1> ) <EOL> client . run ( '<STR_LIT>' ) <EOL> client . runner ( command , cwd = client . current_folder ) <EOL> msg = "<STR_LIT>" if lang == <NUM_LIT:0> else "<STR_LIT>" <EOL> self . assertIn ( "<STR_LIT>" % msg , client . user_io . out ) <EOL> conan_info_path = os . path . join ( client . current_folder , CONANINFO ) <EOL> conan_info = ConanInfo . loads ( load ( conan_info_path ) ) <EOL> self . assertTrue ( conan_info . full_options . language == lang ) <EOL> if static : <EOL> self . assertTrue ( conan_info . full_options . static ) <EOL> else : <EOL> self . assertFalse ( conan_info . full_options . static ) </s>
