aboutsummaryrefslogtreecommitdiff
path: root/src/arm/test_gnunet_arm.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-08 15:45:10 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-08 15:45:10 +0000
commitcbd09ba94fde1331cb4fe6ea29f5f164adc8db25 (patch)
tree7d6d205b2f0fbaf894770334733c589c34fb4864 /src/arm/test_gnunet_arm.sh
parent7ecae6c47bc658cce69de75c1addb0c6db75ced9 (diff)
downloadgnunet-cbd09ba94fde1331cb4fe6ea29f5f164adc8db25.tar.gz
gnunet-cbd09ba94fde1331cb4fe6ea29f5f164adc8db25.zip
major rewrite of ARM service and a bit of the ARM IPC to take advantage of the simplifications possible now that we no longer intercept traffic; the new code in particular is better at communicating what exactly ARM was doing in response to requests. A major change is that gnunet-arm -i/-k now only impacts if a service is running by-default, on-demand starting is no longer impacted, option -t from gnunet-arm was removed
Diffstat (limited to 'src/arm/test_gnunet_arm.sh')
-rwxr-xr-xsrc/arm/test_gnunet_arm.sh39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/arm/test_gnunet_arm.sh b/src/arm/test_gnunet_arm.sh
index d36c2ca38..4a5b7266d 100755
--- a/src/arm/test_gnunet_arm.sh
+++ b/src/arm/test_gnunet_arm.sh
@@ -40,28 +40,6 @@ sleep 1
40echo "PASS" 40echo "PASS"
41 41
42# ---------------------------------------------------------------------------------- 42# ----------------------------------------------------------------------------------
43echo -n "TEST: Test -t on running service... "
44if ! $exe $DEBUG -t resolver > $out; then
45 echo "FAIL: error running $exe"
46 exit 1
47fi
48LINES=`cat $out | grep resolver | grep not | wc -l`
49if test $LINES -ne 0; then
50 echo "FAIL: unexpected output:"
51 cat $out
52 $exe -e
53 exit 1
54fi
55LINES=`cat $out | grep resolver | grep -v not | wc -l`
56if test $LINES -ne 1; then
57 echo "FAIL: unexpected output"
58 cat $out
59 $exe -e
60 exit 1
61fi
62echo "PASS"
63
64# ----------------------------------------------------------------------------------
65echo -n "TEST: Stop a service... " 43echo -n "TEST: Stop a service... "
66 44
67if ! $exe $DEBUG -k resolver > $out; then 45if ! $exe $DEBUG -k resolver > $out; then
@@ -73,23 +51,6 @@ sleep 1
73echo "PASS" 51echo "PASS"
74 52
75# ---------------------------------------------------------------------------------- 53# ----------------------------------------------------------------------------------
76echo -n "TEST: Test -t on stopped service... "
77if ! $exe $DEBUG -t resolver > $out; then
78 echo "FAIL: error running $exe"
79 cat $out
80 $exe -e > /dev/null
81 exit 1
82fi
83LINES=`cat $out | grep resolver | grep not | wc -l`
84if test $LINES -ne 1; then
85 echo "FAIL: unexpected output"
86 cat $out
87 $exe -e > /dev/null
88 exit 1
89fi
90echo "PASS"
91
92# ----------------------------------------------------------------------------------
93echo -n "TEST: Stop ARM... " 54echo -n "TEST: Stop ARM... "
94 55
95if ! $exe $DEBUG -e > $out; then 56if ! $exe $DEBUG -e > $out; then