From 3fd6d54f812f6ae081f89bc0d7b6f7f6b67ae341 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Fri, 10 May 2024 12:07:18 +0100 Subject: [PATCH] TEST: add bedpostx[_gpu] tests --- fsl/tests/test_wrappers/test_wrappers.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/fsl/tests/test_wrappers/test_wrappers.py b/fsl/tests/test_wrappers/test_wrappers.py index cca8c26d..f0b1af63 100755 --- a/fsl/tests/test_wrappers/test_wrappers.py +++ b/fsl/tests/test_wrappers/test_wrappers.py @@ -578,13 +578,18 @@ def test_split_parts_gpu(): assert res.stdout[0] == exp -def test_bedpostx_postproc(): - with testenv('bedpostx_postproc.sh') as bpg: - res = fw.bedpostx_postproc('data', 'mask', 'bvecs', 'bvals', - 100, 10, 'subdir', 'bindir', nf=20) - exp = f'{bpg} --data=data --mask=mask --bvecs=bvecs --bvals=bvals ' \ - '--nf=20 100 10 subdir bindir' - assert res.stdout[0] == exp +def test_bedpostx(): + with testenv('bedpostx') as bpx: + res = fw.bedpostx('data', noard=True, nf=2) + exp = f'{bpx} data --noard --nf=2' + assert res[0] == exp + + +def test_bedpostx_gpu(): + with testenv('bedpostx_gpu') as bpx: + res = fw.bedpostx_gpu('data', noard=True, nf=2) + exp = f'{bpx} data --noard --nf=2' + assert res[0] == exp def test_bedpostx_postproc_gpu(): -- GitLab