2 CONFIGURATION="test_namestore_api.conf"
3 trap "gnunet-arm -e -c $CONFIGURATION" SIGINT
4 rm -rf `gnunet-config -c $CONFIGURATION -s PATHS -o SERVICEHOME`
5 TEST_DOMAIN_PLUS="www.gnu"
6 TEST_DOMAIN_DNS="www3.gnu"
7 TEST_IP_PLUS="127.0.0.1"
8 TEST_IP_DNS="131.159.74.67"
9 TEST_RECORD_CNAME_SERVER="server"
10 TEST_RECORD_CNAME_PLUS="server.+"
11 TEST_RECORD_CNAME_DNS="gnunet.org"
12 TEST_RECORD_NAME_SERVER="server"
13 TEST_RECORD_NAME_PLUS="www"
14 TEST_RECORD_NAME_DNS="www3"
15 which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
19 gnunet-arm -s -c $CONFIGURATION
20 gnunet-identity -C testego -c $CONFIGURATION
25 gnunet-identity -D testego -c $CONFIGURATION
26 gnunet-arm -e -c $CONFIGURATION
31 # Create a public record
32 gnunet-namestore -p -z testego -a -n $TEST_RECORD_NAME_DNS -t A -V $TEST_IP_PLUS -e never -c $CONFIGURATION
36 if [ $NAMESTORE_RES == 0 ]
38 echo "PASS: Creating name in namestore"
40 echo "FAIL: Creating name in namestore failed with $NAMESTORE_RES."