def setup_class(cls): cls.check_can_compile_modules() cls.exefile=compile_tools.build_worker(codestring, cls.get_path_to_results(), cls.get_interface_class(), write_header=False, extra_args=["-L"+get_amuse_root_dir()+"/lib/stopcond", "-l" + cls.get_libname()] )
def setUp(self): super(_AbstractTestInterface, self).setUp() print "building" self.check_can_compile_modules() self.exefile=compile_tools.build_worker(codestring, self.get_path_to_results(), self.get_interface_class(), write_header=False, extra_args=["-L"+get_amuse_root_dir()+"/lib/stopcond", "-l" + self.get_libname()] )
def setup_class(cls): print("building...") cls.check_can_compile_modules() try: cls.exefile = compile_tools.build_worker(codestring, cls.get_path_to_results(), ForTestingInterface) except Exception as ex: print(ex) raise print("done")
def setUp(self): super(TestCImplementationInterface, self).setUp() print "building...", self.check_can_compile_modules() try: self.exefile = compile_tools.build_worker(codestring, self.get_path_to_results(), ForTestingInterface) except Exception as ex: print ex raise print "done"
def setUp(self): super(TestASync, self).setUp() print("building...", end=' ') self.check_can_compile_modules() try: self.exefile = compile_tools.build_worker( codestring, self.get_path_to_results(), ForTestingInterface) except Exception as ex: print(ex) raise print("done")