Added test to check why some buildbots fail connections and tests
authorBart Polot <bart@net.in.tum.de>
Mon, 31 Oct 2011 22:46:10 +0000 (22:46 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 31 Oct 2011 22:46:10 +0000 (22:46 +0000)
src/mesh/Makefile.am
src/mesh/test_0 [new file with mode: 0755]

index b186b318882b5e6a4ccc68ce6ac5bab730baf823..61310b6b0296978eb0fc625709ef3d0120129082 100644 (file)
@@ -109,7 +109,7 @@ test_mesh_small_multicast_DEPENDENCIES = \
 
 
 if ENABLE_TEST_RUN
-TESTS = test_mesh_api test_mesh_path_api test_mesh_local_1 test_mesh_local_2 test_mesh_small_unicast
+TESTS = test_0 test_mesh_api test_mesh_path_api test_mesh_local_1 test_mesh_local_2 test_mesh_small_unicast
 endif
 
 EXTRA_DIST = \
diff --git a/src/mesh/test_0 b/src/mesh/test_0
new file mode 100755 (executable)
index 0000000..08143c5
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+N=$(ps aux | grep gnunet | wc -l)
+if [[ $N > 1 ]]; then
+    echo "WARNING: there are GNUnet processes running!!!"
+    echo "WARNING: test may fail because of this!"
+fi
+ps aux | grep gnunet