add checks to make sure that the test suite will be able to run.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 30 Oct 2008 16:10:27 +0000 (12:10 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 30 Oct 2008 16:10:27 +0000 (12:10 -0400)
tests/basic

index d7355786457af1e996010733699e28a59e98bcaa..8e7f88a2daf83d52aa57dcb57843d752e9660911 100755 (executable)
 # all subcommands in this script should complete without failure:
 set -e
 
+## make sure that the right tools are installed to run the test.  the
+## test has *more* requirements than plain ol' monkeysphere:
+
+[ -x $(which socat) ] || { echo "You must have socat installed to run this test." && exit 1 }
+
+## FIXME: other checks?
+
 # gpg command for test admin user
 gpgadmin() {
     GNUPGHOME="$TEMPDIR"/admin/.gnupg gpg "$@"