diff options
author | ng0 <ng0@n0.is> | 2019-03-09 11:59:23 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-03-09 11:59:23 +0000 |
commit | bbe61e6019a4d0a213e42a80d37638e13759bba3 (patch) | |
tree | 68e97d43e1407dd73e25551336e71bccae979895 | |
parent | f7aa05c490d2027225e99a6d5f5bf920e76bf5ed (diff) | |
download | gnunet-bbe61e6019a4d0a213e42a80d37638e13759bba3.tar.gz gnunet-bbe61e6019a4d0a213e42a80d37638e13759bba3.zip |
bashism
-rwxr-xr-x | src/gns/test_gns_gns2dns_lookup.sh | 14 | ||||
-rwxr-xr-x | src/gns/test_gns_ipv6_lookup.sh | 6 | ||||
-rwxr-xr-x | src/gns/test_gns_lookup.sh | 6 | ||||
-rwxr-xr-x | src/gns/test_gns_mx_lookup.sh | 6 | ||||
-rwxr-xr-x | src/gns/test_gns_quickupdate.sh | 6 | ||||
-rwxr-xr-x | src/gns/test_gns_rel_expiration.sh | 8 | ||||
-rwxr-xr-x | src/gns/test_gns_revocation.sh | 6 | ||||
-rwxr-xr-x | src/gns/test_gns_soa_lookup.sh | 8 | ||||
-rwxr-xr-x | src/gns/test_gns_txt_lookup.sh | 6 |
9 files changed, 33 insertions, 33 deletions
diff --git a/src/gns/test_gns_gns2dns_lookup.sh b/src/gns/test_gns_gns2dns_lookup.sh index 24fb36b9d..22caa68ff 100755 --- a/src/gns/test_gns_gns2dns_lookup.sh +++ b/src/gns/test_gns_gns2dns_lookup.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
3 | 3 | ||
4 | LOCATION=$(which gnunet-config) | 4 | LOCATION=$(which gnunet-config) |
@@ -26,7 +26,7 @@ TEST_IP_GNS2DNS="8.8.8.8" | |||
26 | # main label used during resolution | 26 | # main label used during resolution |
27 | TEST_RECORD_NAME="homepage" | 27 | TEST_RECORD_NAME="homepage" |
28 | 28 | ||
29 | if ! nslookup gnunet.org $TEST_IP_GNS2DNS &> /dev/null | 29 | if ! nslookup gnunet.org $TEST_IP_GNS2DNS > /dev/null 2>&1 |
30 | then | 30 | then |
31 | echo "Cannot reach DNS, skipping test" | 31 | echo "Cannot reach DNS, skipping test" |
32 | exit 77 | 32 | exit 77 |
@@ -44,7 +44,7 @@ TEST_DOMAIN="www.${TEST_RECORD_NAME}.$MY_EGO" | |||
44 | TEST_DOMAIN_ALT="${TEST_RECORD_NAME}.$MY_EGO" | 44 | TEST_DOMAIN_ALT="${TEST_RECORD_NAME}.$MY_EGO" |
45 | TEST_DOMAIN_ALT2="docs.${TEST_RECORD_NAME}.$MY_EGO" | 45 | TEST_DOMAIN_ALT2="docs.${TEST_RECORD_NAME}.$MY_EGO" |
46 | 46 | ||
47 | which timeout &> /dev/null && DO_TIMEOUT="timeout 15" | 47 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 15" |
48 | 48 | ||
49 | 49 | ||
50 | gnunet-arm -s -c test_gns_lookup.conf | 50 | gnunet-arm -s -c test_gns_lookup.conf |
@@ -83,7 +83,7 @@ gnunet-arm -e -c test_gns_lookup.conf | |||
83 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 83 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
84 | 84 | ||
85 | ret=0 | 85 | ret=0 |
86 | if [ "$RES_IP" == "$TEST_IP" ] | 86 | if [ "$RES_IP" = "$TEST_IP" ] |
87 | then | 87 | then |
88 | echo "PASS: Resolved $TEST_DOMAIN to $RES_IP." | 88 | echo "PASS: Resolved $TEST_DOMAIN to $RES_IP." |
89 | else | 89 | else |
@@ -91,7 +91,7 @@ else | |||
91 | ret=1 | 91 | ret=1 |
92 | fi | 92 | fi |
93 | 93 | ||
94 | if [ "$RES_IP6" == "$TEST_IP6" ] | 94 | if [ "$RES_IP6" = "$TEST_IP6" ] |
95 | then | 95 | then |
96 | echo "PASS: Resolved $TEST_DOMAIN to $RES_IP6." | 96 | echo "PASS: Resolved $TEST_DOMAIN to $RES_IP6." |
97 | else | 97 | else |
@@ -99,7 +99,7 @@ else | |||
99 | ret=1 | 99 | ret=1 |
100 | fi | 100 | fi |
101 | 101 | ||
102 | if [ "$RES_IP_ALT" == "$TEST_IP" ] | 102 | if [ "$RES_IP_ALT" = "$TEST_IP" ] |
103 | then | 103 | then |
104 | echo "PASS: Resolved $TEST_DOMAIN_ALT to $RES_IP_ALT." | 104 | echo "PASS: Resolved $TEST_DOMAIN_ALT to $RES_IP_ALT." |
105 | else | 105 | else |
@@ -107,7 +107,7 @@ else | |||
107 | ret=1 | 107 | ret=1 |
108 | fi | 108 | fi |
109 | 109 | ||
110 | if [ "$RES_IP_ALT2" == "$TEST_IP_ALT2" ] | 110 | if [ "$RES_IP_ALT2" = "$TEST_IP_ALT2" ] |
111 | then | 111 | then |
112 | echo "PASS: Resolved $TEST_DOMAIN_ALT2 to $RES_IP_ALT2." | 112 | echo "PASS: Resolved $TEST_DOMAIN_ALT2 to $RES_IP_ALT2." |
113 | else | 113 | else |
diff --git a/src/gns/test_gns_ipv6_lookup.sh b/src/gns/test_gns_ipv6_lookup.sh index 72da5ee2c..5dbb34a2c 100755 --- a/src/gns/test_gns_ipv6_lookup.sh +++ b/src/gns/test_gns_ipv6_lookup.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | # This file is in the public domain. | 2 | # This file is in the public domain. |
3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
4 | 4 | ||
@@ -16,7 +16,7 @@ fi | |||
16 | MY_EGO="myego" | 16 | MY_EGO="myego" |
17 | 17 | ||
18 | rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` | 18 | rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` |
19 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" | 19 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 30" |
20 | TEST_IP="dead::beef" | 20 | TEST_IP="dead::beef" |
21 | gnunet-arm -s -c test_gns_lookup.conf | 21 | gnunet-arm -s -c test_gns_lookup.conf |
22 | gnunet-identity -C $MY_EGO -c test_gns_lookup.conf | 22 | gnunet-identity -C $MY_EGO -c test_gns_lookup.conf |
@@ -27,7 +27,7 @@ gnunet-identity -D $MY_EGO -c test_gns_lookup.conf | |||
27 | gnunet-arm -e -c test_gns_lookup.conf | 27 | gnunet-arm -e -c test_gns_lookup.conf |
28 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 28 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
29 | 29 | ||
30 | if [ "$RES_IP" == "$TEST_IP" ] | 30 | if [ "$RES_IP" = "$TEST_IP" ] |
31 | then | 31 | then |
32 | exit 0 | 32 | exit 0 |
33 | else | 33 | else |
diff --git a/src/gns/test_gns_lookup.sh b/src/gns/test_gns_lookup.sh index 2dffa1251..4bd6ae879 100755 --- a/src/gns/test_gns_lookup.sh +++ b/src/gns/test_gns_lookup.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | # This file is in the public domain. | 2 | # This file is in the public domain. |
3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
4 | 4 | ||
@@ -15,7 +15,7 @@ then | |||
15 | fi | 15 | fi |
16 | 16 | ||
17 | rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` | 17 | rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` |
18 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" | 18 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 30" |
19 | TEST_IP="127.0.0.1" | 19 | TEST_IP="127.0.0.1" |
20 | MY_EGO="myego" | 20 | MY_EGO="myego" |
21 | LABEL="www" | 21 | LABEL="www" |
@@ -27,7 +27,7 @@ gnunet-namestore -z $MY_EGO -d -n $LABEL -t A -V $TEST_IP -e never -c test_gns_l | |||
27 | gnunet-identity -D $MY_EGO -c test_gns_lookup.conf | 27 | gnunet-identity -D $MY_EGO -c test_gns_lookup.conf |
28 | gnunet-arm -e -c test_gns_lookup.conf | 28 | gnunet-arm -e -c test_gns_lookup.conf |
29 | 29 | ||
30 | if [ "$RES_IP" == "$TEST_IP" ] | 30 | if [ "$RES_IP" = "$TEST_IP" ] |
31 | then | 31 | then |
32 | exit 0 | 32 | exit 0 |
33 | else | 33 | else |
diff --git a/src/gns/test_gns_mx_lookup.sh b/src/gns/test_gns_mx_lookup.sh index 79ac37b0a..4e9d98358 100755 --- a/src/gns/test_gns_mx_lookup.sh +++ b/src/gns/test_gns_mx_lookup.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | # This file is in the public domain. | 2 | # This file is in the public domain. |
3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
4 | 4 | ||
@@ -15,7 +15,7 @@ then | |||
15 | fi | 15 | fi |
16 | 16 | ||
17 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 17 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
18 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | 18 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 5" |
19 | 19 | ||
20 | MY_EGO="myego" | 20 | MY_EGO="myego" |
21 | TEST_MX="5,mail.+" | 21 | TEST_MX="5,mail.+" |
@@ -35,7 +35,7 @@ rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | |||
35 | RES_MX=`echo $RES_MX | tr [A-Z] [a-z]` | 35 | RES_MX=`echo $RES_MX | tr [A-Z] [a-z]` |
36 | WANT_MX=`echo $WANT_MX | tr [A-Z] [a-z]` | 36 | WANT_MX=`echo $WANT_MX | tr [A-Z] [a-z]` |
37 | 37 | ||
38 | if [ "$RES_MX" == "$WANT_MX" ] | 38 | if [ "$RES_MX" = "$WANT_MX" ] |
39 | then | 39 | then |
40 | exit 0 | 40 | exit 0 |
41 | else | 41 | else |
diff --git a/src/gns/test_gns_quickupdate.sh b/src/gns/test_gns_quickupdate.sh index d9807fe22..d2b4bf2cb 100755 --- a/src/gns/test_gns_quickupdate.sh +++ b/src/gns/test_gns_quickupdate.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | # This file is in the public domain. | 2 | # This file is in the public domain. |
3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
4 | 4 | ||
@@ -19,7 +19,7 @@ OTHER_EGO="delegatedego" | |||
19 | 19 | ||
20 | 20 | ||
21 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 21 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
22 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | 22 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 5" |
23 | TEST_IP="127.0.0.1" | 23 | TEST_IP="127.0.0.1" |
24 | gnunet-arm -s -c test_gns_lookup.conf | 24 | gnunet-arm -s -c test_gns_lookup.conf |
25 | gnunet-identity -C $MY_EGO -c test_gns_lookup.conf | 25 | gnunet-identity -C $MY_EGO -c test_gns_lookup.conf |
@@ -56,7 +56,7 @@ gnunet-identity -D $OTHER_EGO -c test_gns_lookup.conf | |||
56 | gnunet-arm -e -c test_gns_lookup.conf | 56 | gnunet-arm -e -c test_gns_lookup.conf |
57 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 57 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
58 | 58 | ||
59 | if [ "$RES_IP" == "$TEST_IP" ] | 59 | if [ "$RES_IP" = "$TEST_IP" ] |
60 | then | 60 | then |
61 | exit 0 | 61 | exit 0 |
62 | else | 62 | else |
diff --git a/src/gns/test_gns_rel_expiration.sh b/src/gns/test_gns_rel_expiration.sh index c7c66bc27..993c2131e 100755 --- a/src/gns/test_gns_rel_expiration.sh +++ b/src/gns/test_gns_rel_expiration.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | # This file is in the public domain. | 2 | # This file is in the public domain. |
3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
4 | 4 | ||
@@ -25,7 +25,7 @@ MY_EGO="myego" | |||
25 | OTHER_EGO="delegatedego" | 25 | OTHER_EGO="delegatedego" |
26 | 26 | ||
27 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 27 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
28 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | 28 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 5" |
29 | TEST_IP="127.0.0.1" | 29 | TEST_IP="127.0.0.1" |
30 | gnunet-arm -s -c test_gns_lookup.conf | 30 | gnunet-arm -s -c test_gns_lookup.conf |
31 | gnunet-identity -C $MY_EGO -c test_gns_lookup.conf | 31 | gnunet-identity -C $MY_EGO -c test_gns_lookup.conf |
@@ -48,13 +48,13 @@ gnunet-identity -D $OTHER_EGO -c test_gns_lookup.conf | |||
48 | gnunet-arm -e -c test_gns_lookup.conf | 48 | gnunet-arm -e -c test_gns_lookup.conf |
49 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 49 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
50 | 50 | ||
51 | if [ "$RES_IP_EXP" == "$TEST_IP" ] | 51 | if [ "$RES_IP_EXP" = "$TEST_IP" ] |
52 | then | 52 | then |
53 | echo "Failed to properly expire IP, got $RES_IP_EXP." | 53 | echo "Failed to properly expire IP, got $RES_IP_EXP." |
54 | exit 1 | 54 | exit 1 |
55 | fi | 55 | fi |
56 | 56 | ||
57 | if [ "$RES_IP" == "$TEST_IP" ] | 57 | if [ "$RES_IP" = "$TEST_IP" ] |
58 | then | 58 | then |
59 | exit 0 | 59 | exit 0 |
60 | else | 60 | else |
diff --git a/src/gns/test_gns_revocation.sh b/src/gns/test_gns_revocation.sh index 08a0f8ac1..3c0cf02fb 100755 --- a/src/gns/test_gns_revocation.sh +++ b/src/gns/test_gns_revocation.sh | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | # This file is in the public domain. | 2 | # This file is in the public domain. |
3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
4 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | 4 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 5" |
5 | 5 | ||
6 | LOCATION=$(which gnunet-config) | 6 | LOCATION=$(which gnunet-config) |
7 | if [ -z $LOCATION ] | 7 | if [ -z $LOCATION ] |
@@ -40,7 +40,7 @@ then | |||
40 | exit 1 | 40 | exit 1 |
41 | fi | 41 | fi |
42 | 42 | ||
43 | if [ "x$RES_IP_REV" == "x" ] | 43 | if [ "x$RES_IP_REV" = "x" ] |
44 | then | 44 | then |
45 | exit 0 | 45 | exit 0 |
46 | else | 46 | else |
diff --git a/src/gns/test_gns_soa_lookup.sh b/src/gns/test_gns_soa_lookup.sh index 6a09ac8c7..c5b049b72 100755 --- a/src/gns/test_gns_soa_lookup.sh +++ b/src/gns/test_gns_soa_lookup.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | # This file is in the public domain. | 2 | # This file is in the public domain. |
3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
4 | 4 | ||
@@ -14,7 +14,7 @@ then | |||
14 | exit 77 | 14 | exit 77 |
15 | fi | 15 | fi |
16 | 16 | ||
17 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | 17 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 5" |
18 | 18 | ||
19 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 19 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
20 | MY_EGO="myego" | 20 | MY_EGO="myego" |
@@ -24,7 +24,7 @@ TEST_IP_GNS2DNS="184.172.157.218" | |||
24 | TEST_RECORD_NAME="homepage" | 24 | TEST_RECORD_NAME="homepage" |
25 | TEST_RECORD_GNS2DNS="gnunet.org" | 25 | TEST_RECORD_GNS2DNS="gnunet.org" |
26 | 26 | ||
27 | if ! nslookup $TEST_RECORD_GNS2DNS $TEST_IP_GNS2DNS &> /dev/null | 27 | if ! nslookup $TEST_RECORD_GNS2DNS $TEST_IP_GNS2DNS > /dev/null 2>&1 |
28 | then | 28 | then |
29 | echo "Cannot reach DNS, skipping test" | 29 | echo "Cannot reach DNS, skipping test" |
30 | exit 77 | 30 | exit 77 |
@@ -34,7 +34,7 @@ gnunet-arm -s -c test_gns_lookup.conf | |||
34 | gnunet-identity -C $MY_EGO -c test_gns_lookup.conf | 34 | gnunet-identity -C $MY_EGO -c test_gns_lookup.conf |
35 | gnunet-namestore -p -z $MY_EGO -a -n $TEST_RECORD_NAME -t GNS2DNS -V ${TEST_RECORD_GNS2DNS}@${TEST_IP_GNS2DNS} -e never -c test_gns_lookup.conf | 35 | gnunet-namestore -p -z $MY_EGO -a -n $TEST_RECORD_NAME -t GNS2DNS -V ${TEST_RECORD_GNS2DNS}@${TEST_IP_GNS2DNS} -e never -c test_gns_lookup.conf |
36 | RES_SOA=`$DO_TIMEOUT gnunet-gns --raw -u $TEST_DOMAIN -t SOA -c test_gns_lookup.conf` | 36 | RES_SOA=`$DO_TIMEOUT gnunet-gns --raw -u $TEST_DOMAIN -t SOA -c test_gns_lookup.conf` |
37 | gnunet-namestore -z $MY_EGO -d -n $TEST_RECORD_NAME -t GNS2DNS -V ${TEST_RECORD_GNS2DNS}@${TEST_IP_GNS2DNS} -e never -c test_gns_lookup.conf &> /dev/null | 37 | gnunet-namestore -z $MY_EGO -d -n $TEST_RECORD_NAME -t GNS2DNS -V ${TEST_RECORD_GNS2DNS}@${TEST_IP_GNS2DNS} -e never -c test_gns_lookup.conf > /dev/null 2>&1 |
38 | gnunet-identity -D $MY_EGO -c test_gns_lookup.conf | 38 | gnunet-identity -D $MY_EGO -c test_gns_lookup.conf |
39 | gnunet-arm -e -c test_gns_lookup.conf | 39 | gnunet-arm -e -c test_gns_lookup.conf |
40 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 40 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
diff --git a/src/gns/test_gns_txt_lookup.sh b/src/gns/test_gns_txt_lookup.sh index 6c6b4b3f6..b0c9144c2 100755 --- a/src/gns/test_gns_txt_lookup.sh +++ b/src/gns/test_gns_txt_lookup.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | # This file is in the public domain. | 2 | # This file is in the public domain. |
3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
4 | 4 | ||
@@ -15,7 +15,7 @@ then | |||
15 | fi | 15 | fi |
16 | 16 | ||
17 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 17 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
18 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" | 18 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 30" |
19 | TEST_TXT="GNS powered txt record data" | 19 | TEST_TXT="GNS powered txt record data" |
20 | MY_EGO="myego" | 20 | MY_EGO="myego" |
21 | LABEL="testtxt" | 21 | LABEL="testtxt" |
@@ -28,7 +28,7 @@ gnunet-identity -D $MY_EGO -c test_gns_lookup.conf | |||
28 | gnunet-arm -e -c test_gns_lookup.conf | 28 | gnunet-arm -e -c test_gns_lookup.conf |
29 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 29 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
30 | 30 | ||
31 | if [ "$RES_TXT" == "$TEST_TXT" ] | 31 | if [ "$RES_TXT" = "$TEST_TXT" ] |
32 | then | 32 | then |
33 | exit 0 | 33 | exit 0 |
34 | else | 34 | else |