From 63db38bf0fd1f34fa294f2c3d36007f0d8cde5e7 Mon Sep 17 00:00:00 2001 From: Andrew Hoopes Date: Sun, 20 Dec 2020 14:04:09 -0500 Subject: [PATCH] nf: add compare_annot function for test framework --- test.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/test.sh b/test.sh index c017b7bfe5b..bf370059cd9 100644 --- a/test.sh +++ b/test.sh @@ -23,10 +23,11 @@ # # Test output can be compared against reference data with the following functions: # -# compare_file - wraps the standard unix diff command -# compare_vol - wraps mri_diff -# compare_surf - wraps mris_diff -# compare_lta - wraps lta_diff +# compare_file - wraps the standard unix diff command +# compare_vol - wraps mri_diff +# compare_surf - wraps mris_diff +# compare_lta - wraps lta_diff +# compare_annot - wraps mris_annot_diff # # It is important that the argument order for all of these commands is as follows: # @@ -233,3 +234,9 @@ function compare_lta { diffcmd=$(find_path $FSTEST_CWD mri_robust_register/lta_diff) run_comparison $diffcmd $@ } + +# runs mris_annot_diff on an output and reference annotation - all extra opts are passed to mris_annot_diff +function compare_annot { + diffcmd=$(find_path $FSTEST_CWD mris_annot_diff/mris_annot_diff) + run_comparison $diffcmd $@ +}