diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2013-07-22 08:26:16 -0500 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2013-08-01 08:12:45 -0500 |
commit | 000ad0090a0b4eb9889f4c45d35d4d7af2dbbe27 (patch) | |
tree | dda00bef19b649c154ba6a2b37f0f73fa1697c30 /src/arm/test_gnunet_arm.sh | |
parent | 0f8d8bc0c5c09246d647d233767cf3437c6e8bcd (diff) |
Imported Upstream version 0.9.5a
Diffstat (limited to 'src/arm/test_gnunet_arm.sh')
-rwxr-xr-x | src/arm/test_gnunet_arm.sh | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/src/arm/test_gnunet_arm.sh b/src/arm/test_gnunet_arm.sh deleted file mode 100755 index 4a5b726..0000000 --- a/src/arm/test_gnunet_arm.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh - -exe="./gnunet-arm -c test_arm_api_data.conf" -out=`mktemp /tmp/test-gnunet-arm-logXXXXXXXX` -#DEBUG="-L DEBUG" - - -# ---------------------------------------------------------------------------------- -echo -n "TEST: Bad argument checking... " - -if $exe -x 2> /dev/null; then - echo "FAIL: error running $exe" - exit 1 -fi -echo "PASS" - -# ---------------------------------------------------------------------------------- -echo -n "TEST: Start ARM..." - -if ! $exe $DEBUG -s > $out ; then - echo "FAIL: error running $exe" - echo "Command output was:" - cat $out - exit 1 -fi -echo "PASS" -sleep 1 - -# ---------------------------------------------------------------------------------- -echo -n "TEST: Start another service... " - -if ! $exe $DEBUG -i resolver > $out ; then - echo "FAIL: error running $exe" - echo "Command output was:" - cat $out - kill %% - exit 1 -fi -sleep 1 -echo "PASS" - -# ---------------------------------------------------------------------------------- -echo -n "TEST: Stop a service... " - -if ! $exe $DEBUG -k resolver > $out; then - echo "FAIL: error running $exe" - $exe -e - exit 1 -fi -sleep 1 -echo "PASS" - -# ---------------------------------------------------------------------------------- -echo -n "TEST: Stop ARM... " - -if ! $exe $DEBUG -e > $out; then - echo "FAIL: error running $exe" - exit 1 -fi -sleep 1 -echo "PASS" - -rm -rf /tmp/test-gnunetd-arm/ -rm -f $out - |