@@ -157,10 +157,6 @@ def main(**kwargs):
157
157
158
158
# Build working directory and copy librebound.so into working directory
159
159
os .makedirs (artemis .get_outputs_dir (), exist_ok = True )
160
- reb_path = os .path .join (artemis .get_exe_dir (), "librebound.so" )
161
- if not os .path .exists (reb_path ):
162
- raise TestError (f'librebound.so not found at "{ reb_path } "!' )
163
- shutil .copy (reb_path , artemis .get_outputs_dir ())
164
160
165
161
# Run each test
166
162
for name in test_names :
@@ -294,17 +290,13 @@ def set_globals(args):
294
290
if exe_path is not None :
295
291
adir = os .path .join (artemis .get_artemis_dir (), "tst" )
296
292
out_dir = os .path .join (adir , "testing" ) if out_dir is None else out_dir
297
- reb_path = os .path .join (os .path .dirname (exe_path ), "librebound.so" )
298
293
299
294
if use_cwd :
300
295
raise TestError ("--cwd and --exe=PATH cannot be passed together!" )
301
296
302
297
if not (os .path .exists (exe_path ) and os .access (exe_path , os .X_OK )):
303
298
raise TestError (f'Provided exe "{ exe_path } " not found or cannot be run!' )
304
299
305
- if not os .path .exists (reb_path ):
306
- raise TestError (f'librebound.so not found at "{ reb_path } "!' )
307
-
308
300
abs_out_dir = os .path .abspath (out_dir )
309
301
abs_exe_dir = os .path .abspath (os .path .dirname (exe_path ))
310
302
artemis .set_paths (abs_exe_dir , abs_out_dir )
@@ -318,10 +310,6 @@ def set_globals(args):
318
310
if os .path .isfile (lpath_exe ) and os .access (lpath_exe , os .X_OK ):
319
311
exe_path = lpath_exe
320
312
out_dir = os .path .join (cwd , "testing" ) if out_dir is None else out_dir
321
- reb_path = os .path .join (os .path .dirname (exe_path ), "librebound.so" )
322
-
323
- if not os .path .exists (reb_path ):
324
- raise TestError (f'librebound.so not found at "{ reb_path } "!' )
325
313
326
314
abs_out_dir = os .path .abspath (out_dir )
327
315
abs_exe_dir = os .path .abspath (os .path .dirname (exe_path ))
@@ -331,14 +319,10 @@ def set_globals(args):
331
319
# Check if we are one level up from the executable
332
320
exe_path = read_cmakecache (lpath_cache )
333
321
out_dir = os .path .join (cwd , "testing" ) if out_dir is None else out_dir
334
- reb_path = os .path .join (os .path .dirname (exe_path ), "librebound.so" )
335
322
336
323
if not (os .path .exists (exe_path ) and os .access (exe_path , os .X_OK )):
337
324
raise TestError (f'No exe in "{ exe_path } " or cannot be run!' )
338
325
339
- if not os .path .exists (reb_path ):
340
- raise TestError (f'librebound.so not found at "{ reb_path } "!' )
341
-
342
326
abs_out_dir = os .path .abspath (out_dir )
343
327
abs_exe_dir = os .path .abspath (os .path .dirname (exe_path ))
344
328
artemis .set_paths (abs_exe_dir , abs_out_dir )
0 commit comments