diff options
author | Phil <phil.buschmann@tum.de> | 2018-08-09 10:23:29 +0200 |
---|---|---|
committer | Phil <phil.buschmann@tum.de> | 2018-08-09 10:23:29 +0200 |
commit | e083dd6ae0b96f30328d0d54bc7a55f6cd34b2b4 (patch) | |
tree | 8c993110fb5958c30f41f40794bd75941a42aca0 /src/reclaim/test_reclaim.sh | |
parent | cffad0ad30400dda7c7c4ef77ed7625013193dbe (diff) | |
parent | b3932f39b028d5db0d2e641e8593679c657b6bd1 (diff) | |
download | gnunet-e083dd6ae0b96f30328d0d54bc7a55f6cd34b2b4.tar.gz gnunet-e083dd6ae0b96f30328d0d54bc7a55f6cd34b2b4.zip |
-Merge branch 'master' into gsoc2018/rest_api
Diffstat (limited to 'src/reclaim/test_reclaim.sh')
-rwxr-xr-x | src/reclaim/test_reclaim.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/reclaim/test_reclaim.sh b/src/reclaim/test_reclaim.sh new file mode 100755 index 000000000..311f5382a --- /dev/null +++ b/src/reclaim/test_reclaim.sh | |||
@@ -0,0 +1,31 @@ | |||
1 | #!/bin/bash | ||
2 | #trap "gnunet-arm -e -c test_reclaim_lookup.conf" SIGINT | ||
3 | |||
4 | LOCATION=$(which gnunet-config) | ||
5 | if [ -z $LOCATION ] | ||
6 | then | ||
7 | LOCATION="gnunet-config" | ||
8 | fi | ||
9 | $LOCATION --version 1> /dev/null | ||
10 | if test $? != 0 | ||
11 | then | ||
12 | echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" | ||
13 | exit 77 | ||
14 | fi | ||
15 | |||
16 | rm -rf `gnunet-config -c test_reclaim.conf -s PATHS -o GNUNET_HOME -f` | ||
17 | |||
18 | # (1) PKEY1.user -> PKEY2.resu.user | ||
19 | # (2) PKEY2.resu -> PKEY3 | ||
20 | # (3) PKEY3.user -> PKEY4 | ||
21 | |||
22 | |||
23 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" | ||
24 | |||
25 | TEST_ATTR="test" | ||
26 | gnunet-arm -s -c test_reclaim.conf | ||
27 | gnunet-identity -C testego -c test_reclaim.conf | ||
28 | valgrind gnunet-reclaim -e testego -a email -V john@doe.gnu -c test_reclaim.conf | ||
29 | gnunet-reclaim -e testego -a name -V John -c test_reclaim.conf | ||
30 | gnunet-reclaim -e testego -D -c test_reclaim.conf | ||
31 | gnunet-arm -e -c test_reclaim.conf | ||