diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2013-07-22 08:26:16 -0500 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2013-07-22 08:26:16 -0500 |
commit | 7450bd0b6c6c05ee6425e2c63e9b79beb94bfbfa (patch) | |
tree | dfde89b41437def7ce23af24db53a11a9b5f1075 /src/dht/test_dht_tools.sh | |
parent | 740b30688bd745a527f96f9116c19acb3480971a (diff) |
Imported Upstream version 0.9.5aupstream
Diffstat (limited to 'src/dht/test_dht_tools.sh')
-rwxr-xr-x | src/dht/test_dht_tools.sh | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/src/dht/test_dht_tools.sh b/src/dht/test_dht_tools.sh deleted file mode 100755 index f83c26a..0000000 --- a/src/dht/test_dht_tools.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/sh - -out=`mktemp /tmp/test-gnunet-dht-logXXXXXXXX` -tempcfg=`mktemp /tmp/test_dht_api_peer1.XXXXXXXX` -checkout="check.out" -armexe="gnunet-arm -c $tempcfg " -putexe="gnunet-dht-put -c $tempcfg " -getexe="gnunet-dht-get -c $tempcfg " -peerinfo="gnunet-peerinfo -c $tempcfg -sq" -stop_arm() -{ - if ! $armexe $DEBUG -e -d > $out ; then - echo "FAIL: error running $armexe" - echo "Command output was:" - cat $out - rm -f $out $tempcfg - exit 1 - fi - rm -f $out $tempcfg -} - -cp test_dht_api_peer1.conf $tempcfg - -echo -n "TEST: Generating hostkey..." -if ! $peerinfo > $out ; then - echo "FAIL: error running $peerinfo" - echo "Command output was:" - cat $out - exit 1 -fi -echo "PASS" - -echo -n "TEST: Starting ARM..." -if ! $armexe $DEBUG -s > $out ; then - echo "FAIL: error running $armexe" - echo "Command output was:" - cat $out - stop_arm - exit 1 -fi -echo "PASS" -sleep 1 - -echo -n "TEST: Testing put..." -if ! $putexe -k testkey -d testdata -t 8 > $out ; then - echo "FAIL: error running $putexe" - echo "Command output was:" - cat $out - stop_arm - exit 1 -fi -echo "PASS" -sleep 1 - -echo -n "TEST: Testing get..." -echo "Result 0, type 8:" > $checkout -echo "testdata" >> $checkout - -if ! $getexe -k testkey -T 5 -t 8 > $out ; then - echo "FAIL: error running $putexe" - echo "Command output was:" - cat $out - stop_arm - exit 1 -fi - -if ! diff --strip-trailing-cr -q $out $checkout ; then - echo "FAIL: $out and $checkout differ" - stop_arm - exit 1 -fi -echo "PASS" -stop_arm |