2 trap "gnunet-arm -e -c test_idp.conf" SIGINT
4 LOCATION=$(which gnunet-config)
7 LOCATION="gnunet-config"
9 $LOCATION --version 1> /dev/null
12 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
16 rm -rf `gnunet-config -c test_idp.conf -s PATHS -o GNUNET_HOME -f`
18 # (1) PKEY1.user -> PKEY2.resu.user
19 # (2) PKEY2.resu -> PKEY3
20 # (3) PKEY3.user -> PKEY4
23 which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
26 gnunet-arm -s -c test_idp.conf
27 #gnunet-arm -i rest -c test_idp.conf
28 gnunet-identity -C testego -c test_idp.conf
29 gnunet-identity -C rpego -c test_idp.conf
30 TEST_KEY=$(gnunet-identity -d -c test_idp.conf | grep testego | awk '{print $3}')
31 gnunet-idp -e testego -a email -V john@doe.gnu -c test_idp.conf
32 gnunet-idp -e testego -a name -V John -c test_idp.conf > /dev/null 2>&1
39 #curl localhost:7776/idp/attributes/testego
40 gnunet-arm -e -c test_idp.conf