<s> from qibuild . test . conftest import TestBuildWorkTree <EOL> def test_no_cmake ( qibuild_action , record_messages ) : <EOL> qibuild_action . add_test_project ( "<STR_LIT>" ) <EOL> qibuild_action . chdir ( "<STR_LIT>" ) <EOL> qibuild_action ( "<STR_LIT>" ) <EOL> assert record_messages . find ( "<STR_LIT>" ) <EOL> assert record_messages . find ( "<STR_LIT>" ) <EOL> record_messages . reset ( ) <EOL> qibuild_action ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> qibuild_action ( "<STR_LIT>" ) <EOL> qibuild_action ( "<STR_LIT>" ) <EOL> def test_pure_cmake ( qibuild_action ) : <EOL> qibuild_action . add_test_project ( "<STR_LIT>" ) <EOL> qibuild_action . chdir ( "<STR_LIT>" ) <EOL> qibuild_action ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> qibuild_action ( "<STR_LIT>" ) <EOL> def test_qibuild2 ( qibuild_action , record_messages ) : <EOL> qibuild_action . add_test_project ( "<STR_LIT>" ) <EOL> qibuild_action . chdir ( "<STR_LIT>" ) <EOL> qibuild_action ( "<STR_LIT>" ) <EOL> qibuild_action ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> qibuild_action ( "<STR_LIT>" ) <EOL> def test_pure_c_project ( qibuild_action , tmpdir ) : <EOL> work = tmpdir . join ( "<STR_LIT>" ) <EOL> foo = work . mkdir ( "<STR_LIT:foo>" ) <EOL> foo . join ( "<STR_LIT>" ) . write ( """<STR_LIT>""" ) <EOL> qibuild_action . chdir ( foo . strpath ) <EOL> qibuild_action ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> qibuild_action . chdir ( work . strpath ) <EOL> build_worktree = TestBuildWorkTree ( ) <EOL> worktree = build_worktree . worktree <EOL> worktree . add_project ( "<STR_LIT:foo>" ) <EOL> assert build_worktree . get_build_project ( "<STR_LIT:foo>" ) </s>
