summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-16 08:57:12 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-26 00:00:21 +0100
commite17c030b765170baa810ab62981a0fa0409a7e57 (patch)
tree1e59326f93536760ddcbb1fd804c7625f5f9047b
parentdab8e27755c56a2eee93317caf79ef32c145c59c (diff)
test: Add shell script to drop the OML in fixed intervals
-rwxr-xr-xopenbsc/contrib/bsc-test/drop-oml.sh6
-rwxr-xr-xopenbsc/contrib/bsc-test/drop.sh8
2 files changed, 14 insertions, 0 deletions
diff --git a/openbsc/contrib/bsc-test/drop-oml.sh b/openbsc/contrib/bsc-test/drop-oml.sh
new file mode 100755
index 000000000..84eead7b7
--- /dev/null
+++ b/openbsc/contrib/bsc-test/drop-oml.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+sleep 3
+echo "enable"
+sleep 1
+echo "drop bts connection 0 oml"
+sleep 1
diff --git a/openbsc/contrib/bsc-test/drop.sh b/openbsc/contrib/bsc-test/drop.sh
new file mode 100755
index 000000000..c7b66ba72
--- /dev/null
+++ b/openbsc/contrib/bsc-test/drop.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+while true;
+do
+ echo "Going to drop the OML connection"
+ ./drop-oml.sh | telnet 127.0.0.1 4242
+ sleep 58m
+done