3 armexe="gnunet-arm -c test_dht_api_peer1.conf "
4 putexe="gnunet-dht-put -c test_dht_api_peer1.conf "
5 getexe="gnunet-dht-get -c test_dht_api_peer1.conf "
6 out=`mktemp /tmp/test-gnunet-arm-logXXXXXXXX`
11 if ! $armexe $DEBUG -e > $out ; then
12 echo "FAIL: error running $armexe"
13 echo "Command output was:"
20 echo -n "TEST: Starting ARM..."
21 if ! $armexe $DEBUG -s > $out ; then
22 echo "FAIL: error running $armexe"
23 echo "Command output was:"
31 echo -n "TEST: Testing put..."
32 if ! $putexe -k testkey -d testdata > $out ; then
33 echo "FAIL: error running $putexe"
34 echo "Command output was:"
42 echo -n "TEST: Testing get..."
43 echo "Result 0, type 0:" > $checkout
44 echo "testdata" >> $checkout
46 if ! $getexe -k testkey -T 1 > $out ; then
47 echo "FAIL: error running $putexe"
48 echo "Command output was:"
53 if ! diff -q $out $checkout ; then
54 echo "FAIL: $out and $checkout differ"