Skip to content
Snippets Groups Projects
Commit 6e461039 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

move/update test file

parent 429e200b
No related branches found
No related tags found
2 merge requests!21Bugfix/nansampling,!18Feature/extend ci
Pipeline #
#! /usr/bin/env python
import os
import numpy as np
import h5py
......@@ -15,8 +17,8 @@ def main():
c.launch(
['NSVEparticles',
'-n', '32',
'--src-simname', 'test',
'--src-wd', bfps.lib_dir + '/test_data',
'--src-simname', 'B32p1e4',
'--src-wd', bfps.lib_dir + '/test',
'--src-iteration', '0',
'--simname', 'dns_nsveparticles',
'--np', '4',
......@@ -32,8 +34,8 @@ def main():
sys.argv[1:])
f0 = h5py.File(
os.path.join(
os.path.join(bfps.lib_dir, 'test_data'),
'test_checkpoint_0.h5'),
os.path.join(bfps.lib_dir, 'test'),
'B32p1e4_checkpoint_0.h5'),
'r')
f1 = h5py.File(c.get_checkpoint_0_fname(), 'r')
for iteration in [0, 32, 64]:
......
......@@ -255,12 +255,13 @@ setup(
package_data = {'bfps': header_list +
['libbfps.a',
'install_info.pickle'] +
['test_data/test_checkpoint_0.h5']},
['test/B32p1e4_checkpoint_0.h5']},
entry_points = {
'console_scripts': [
'bfps = bfps.__main__:main',
'bfps1 = bfps.__main__:main'],
},
scripts = ['bfps/test/test_NSVEparticles.py'],
version = VERSION,
########################################################################
# useless stuff folows
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment