aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-10-12 13:07:33 -0300
committerHisham Muhammad <hisham@gobolinux.org>2013-10-12 13:07:33 -0300
commit57bde51526bcd9c022e29802f29ae432a3a03bef (patch)
tree30fccc6c7a9ba27df46c936564d85e7477396e5b
parent5b699730c7a525c0f22bbf507aabad9fe8cfb762 (diff)
downloadluarocks-57bde51526bcd9c022e29802f29ae432a3a03bef.tar.gz
luarocks-57bde51526bcd9c022e29802f29ae432a3a03bef.tar.bz2
luarocks-57bde51526bcd9c022e29802f29ae432a3a03bef.zip
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.
-rwxr-xr-xtest/testing.sh8
1 files changed, 8 insertions, 0 deletions
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 @@
7 exit 1 7 exit 1
8} 8}
9 9
10if [ -z "$@"]
11then
12 ps aux | grep -q '[s]shd' || {
13 echo "Run sudo /bin/sshd in order to perform all tests."
14 exit 1
15 }
16fi
17
10testing_dir="$PWD" 18testing_dir="$PWD"
11 19
12testing_tree="$testing_dir/testing" 20testing_tree="$testing_dir/testing"