Commit 3ce307aa authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

update test_io

also, tests are no longer executable files. I guess I no longer need
that particular hack...
parent 72282bdc
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
#! /usr/bin/env python2
####################################################################### #######################################################################
# # # #
# Copyright 2015 Max Planck Institute # # Copyright 2015 Max Planck Institute #
...@@ -25,7 +24,7 @@ ...@@ -25,7 +24,7 @@
from test_base import * from base import *
class test_io(bfps.code): class test_io(bfps.code):
def __init__( def __init__(
...@@ -43,7 +42,12 @@ class test_io(bfps.code): ...@@ -43,7 +42,12 @@ class test_io(bfps.code):
return None return None
if __name__ == '__main__': if __name__ == '__main__':
opt = parser.parse_args() opt = parser.parse_args(
['-n', '32',
'--run',
'--initialize',
'--ncpu', '2'] +
sys.argv[1:])
c = test_io(work_dir = opt.work_dir + '/io') c = test_io(work_dir = opt.work_dir + '/io')
c.write_src() c.write_src()
c.write_par() c.write_par()
......
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
[tox]
envlist = py27, py34
[testenv]
deps = matplotlib
whitelist_externals =
echo
cp
passenv = LD_LIBRARY_PATH
changedir =
{envtmpdir}
commands =
cp -r {toxinidir}/tests {envtmpdir}
python tests/test_io.py -n 32 --run --initialize --ncpu 2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment