]> git.notmuchmail.org Git - notmuch/commit
test: Use associative arrays to track external prereqs
authorAustin Clements <amdragon@MIT.EDU>
Wed, 28 Nov 2012 04:54:01 +0000 (23:54 -0500)
committerDavid Bremner <bremner@debian.org>
Thu, 29 Nov 2012 13:24:12 +0000 (09:24 -0400)
commit7a0813b72a04339581dfbe06fb9a6de9bc161025
tree7bc8098f648bbe71849b3753dad478a9321f5dd6
parentec59896de06cf76d6d7ee6ff7bc46df522c7afe3
test: Use associative arrays to track external prereqs

Previously, the test framework generated a variable name for each
external prereq as a poor man's associative array.  Unfortunately,
prereqs names may not be legal variable names, leading to
unintelligible bash errors like
  test_missing_external_prereq_emacsclient.emacs24_=t: command not found

Using proper associative arrays to track prereqs, in addition to being
much cleaner than generating variable names and using grep to
carefully construct unique string lists, removes restrictions on
prereq names.
test/test-lib.sh