Data for non-regression testing of SnPM
-
Clone SnPM test data from https://github.com/SnPM-toolbox/SnPM_test_data. Corresponding folder is denoted by
<SNPM_TEST_DATA_PATH>
in the following. -
Clone SnPM from https://github.com/nicholst/SnPM-devel. Corresponding folder is denoted by
<SNPM_PATH>
in the following. -
Checkout SnPM8
$ cd <SNPM_PATH> $ git checkout SnPM8
-
In MATLAB, add the path to SPM and SnPM (not done automatically for SnPM8)
>> addpath('<SPM_PATH>') >> addpath('<SNPM_PATH>') >> addpath('<SNPM_PATH>/test/')
-
In
snpm_test_config.m
set thetestDataDir
variable to the path to your SnPM test data foldertestDataDir = '<SNPM_TEST_DATA_PATH>'; % Specify directory containing test data
-
In MATLAB, run
snpm_test_ground_truth
-
A window "check SnPM version" opens and says "Current version of SnPM: SnPM8. Is that okay?", answer "yes".
-
Follow instructions in the MATLAB prompt to create the ground truth data, click "continue" and "done" when prompted.
-
Once tests have finished, make a copy of the
onesample_1
folder and rename itonesample_no_ext_in_results
and submit all test-generated results folders and files to GitHub.