def setUp(self): """setup method. """ self.command = 'build' self.targets = ['test_lex_yacc/...'] self.target_path = 'test_lex_yacc' self.cur_dir = os.getcwd() os.chdir('./testdata') self.blade_path = '../../blade' self.working_dir = '.' self.current_building_path = 'build64_release' self.current_source_dir = '.' self.options = Namespace({ 'm': '64', 'profile': 'release', 'generate_dynamic': True, 'verbose': True }) self.direct_targets = [] self.all_command_targets = [] self.related_targets = {} # Init global configuration manager blade.configparse.blade_config = BladeConfig(self.current_source_dir) blade.configparse.blade_config.parse() blade.blade.blade = Blade(self.targets, self.blade_path, self.working_dir, self.current_building_path, self.current_source_dir, self.options, blade_command=self.command) self.blade = blade.blade.blade (self.direct_targets, self.all_command_targets) = self.blade.load_targets()
def setUp(self): """setup method. """ self.command = 'build' self.targets = ['test_prebuild_cc_library/...'] self.target_path = 'test_prebuild_cc_library' self.cur_dir = os.getcwd() os.chdir('./testdata') self.blade_path = '../../blade' self.working_dir = '.' self.current_building_path = 'build64_release' self.current_source_dir = '.' self.options = Namespace({ 'm': '64', 'profile': 'release', 'generate_dynamic': True }) self.direct_targets = [] self.all_command_targets = [] self.related_targets = {} blade.blade.blade = Blade(self.targets, self.blade_path, self.working_dir, self.current_building_path, self.current_source_dir, self.options, blade_command=self.command) self.blade = blade.blade.blade (self.direct_targets, self.all_command_targets) = self.blade.load_targets()
def setUp(self): """setup method. """ self.command = 'build' self.targets = ['test_test_runner:string_test_main'] self.target_path = 'test_test_runner' self.cur_dir = os.getcwd() os.chdir('./testdata') self.blade_path = '../../blade' self.working_dir = '.' self.current_building_path = 'build64_release' self.current_source_dir = '.' self.options = Namespace({'m' : '64', 'profile' : 'release', 'generate_dynamic' : True, 'args' : '', 'test_jobs' : 1, 'show_details' : True, 'fulltest' : False }) self.direct_targets = [] self.all_command_targets = [] self.related_targets = {} # Init global configuration manager blade.configparse.blade_config = BladeConfig(self.current_source_dir) blade.configparse.blade_config.parse() blade.blade.blade = Blade(self.targets, self.blade_path, self.working_dir, self.current_building_path, self.current_source_dir, self.options, blade_command=self.command) self.blade = blade.blade.blade (self.direct_targets, self.all_command_targets) = self.blade.load_targets() self.blade.analyze_targets() self.all_targets = self.blade.get_all_targets_expanded()