<s> """<STR_LIT>""" <EOL> import blade_test <EOL> class TestSwigLibrary ( blade_test . TargetTest ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> """<STR_LIT>""" <EOL> self . doSetUp ( '<STR_LIT>' , generate_php = False ) <EOL> def testGenerateRules ( self ) : <EOL> """<STR_LIT>""" <EOL> self . all_targets = self . blade . analyze_targets ( ) <EOL> self . rules_buf = self . blade . generate_build_rules ( ) <EOL> cc_library_lower = ( self . target_path , '<STR_LIT>' ) <EOL> poppy_client = ( self . target_path , '<STR_LIT>' ) <EOL> self . command_file = '<STR_LIT>' <EOL> self . assertTrue ( cc_library_lower in self . all_targets . keys ( ) ) <EOL> self . assertTrue ( poppy_client in self . all_targets . keys ( ) ) <EOL> self . assertTrue ( self . dryRun ( ) ) <EOL> com_lower_line = '<STR_LIT>' <EOL> com_swig_python = '<STR_LIT>' <EOL> com_swig_java = '<STR_LIT>' <EOL> com_swig_python_cxx = '<STR_LIT>' <EOL> com_swig_java_cxx = '<STR_LIT>' <EOL> swig_python_so = '<STR_LIT>' <EOL> swig_java_so = '<STR_LIT>' <EOL> for line in self . scons_output : <EOL> if '<STR_LIT>' in line : <EOL> com_lower_line = line <EOL> if '<STR_LIT>' in line : <EOL> com_swig_python = line <EOL> if '<STR_LIT>' in line : <EOL> com_swig_java = line <EOL> if '<STR_LIT>' in line : <EOL> com_swig_python_cxx = line <EOL> if '<STR_LIT>' in line : <EOL> com_swig_java_cxx = line <EOL> if '<STR_LIT>' in line : <EOL> swig_python_so = line <EOL> if '<STR_LIT>' in line : <EOL> swig_java_so = line <EOL> self . assertCxxFlags ( com_lower_line ) <EOL> self . assertTrue ( '<STR_LIT>' in com_swig_python ) <EOL> self . assertTrue ( '<STR_LIT>' in com_swig_java ) <EOL> self . assertCxxFlags ( com_swig_python_cxx ) <EOL> self . assertCxxFlags ( com_swig_java_cxx ) <EOL> self . assertDynamicLinkFlags ( swig_python_so ) <EOL> self . assertDynamicLinkFlags ( swig_java_so ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> blade_test . run ( TestSwigLibrary ) </s>
