Try a function to reduce duplication.
re-org and document testutils.sh
Fix bugs in re-orged testutils
move convenience function to testutils
Display a success message in analyze, if possible.
Portability issue with basename resolved?