From 57bde51526bcd9c022e29802f29ae432a3a03bef Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sat, 12 Oct 2013 13:07:33 -0300 Subject: Some tests require a local sshd server. Add a small check and message to myself, to avoid running the whole thing only to have it fail at the very end. --- test/testing.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/testing.sh b/test/testing.sh index 207bdfbc..5b3de201 100755 --- a/test/testing.sh +++ b/test/testing.sh @@ -7,6 +7,14 @@ exit 1 } +if [ -z "$@"] +then + ps aux | grep -q '[s]shd' || { + echo "Run sudo /bin/sshd in order to perform all tests." + exit 1 + } +fi + testing_dir="$PWD" testing_tree="$testing_dir/testing" -- cgit v1.2.3-55-g6feb