#NEWLINE# def test_read_profiles( build_worktree ) : #NEWLINE# #INDENT# build_worktree . configure_build_profile ( 'foo' , [ ( 'WITH_FOO' , 'ON' ) ] ) #NEWLINE# qibuild . config . add_build_config ( 'foo' , profiles = [ 'foo' ] ) #NEWLINE# build_config = qibuild . build_config . CMakeBuildConfig ( build_worktree ) #NEWLINE# build_config . set_active_config ( 'foo' ) #NEWLINE# cmake_args = build_config . cmake_args #NEWLINE# cmake_args = [ build_config for x in cmake_args if ( 'WITH' in x ) ] #NEWLINE# assert ( cmake_args == [ '-DWITH_FOO=ON' ] )