From: Daniel Kahn Gillmor Date: Thu, 30 Oct 2008 16:10:27 +0000 (-0400) Subject: add checks to make sure that the test suite will be able to run. X-Git-Tag: monkeysphere_0.20-1~23 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=2ae935a6dbd973730cd6e6aeb5cc5bbfc54949b5;hp=e9a874c9ee4c634d574ada757ad1e8c721b890f8;p=monkeysphere.git add checks to make sure that the test suite will be able to run. --- diff --git a/tests/basic b/tests/basic index d735578..8e7f88a 100755 --- a/tests/basic +++ b/tests/basic @@ -14,6 +14,13 @@ # 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 "$@"