aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/contrib
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-15 20:07:10 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-15 20:07:10 +0100
commite19d6fc1ee306413d4a1b0ab91c94199f8f82ca1 (patch)
treec32133a6f06125fd30a5c01c8a103fbb892d74b4 /openbsc/contrib
parent0b369c582b94c2b409417bcaed0fcdd90d925d9e (diff)
parent09a925b117593c981b1986b64854c5dd12331a16 (diff)
Merge branch 'zecke/osmo-bsc'
Diffstat (limited to 'openbsc/contrib')
-rw-r--r--openbsc/contrib/bsc-test/README1
-rw-r--r--openbsc/contrib/bsc-test/all_dial8
-rwxr-xr-xopenbsc/contrib/bsc-test/dial.sh11
-rw-r--r--openbsc/contrib/bsc-test/hangup4
-rwxr-xr-xopenbsc/contrib/bsc-test/msc.sh8
5 files changed, 32 insertions, 0 deletions
diff --git a/openbsc/contrib/bsc-test/README b/openbsc/contrib/bsc-test/README
new file mode 100644
index 000000000..adb222e21
--- /dev/null
+++ b/openbsc/contrib/bsc-test/README
@@ -0,0 +1 @@
+Some crazy scripts call testing... and MSC link failure simulation
diff --git a/openbsc/contrib/bsc-test/all_dial b/openbsc/contrib/bsc-test/all_dial
new file mode 100644
index 000000000..96e5f00b3
--- /dev/null
+++ b/openbsc/contrib/bsc-test/all_dial
@@ -0,0 +1,8 @@
+ABORT BUSY
+ABORT 'NO CARRIER'
+ABORT 'OK'
+
+'' AT
+SAY "Dialing a number\n"
+'OK' ATD05660066;
+
diff --git a/openbsc/contrib/bsc-test/dial.sh b/openbsc/contrib/bsc-test/dial.sh
new file mode 100755
index 000000000..e5e19f63e
--- /dev/null
+++ b/openbsc/contrib/bsc-test/dial.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+# Evil dial script..
+
+while true;
+do
+ chat -v -f all_dial < /dev/ttyACM0 > /dev/ttyACM0
+ sleep 5s
+ chat -v -f hangup < /dev/ttyACM0 > /dev/ttyACM0
+ sleep 2s
+done
+
diff --git a/openbsc/contrib/bsc-test/hangup b/openbsc/contrib/bsc-test/hangup
new file mode 100644
index 000000000..cad6870fd
--- /dev/null
+++ b/openbsc/contrib/bsc-test/hangup
@@ -0,0 +1,4 @@
+TIMEOUT 10
+'' ^Z
+SAY "Waiting for hangup confirm\n"
+'' ATH;
diff --git a/openbsc/contrib/bsc-test/msc.sh b/openbsc/contrib/bsc-test/msc.sh
new file mode 100755
index 000000000..bec011d4c
--- /dev/null
+++ b/openbsc/contrib/bsc-test/msc.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+while true;
+do
+ echo "Kill the osmo-bsc"
+ /usr/bin/kill -s SIGUSR2 `pidof osmo-bsc`
+ sleep 58s
+done