From 2ae935a6dbd973730cd6e6aeb5cc5bbfc54949b5 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Thu, 30 Oct 2008 12:10:27 -0400 Subject: add checks to make sure that the test suite will be able to run. --- tests/basic | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/basic') 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 "$@" -- cgit v1.2.3