#NEWLINE# def test_complex_dep_solving1( build_worktree , toolchains ) : #NEWLINE# #INDENT# toolchains . create ( 'foo' ) #NEWLINE# qibuild . config . add_build_config ( 'foo' , toolchain = 'foo' ) #NEWLINE# libqi_package = toolchains . add_package ( 'foo' , 'libqi' ) #NEWLINE# hal_package = toolchains . add_package ( 'foo' , 'hal' , run_depends = [ 'libqi' ] ) #NEWLINE# naoqi_package = toolchains . add_package ( 'foo' , 'naoqi' , run_depends = [ 'hal' ] ) #NEWLINE# build_worktree . create_project ( 'libqi' ) #NEWLINE# naoqi_proj = build_worktree . create_project ( 'naoqi' , run_depends = [ 'hal' ] ) #NEWLINE# deps_solver = DepsSolver ( build_worktree ) #NEWLINE# build_worktree . set_active_config ( 'foo' ) #NEWLINE# assert ( deps_solver . get_dep_packages ( [ naoqi_package ] , [ 'runtime' ] ) == [ hal_package ] )