aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-12-28 23:47:01 +0100
committerChristian Grothoff <christian@grothoff.org>2020-12-28 23:47:01 +0100
commit38b2445cbe48df349438c50670cf194544897de6 (patch)
treea54fcfe21efecb31a5f6cb2ddfea8a217b594c70 /src
parente30fd985fd765ad25505c3d73d35e8535512ed2e (diff)
downloadgnunet-38b2445cbe48df349438c50670cf194544897de6.tar.gz
gnunet-38b2445cbe48df349438c50670cf194544897de6.zip
fix some linting issues
Diffstat (limited to 'src')
-rwxr-xr-xsrc/gns/test_gnunet_gns.sh.in2
-rwxr-xr-xsrc/gns/test_proxy.sh8
-rwxr-xr-xsrc/reclaim/test_reclaim_consume.sh6
-rwxr-xr-xsrc/reclaim/test_reclaim_issue.sh2
-rwxr-xr-xsrc/reclaim/test_reclaim_revoke.sh10
-rwxr-xr-xsrc/scalarproduct/test_scalarproduct.sh4
-rwxr-xr-xsrc/scalarproduct/test_scalarproduct_negative.sh4
-rwxr-xr-xsrc/scalarproduct/test_scalarproduct_negativezero.sh4
8 files changed, 20 insertions, 20 deletions
diff --git a/src/gns/test_gnunet_gns.sh.in b/src/gns/test_gnunet_gns.sh.in
index 8cdd062c7..8a96ff034 100755
--- a/src/gns/test_gnunet_gns.sh.in
+++ b/src/gns/test_gnunet_gns.sh.in
@@ -1,4 +1,4 @@
1#!/bin/sh 1#!/bin/bash
2# This file is in the public domain. 2# This file is in the public domain.
3# test -z being correct was a false assumption here. 3# test -z being correct was a false assumption here.
4# I have no executable 'fooble', but this will 4# I have no executable 'fooble', but this will
diff --git a/src/gns/test_proxy.sh b/src/gns/test_proxy.sh
index 7c17cd4c5..ee288413f 100755
--- a/src/gns/test_proxy.sh
+++ b/src/gns/test_proxy.sh
@@ -31,10 +31,10 @@ cat local.crt > /tmp/server_cacert.pem
31cat local.key >> /tmp/server_cacert.pem 31cat local.key >> /tmp/server_cacert.pem
32 32
33gnunet-identity -C test -c test_gns_proxy.conf 33gnunet-identity -C test -c test_gns_proxy.conf
34gnunet-namestore -p -z test -a -n www -t A -V 127.0.0.1 -e never -c test_gns_proxy.conf 34gnunet-namestore -p -z "test" -a -n www -t A -V 127.0.0.1 -e never -c test_gns_proxy.conf
35gnunet-namestore -p -z test -a -n www -t LEHO -V "test.local" -e never -c test_gns_proxy.conf 35gnunet-namestore -p -z "test" -a -n www -t LEHO -V "test.local" -e never -c test_gns_proxy.conf
36gnunet-namestore -p -z test -a -n www -t BOX -V "$OLDBOXVALUE" -e never -c test_gns_proxy.conf 36gnunet-namestore -p -z "test" -a -n www -t BOX -V "$OLDBOXVALUE" -e never -c test_gns_proxy.conf
37gnunet-namestore -p -z test -a -n www -t BOX -V "$BOXVALUE" -e never -c test_gns_proxy.conf 37gnunet-namestore -p -z "test" -a -n www -t BOX -V "$BOXVALUE" -e never -c test_gns_proxy.conf
38 38
39gnunet-arm -i gns-proxy -c test_gns_proxy.conf 39gnunet-arm -i gns-proxy -c test_gns_proxy.conf
40 40
diff --git a/src/reclaim/test_reclaim_consume.sh b/src/reclaim/test_reclaim_consume.sh
index 55f6ff22c..9186d3cb1 100755
--- a/src/reclaim/test_reclaim_consume.sh
+++ b/src/reclaim/test_reclaim_consume.sh
@@ -6,7 +6,7 @@ if [ -z $LOCATION ]
6then 6then
7 LOCATION="gnunet-config" 7 LOCATION="gnunet-config"
8fi 8fi
9$LOCATION --version 1> /dev/null 9$LOCATION --version 1>/dev/null
10if test $? != 0 10if test $? != 0
11then 11then
12 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" 12 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
@@ -20,7 +20,7 @@ rm -rf `gnunet-config -c test_reclaim.conf -s PATHS -o GNUNET_HOME -f`
20# (3) PKEY3.user -> PKEY4 20# (3) PKEY3.user -> PKEY4
21 21
22 22
23which timeout &> /dev/null && DO_TIMEOUT="timeout 30" 23which timeout >/dev/null 2>&1 && DO_TIMEOUT="timeout 30"
24 24
25TEST_ATTR="test" 25TEST_ATTR="test"
26gnunet-arm -s -c test_reclaim.conf 26gnunet-arm -s -c test_reclaim.conf
@@ -32,7 +32,7 @@ TEST_KEY=$(gnunet-identity -d -e testego -q -c test_reclaim.conf)
32gnunet-reclaim -e testego -a email -V john@doe.gnu -c test_reclaim.conf 32gnunet-reclaim -e testego -a email -V john@doe.gnu -c test_reclaim.conf
33gnunet-reclaim -e testego -a name -V John -c test_reclaim.conf 33gnunet-reclaim -e testego -a name -V John -c test_reclaim.conf
34TICKET=$(gnunet-reclaim -e testego -i "email,name" -r $SUBJECT_KEY -c test_reclaim.conf | awk '{print $1}') 34TICKET=$(gnunet-reclaim -e testego -i "email,name" -r $SUBJECT_KEY -c test_reclaim.conf | awk '{print $1}')
35gnunet-reclaim -e rpego -C $TICKET -c test_reclaim.conf > /dev/null 2>&1 35gnunet-reclaim -e rpego -C $TICKET -c test_reclaim.conf >/dev/null 2>&1
36 36
37if test $? != 0 37if test $? != 0
38then 38then
diff --git a/src/reclaim/test_reclaim_issue.sh b/src/reclaim/test_reclaim_issue.sh
index 7ab8a6980..cfddc9407 100755
--- a/src/reclaim/test_reclaim_issue.sh
+++ b/src/reclaim/test_reclaim_issue.sh
@@ -20,7 +20,7 @@ rm -rf `gnunet-config -c test_reclaim.conf -s PATHS -o GNUNET_HOME -f`
20# (3) PKEY3.user -> PKEY4 20# (3) PKEY3.user -> PKEY4
21 21
22 22
23which timeout &> /dev/null && DO_TIMEOUT="timeout 30" 23which timeout >/dev/null 2>&1 && DO_TIMEOUT="timeout 30"
24 24
25TEST_ATTR="test" 25TEST_ATTR="test"
26gnunet-arm -s -c test_reclaim.conf 26gnunet-arm -s -c test_reclaim.conf
diff --git a/src/reclaim/test_reclaim_revoke.sh b/src/reclaim/test_reclaim_revoke.sh
index ffbc7ef2b..da091a1ee 100755
--- a/src/reclaim/test_reclaim_revoke.sh
+++ b/src/reclaim/test_reclaim_revoke.sh
@@ -20,10 +20,10 @@ rm -rf `gnunet-config -c test_reclaim.conf -s PATHS -o GNUNET_HOME -f`
20# (3) PKEY3.user -> PKEY4 20# (3) PKEY3.user -> PKEY4
21 21
22 22
23which timeout &> /dev/null && DO_TIMEOUT="timeout 30" 23which timeout >/dev/null 2&>1 && DO_TIMEOUT="timeout 30"
24 24
25TEST_ATTR="test" 25TEST_ATTR="test"
26gnunet-arm -s -c test_reclaim.conf 2&>1 > /dev/null 26gnunet-arm -s -c test_reclaim.conf >/dev/null 2&>1
27gnunet-identity -C alice -c test_reclaim.conf 27gnunet-identity -C alice -c test_reclaim.conf
28gnunet-identity -C bob -c test_reclaim.conf 28gnunet-identity -C bob -c test_reclaim.conf
29gnunet-identity -C eve -c test_reclaim.conf 29gnunet-identity -C eve -c test_reclaim.conf
@@ -43,7 +43,7 @@ sleep 16
43echo "Consuming $TICKET" 43echo "Consuming $TICKET"
44 44
45gnunet-reclaim -e eve -C $TICKET_EVE -c test_reclaim.conf 45gnunet-reclaim -e eve -C $TICKET_EVE -c test_reclaim.conf
46if test $? == 0 46if test $? = 0
47then 47then
48 echo "Eve can still resolve attributes..." 48 echo "Eve can still resolve attributes..."
49 gnunet-arm -e -c test_reclaim.conf 49 gnunet-arm -e -c test_reclaim.conf
@@ -51,10 +51,10 @@ then
51fi 51fi
52 52
53gnunet-arm -e -c test_reclaim.conf 53gnunet-arm -e -c test_reclaim.conf
54gnunet-arm -s -c test_reclaim.conf 2&>1 > /dev/null 54gnunet-arm -s -c test_reclaim.conf >/dev/null 2&>1
55 55
56gnunet-reclaim -e bob -C $TICKET_BOB -c test_reclaim.conf 56gnunet-reclaim -e bob -C $TICKET_BOB -c test_reclaim.conf
57#gnunet-reclaim -e bob -C $TICKET_BOB -c test_reclaim.conf 2&>1 >/dev/null 57#gnunet-reclaim -e bob -C $TICKET_BOB -c test_reclaim.conf >/dev/null 2&>1
58if test $? != 0 58if test $? != 0
59then 59then
60 echo "Bob cannot resolve attributes..." 60 echo "Bob cannot resolve attributes..."
diff --git a/src/scalarproduct/test_scalarproduct.sh b/src/scalarproduct/test_scalarproduct.sh
index c0401beb7..ed91cd5c4 100755
--- a/src/scalarproduct/test_scalarproduct.sh
+++ b/src/scalarproduct/test_scalarproduct.sh
@@ -25,7 +25,7 @@ echo "Waiting for peers to start..."
25sleep 5 25sleep 5
26echo "Running test..." 26echo "Running test..."
27 27
28which timeout &> /dev/null && DO_TIMEOUT="timeout 15" 28which timeout >/dev/null 2>&1 && DO_TIMEOUT="timeout 15"
29 29
30# get bob's peer ID, necessary for alice 30# get bob's peer ID, necessary for alice
31PEERIDBOB=`${DO_TIMEOUT} gnunet-peerinfo -qs $CFGBOB` 31PEERIDBOB=`${DO_TIMEOUT} gnunet-peerinfo -qs $CFGBOB`
@@ -38,7 +38,7 @@ RESULT=`${DO_TIMEOUT} gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB`
38# terminate the testbed 38# terminate the testbed
39kill $PID 39kill $PID
40 40
41if [ "$RESULT" == "$EXPECTED" ] 41if [ "$RESULT" = "$EXPECTED" ]
42then 42then
43 echo "OK" 43 echo "OK"
44 exit 0 44 exit 0
diff --git a/src/scalarproduct/test_scalarproduct_negative.sh b/src/scalarproduct/test_scalarproduct_negative.sh
index cbeb1b9fd..b08e4527f 100755
--- a/src/scalarproduct/test_scalarproduct_negative.sh
+++ b/src/scalarproduct/test_scalarproduct_negative.sh
@@ -11,7 +11,7 @@ PREFIX=/tmp/test-scalarproduct`date +%H%M%S`
11CFGALICE="-c $PREFIX/0/config" 11CFGALICE="-c $PREFIX/0/config"
12CFGBOB="-c $PREFIX/1/config" 12CFGBOB="-c $PREFIX/1/config"
13 13
14which timeout &> /dev/null && DO_TIMEOUT="timeout 15" 14which timeout >/dev/null 2>&1 && DO_TIMEOUT="timeout 15"
15 15
16# launch two peers in line topology non-interactively 16# launch two peers in line topology non-interactively
17# 17#
@@ -36,7 +36,7 @@ RESULT=`${DO_TIMEOUT} gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB`
36kill $PID 36kill $PID
37 37
38EXPECTED="-0CCC" 38EXPECTED="-0CCC"
39if [ "$RESULT" == "$EXPECTED" ] 39if [ "$RESULT" = "$EXPECTED" ]
40then 40then
41 echo "OK" 41 echo "OK"
42 exit 0 42 exit 0
diff --git a/src/scalarproduct/test_scalarproduct_negativezero.sh b/src/scalarproduct/test_scalarproduct_negativezero.sh
index 1ab7157af..6f80b2ea2 100755
--- a/src/scalarproduct/test_scalarproduct_negativezero.sh
+++ b/src/scalarproduct/test_scalarproduct_negativezero.sh
@@ -22,7 +22,7 @@ PID=$!
22# sleep 1 is too short on most systems, 2 works on most, 5 seems to be safe 22# sleep 1 is too short on most systems, 2 works on most, 5 seems to be safe
23sleep 5 23sleep 5
24 24
25which timeout &> /dev/null && DO_TIMEOUT="timeout 15" 25which timeout >/dev/null 2>&1 && DO_TIMEOUT="timeout 15"
26 26
27# get bob's peer ID, necessary for alice 27# get bob's peer ID, necessary for alice
28PEERIDBOB=`${DO_TIMEOUT} gnunet-peerinfo -qs $CFGBOB` 28PEERIDBOB=`${DO_TIMEOUT} gnunet-peerinfo -qs $CFGBOB`
@@ -36,7 +36,7 @@ RESULT=`${DO_TIMEOUT} gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB`
36kill $PID 36kill $PID
37 37
38EXPECTED="00" 38EXPECTED="00"
39if [ "$RESULT" == "$EXPECTED" ] 39if [ "$RESULT" = "$EXPECTED" ]
40then 40then
41 echo "OK" 41 echo "OK"
42 exit 0 42 exit 0