コード例 #1
0
 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()]
         )
コード例 #2
0
 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()]
         )
コード例 #3
0
 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()]
         )
コード例 #4
0
 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")
コード例 #5
0
 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"
コード例 #6
0
 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")