From 1214e9c71af840641c96c851ae3baae68c951e71 Mon Sep 17 00:00:00 2001 From: Matthew Webster <mwebster@jalapeno.cluster.fmrib.ox.ac.uk> Date: Wed, 26 May 2021 12:13:18 +0100 Subject: [PATCH] ENH: Basic test for randomise_parallel --- unit_tests/randomise_parallel/feedsInputs | 1 + unit_tests/randomise_parallel/feedsRun | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 unit_tests/randomise_parallel/feedsInputs create mode 100755 unit_tests/randomise_parallel/feedsRun diff --git a/unit_tests/randomise_parallel/feedsInputs b/unit_tests/randomise_parallel/feedsInputs new file mode 100644 index 0000000..809af07 --- /dev/null +++ b/unit_tests/randomise_parallel/feedsInputs @@ -0,0 +1 @@ +fsl_course_data/seg_struc/vbm/stats diff --git a/unit_tests/randomise_parallel/feedsRun b/unit_tests/randomise_parallel/feedsRun new file mode 100755 index 0000000..492099f --- /dev/null +++ b/unit_tests/randomise_parallel/feedsRun @@ -0,0 +1,14 @@ +#!/bin/bash -e + +outdir=$1 +datadir=$2 +subdatadir=$datadir/fsl_course_data/seg_struc/vbm/stats + +randomise_parallel -i $subdatadir/GM_mod_merg_s3 -o $outdir/output -m $subdatadir/GM_mask -d $subdatadir/design.mat -t $subdatadir/design.con -n 900 -x + +fslpython -c "exit(0 if $(fslstats $outdir/output_tstat1 -M) == 0.613910 else 1)" +fslpython -c "exit(0 if $(fslstats $outdir/output_vox_corrp_tstat1 -M) == 0.084046 else 1)" + +rm -rf "$outdir/output"* + +exit 0 -- GitLab