Skip to content

Commit

Permalink
nf: add compare_annot function for test framework
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoopes committed Dec 20, 2020
1 parent aef70d2 commit 63db38b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:
#
Expand Down Expand Up @@ -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 $@
}

0 comments on commit 63db38b

Please sign in to comment.