Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Oct 31, 2023
1 parent 3dc6864 commit cf6f346
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion microminc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ for prog in "${perl_scripts[@]}"; do
fi
dst="$output_dir/bin/$(basename $prog)"
cp -vu "$(which $prog)" "$dst"
bin_progs+=( $(called_bins_of "$prog" "$perl_cmd_func") )

if [ -n "$perl_cmd_func" ]; then
bin_progs+=( $(called_bins_of "$prog" "$perl_cmd_func") )
fi
done

for prog in "${bin_progs[@]}"; do
Expand Down
3 changes: 1 addition & 2 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ test -f /tmp/o1/lib/libminc2.so.*
test -f /tmp/o1/lib/libvolume_io2.so.*
! test -e /tmp/o2/perl

microminc.sh -p '&do_cmd' vertstats_math bestsurfreg.pl gyrification_index /tmp/o2
microminc.sh -p '&do_cmd' vertstats_math bestsurfreg.pl /tmp/o2
test -x /tmp/o2/bin/vertstats_math
test -x /tmp/o2/bin/bestsurfreg.pl
test -x /tmp/o2/bin/create_tetra
test -x /tmp/o2/bin/depth_potential
test -f /tmp/o2/lib/libbicpl.so.*
test -f /tmp/o2/perl/MNI/FileUtilities.pm
test -f /tmp/o2/bin/gyrification_index

rm -rf /tmp/o1 /tmp/o2

0 comments on commit cf6f346

Please sign in to comment.