diff options
author | LRN <lrn1986@gmail.com> | 2013-12-04 12:37:04 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-12-04 12:37:04 +0000 |
commit | 51ecc6f201ac0377d524a8e862d6736b2a795509 (patch) | |
tree | 029e7fd307956d1d6cd5b52622eccff556ca516e /src/namestore/test_namestore_put.sh | |
parent | fa6e145f9a526315ef563833eb0b0ab8b5296179 (diff) | |
download | gnunet-51ecc6f201ac0377d524a8e862d6736b2a795509.tar.gz gnunet-51ecc6f201ac0377d524a8e862d6736b2a795509.zip |
Skip gnunet-config-dependent tests when gnunet-config is missing
Diffstat (limited to 'src/namestore/test_namestore_put.sh')
-rwxr-xr-x | src/namestore/test_namestore_put.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/namestore/test_namestore_put.sh b/src/namestore/test_namestore_put.sh index bddefac49..1a1ca3a7d 100755 --- a/src/namestore/test_namestore_put.sh +++ b/src/namestore/test_namestore_put.sh | |||
@@ -5,11 +5,16 @@ trap "gnunet-arm -e -c $CONFIGURATION" SIGINT | |||
5 | LOCATION=$(which gnunet-config) | 5 | LOCATION=$(which gnunet-config) |
6 | if [ -z $LOCATION ] | 6 | if [ -z $LOCATION ] |
7 | then | 7 | then |
8 | LOCATION="gnunet-config" | ||
9 | fi | ||
10 | $LOCATION --version | ||
11 | if test $? != 0 | ||
12 | then | ||
8 | echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" | 13 | echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" |
9 | exit 1 | 14 | exit 77 |
10 | fi | 15 | fi |
11 | 16 | ||
12 | rm -rf `gnunet-config -c $CONFIGURATION -s PATHS -o GNUNET_HOME` | 17 | rm -rf `$LOCATION -c $CONFIGURATION -s PATHS -o GNUNET_HOME` |
13 | TEST_DOMAIN_PLUS="www.gnu" | 18 | TEST_DOMAIN_PLUS="www.gnu" |
14 | TEST_DOMAIN_DNS="www3.gnu" | 19 | TEST_DOMAIN_DNS="www3.gnu" |
15 | TEST_IP_PLUS="127.0.0.1" | 20 | TEST_IP_PLUS="127.0.0.1" |