#NEWLINE# def test_meta_builder( qipkg_action ) : #NEWLINE# #INDENT# qipkg_action . add_test_project ( 'a_cpp' ) #NEWLINE# qipkg_action . add_test_project ( 'd_pkg' ) #NEWLINE# meta_pkg_proj = qipkg_action . add_test_project ( 'meta_pkg' ) #NEWLINE# meta_pml = os . path . join ( meta_pkg_proj . path , 'meta_pkg.mpml' ) #NEWLINE# worktree = qipkg_action . worktree #NEWLINE# meta_pml_builder = qipkg . metabuilder . MetaPMLBuilder ( meta_pml , worktree = worktree ) #NEWLINE# meta_pml_builder . configure ( ) #NEWLINE# meta_pml_builder . build ( ) #NEWLINE# dump_syms = qisys . command . find_program ( 'dump_syms' ) #NEWLINE# if dump_syms : #NEWLINE# #INDENT# with_breakpad = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# with_breakpad = False #NEWLINE# #UNINDENT# packages = meta_pml_builder . package ( with_breakpad = with_breakpad ) #NEWLINE# contents = [ os . path . basename ( x ) for x in packages ] #NEWLINE# if with_breakpad : #NEWLINE# #INDENT# assert ( contents == [ 'a-0.1.pkg' , 'a-0.1-symbols.zip' , 'd-0.1.pkg' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert ( contents == [ 'a-0.1.pkg' , 'd-0.1.pkg' ] )