[vlma-devel] commit: Two test scripts to add and remove orders. (Adrien Grand )

git version control git at videolan.org
Mon Dec 21 10:47:54 CET 2009


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Mon Dec 21 10:38:42 2009 +0100| [22273e3eef77822d2902938d122c66db195810fa] | committer: Adrien Grand 

Two test scripts to add and remove orders.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=22273e3eef77822d2902938d122c66db195810fa
---

 vlma-watchdog/test/add_order.sh    |    5 +++++
 vlma-watchdog/test/remove_order.sh |   10 ++++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/vlma-watchdog/test/add_order.sh b/vlma-watchdog/test/add_order.sh
new file mode 100755
index 0000000..6e83c04
--- /dev/null
+++ b/vlma-watchdog/test/add_order.sh
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+# Add a DVB-S order
+
+curl -d "<dvbs-order><id>order_id</id><ttl>12</ttl><adapter>0</adapter><frequency>0</frequency><fec>9</fec><voltage>13</voltage><srate>0</srate><dvb-bandwidth>8</dvb-bandwidth><programs><program><src>1249</src><dest><ip>0.0.0.0</ip><port>1234</port><streaming><type>broadcast</type><protocol>udp</protocol><mux>raw</mux></streaming></dest><dest><streaming><type>broadcast</type><protocol>udp</protocol><mux>raw</mux></streaming></dest></program><program><src>1250</src><dest><streaming><type>broadcast</type><protocol>udp</protocol><mux>raw</mux></streaming></dest></program></programs></dvbs-order>" --user videolan:admin http://localhost:4213/order/add
diff --git a/vlma-watchdog/test/remove_order.sh b/vlma-watchdog/test/remove_order.sh
new file mode 100755
index 0000000..ba358e9
--- /dev/null
+++ b/vlma-watchdog/test/remove_order.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+order_id=$1
+
+if [ "${order_id}" = "" ]; then
+  echo "Usage: remove_order.sh <order_id>"
+  exit 1
+fi
+
+curl -d "id=${order_id}" --user videolan:admin http://localhost:4213/order/remove
+



More information about the vlma-devel mailing list