[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29579 - gnunet/src/gns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29579 - gnunet/src/gns |
Date: |
Thu, 26 Sep 2013 10:52:43 +0200 |
Author: grothoff
Date: 2013-09-26 10:52:43 +0200 (Thu, 26 Sep 2013)
New Revision: 29579
Modified:
gnunet/src/gns/test_gns_cname_lookup.sh
gnunet/src/gns/test_gns_delegated_lookup.sh
gnunet/src/gns/test_gns_lookup.sh
gnunet/src/gns/test_gns_mx_lookup.sh
Log:
-check if timeout command exists before using it
Modified: gnunet/src/gns/test_gns_cname_lookup.sh
===================================================================
--- gnunet/src/gns/test_gns_cname_lookup.sh 2013-09-26 08:50:02 UTC (rev
29578)
+++ gnunet/src/gns/test_gns_cname_lookup.sh 2013-09-26 08:52:43 UTC (rev
29579)
@@ -11,14 +11,15 @@
TEST_RECORD_NAME_SERVER="server"
TEST_RECORD_NAME_PLUS="www"
TEST_RECORD_NAME_DNS="www3"
+which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
gnunet-arm -s -c test_gns_lookup.conf
gnunet-identity -C testego -c test_gns_lookup.conf
gnunet-namestore -p -z testego -a -n $TEST_RECORD_NAME_DNS -t CNAME -V
$TEST_RECORD_CNAME_DNS -e never -c test_gns_lookup.conf
gnunet-namestore -p -z testego -a -n $TEST_RECORD_NAME_PLUS -t CNAME -V
$TEST_RECORD_CNAME_PLUS -e never -c test_gns_lookup.conf
gnunet-namestore -p -z testego -a -n $TEST_RECORD_CNAME_SERVER -t A -V
$TEST_IP_PLUS -e never -c test_gns_lookup.conf
-RES_CNAME=$(timeout 5 gnunet-gns --raw -z testego -u www.gnu -t A -c
test_gns_lookup.conf)
-RES_CNAME_DNS=$(timeout 5 gnunet-gns --raw -z testego -u www3.gnu -t A -c
test_gns_lookup.conf)
+RES_CNAME=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.gnu -t A -c
test_gns_lookup.conf`
+RES_CNAME_DNS=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www3.gnu -t A -c
test_gns_lookup.conf`
gnunet-namestore -p -z testego -d -n $TEST_RECORD_NAME_DNS -t CNAME -V
$TEST_RECORD_CNAME_DNS -e never -c test_gns_lookup.conf
gnunet-namestore -p -z testego -d -n $TEST_RECORD_NAME_PLUS -t CNAME -V
$TEST_RECORD_CNAME_PLUS -e never -c test_gns_lookup.conf
gnunet-namestore -p -z testego -d -n $TEST_RECORD_CNAME_SERVER -t A -V
$TEST_IP_PLUS -e never -c test_gns_lookup.conf
Modified: gnunet/src/gns/test_gns_delegated_lookup.sh
===================================================================
--- gnunet/src/gns/test_gns_delegated_lookup.sh 2013-09-26 08:50:02 UTC (rev
29578)
+++ gnunet/src/gns/test_gns_delegated_lookup.sh 2013-09-26 08:52:43 UTC (rev
29579)
@@ -1,5 +1,6 @@
#!/bin/bash
trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
+which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
TEST_IP="127.0.0.1"
gnunet-arm -s -c test_gns_lookup.conf
@@ -8,7 +9,7 @@
gnunet-identity -C testego -c test_gns_lookup.conf
gnunet-namestore -p -z testego -a -n b -t PKEY -V $DELEGATED_PKEY -e never -c
test_gns_lookup.conf
gnunet-namestore -p -z delegatedego -a -n www -t A -V $TEST_IP -e never -c
test_gns_lookup.conf
-RES_IP=$(timeout 5 gnunet-gns --raw -z testego -u www.b.gnu -t A -c
test_gns_lookup.conf)
+RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.b.gnu -t A -c
test_gns_lookup.conf`
gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c
test_gns_lookup.conf
gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e never -c
test_gns_lookup.conf
gnunet-arm -e -c test_gns_lookup.conf
Modified: gnunet/src/gns/test_gns_lookup.sh
===================================================================
--- gnunet/src/gns/test_gns_lookup.sh 2013-09-26 08:50:02 UTC (rev 29578)
+++ gnunet/src/gns/test_gns_lookup.sh 2013-09-26 08:52:43 UTC (rev 29579)
@@ -1,11 +1,12 @@
#!/bin/bash
trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o SERVICEHOME`
+which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
TEST_IP="127.0.0.1"
gnunet-arm -s -c test_gns_lookup.conf
gnunet-identity -C testego -c test_gns_lookup.conf
gnunet-namestore -p -z testego -a -n www -t A -V $TEST_IP -e never -c
test_gns_lookup.conf
-RES_IP=$(timeout 5 gnunet-gns --raw -z testego -u www.gnu -t A -c
test_gns_lookup.conf)
+RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.gnu -t A -c
test_gns_lookup.conf`
gnunet-namestore -z testego -d -n www -t A -V $TEST_IP -e never -c
test_gns_lookup.conf
gnunet-identity -D testego -c test_gns_lookup.conf
gnunet-arm -e -c test_gns_lookup.conf
Modified: gnunet/src/gns/test_gns_mx_lookup.sh
===================================================================
--- gnunet/src/gns/test_gns_mx_lookup.sh 2013-09-26 08:50:02 UTC (rev
29578)
+++ gnunet/src/gns/test_gns_mx_lookup.sh 2013-09-26 08:52:43 UTC (rev
29579)
@@ -1,13 +1,14 @@
#!/bin/bash
trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
rm -fr `gnunet-config -c test_gns_lookup.conf -s PATHS -o SERVICEHOME`
+which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
TEST_MX="5,mail.gnu"
gnunet-arm -s -c test_gns_lookup.conf
gnunet-identity -C testego -c test_gns_lookup.conf
gnunet-namestore -p -z testego -a -n www -t MX -V "$TEST_MX" -e never -c
test_gns_lookup.conf
-RES_MX=$(timeout 5 gnunet-gns --raw -z testego -u www.gnu -t MX -c
test_gns_lookup.conf)
+RES_MX=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.gnu -t MX -c
test_gns_lookup.conf`
gnunet-namestore -z testego -d -n www -t MX -V "$TEST_MX" -e never -c
test_gns_lookup.conf
gnunet-identity -D testego -c test_gns_lookup.conf
gnunet-arm -e -c test_gns_lookup.conf
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29579 - gnunet/src/gns,
gnunet <=