<s> import os <EOL> import sys <EOL> import pytest <EOL> import qisys . command <EOL> import qibuild . breakpad <EOL> import qibuild . cmake_builder <EOL> import qibuild . find <EOL> @ pytest . mark . skipif ( not qisys . command . find_program ( "<STR_LIT>" ) , <EOL> reason = "<STR_LIT>" ) <EOL> def test_generate_symbols ( build_worktree , tmpdir ) : <EOL> build_worktree . add_test_project ( "<STR_LIT>" ) <EOL> cmake_builder = qibuild . cmake_builder . CMakeBuilder ( build_worktree ) <EOL> build_config = cmake_builder . build_config <EOL> build_config . build_type = "<STR_LIT>" <EOL> build_config . user_flags = [ ( "<STR_LIT>" , "<STR_LIT>" ) ] <EOL> world_proj = build_worktree . get_build_project ( "<STR_LIT>" ) <EOL> cmake_builder . projects = [ world_proj ] <EOL> cmake_builder . configure ( ) <EOL> cmake_builder . build ( ) <EOL> dest = tmpdir . join ( "<STR_LIT>" ) . strpath <EOL> cmake_builder . install ( dest , components = [ "<STR_LIT>" ] ) <EOL> symbols_archive = tmpdir . join ( "<STR_LIT>" , "<STR_LIT>" ) . strpath <EOL> res = qibuild . breakpad . gen_symbol_archive ( base_dir = dest , output = symbols_archive ) <EOL> assert os . path . exists ( res ) <EOL> def test_is_macho ( qibuild_action ) : <EOL> if not sys . platform == "<STR_LIT>" : <EOL> return <EOL> world_project = qibuild_action . add_test_project ( "<STR_LIT>" ) <EOL> qibuild_action ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> qibuild_action ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> lib_world = qibuild . find . find_lib ( [ world_project . sdk_directory ] , "<STR_LIT>" , <EOL> expect_one = True ) <EOL> lib_bar = qibuild . find . find_lib ( [ world_project . sdk_directory ] , "<STR_LIT:bar>" , <EOL> expect_one = True ) <EOL> assert qibuild . breakpad . is_macho ( lib_world ) <EOL> assert not qibuild . breakpad . is_macho ( lib_bar ) <EOL> def test_is_exe ( ) : <EOL> assert qibuild . breakpad . is_exe ( "<STR_LIT>" ) <EOL> assert qibuild . breakpad . is_exe ( "<STR_LIT>" ) <EOL> assert not qibuild . breakpad . is_exe ( "<STR_LIT>" ) </s>
