diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-14 14:50:16 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-14 14:50:16 +0000 |
commit | 576382564c21c546595f57eefc7e57b3e9fc523b (patch) | |
tree | 07d51633f8530dee74f15af936a0c9df416370d8 /src/gns | |
parent | e6ef137e2f3bcdbecfb0962e598182d7dc1fdc7f (diff) | |
download | gnunet-576382564c21c546595f57eefc7e57b3e9fc523b.tar.gz gnunet-576382564c21c546595f57eefc7e57b3e9fc523b.zip |
delete remove namecache content
Diffstat (limited to 'src/gns')
-rwxr-xr-x | src/gns/test_gns_nick_shorten.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gns/test_gns_nick_shorten.sh b/src/gns/test_gns_nick_shorten.sh index 5811d59f5..3bc78e6b4 100755 --- a/src/gns/test_gns_nick_shorten.sh +++ b/src/gns/test_gns_nick_shorten.sh | |||
@@ -40,14 +40,19 @@ gnunet-namestore -p -z testego -a -n mybestfriendalice -t PKEY -V $DELEGATED_PKE | |||
40 | 40 | ||
41 | # Delegate the name "short" to shortenzone | 41 | # Delegate the name "short" to shortenzone |
42 | gnunet-namestore -p -z testego -a -n short -t PKEY -V $SHORT -e never -c test_gns_lookup.conf | 42 | gnunet-namestore -p -z testego -a -n short -t PKEY -V $SHORT -e never -c test_gns_lookup.conf |
43 | 43 | # Adding label mail in ego's zone zone | |
44 | gnunet-namestore -p -z testego -a -n mail -t A -V $TEST_IP -e never -c test_gns_lookup.conf | 44 | gnunet-namestore -p -z testego -a -n mail -t A -V $TEST_IP -e never -c test_gns_lookup.conf |
45 | 45 | ||
46 | # Adding label www in Alice's delegatedego zone | 46 | # Adding label www in Alice's delegatedego zone |
47 | gnunet-namestore -p -z delegatedego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf | 47 | gnunet-namestore -p -z delegatedego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf |
48 | 48 | ||
49 | # Delete namecache content | ||
50 | gnunet-arm -c test_gns_lookup.conf -k namecache | ||
51 | rm -rf `gnunet-config -c test_gns_lookup.conf -s namecache-sqlite -o FILENAME` | ||
52 | |||
49 | # Force start of GNS | 53 | # Force start of GNS |
50 | gnunet-arm -c test_gns_lookup.conf -i gns | 54 | gnunet-arm -c test_gns_lookup.conf -i gns |
55 | |||
51 | # need to sleep here, to give PSEU record chance to be copied to DHT | 56 | # need to sleep here, to give PSEU record chance to be copied to DHT |
52 | sleep 1 | 57 | sleep 1 |
53 | RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u $TEST_NAME -t A -c test_gns_lookup.conf` | 58 | RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u $TEST_NAME -t A -c test_gns_lookup.conf` |