aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2018-01-30 16:37:09 +0100
committerKarel Kočí <karel.koci@nic.cz>2018-01-30 16:37:09 +0100
commit03a7fe53f739adee462bbdef044fc2071f090bdf (patch)
treeacf971cd784574f0029aef5a1afdb5b07967ed08
parente027b3020140fa4d9a599521d2ab49d0578b85bd (diff)
downloadturris-tetris-03a7fe53f739adee462bbdef044fc2071f090bdf.tar.gz
turris-tetris-03a7fe53f739adee462bbdef044fc2071f090bdf.tar.bz2
turris-tetris-03a7fe53f739adee462bbdef044fc2071f090bdf.zip
Add test scriptv1.3
-rwxr-xr-xrouters.sh2
-rwxr-xr-xtest.sh12
2 files changed, 13 insertions, 1 deletions
diff --git a/routers.sh b/routers.sh
index f84faeb..aebc0cf 100755
--- a/routers.sh
+++ b/routers.sh
@@ -7,7 +7,7 @@ I=0
for R in $ROUTERS; do
echo "=== Runnining on 192.168.1.$R ==="
- ssh -i ~/router root@192.168.1.$R -- $@
+ ssh -i ~/router root@192.168.1.$R -- "$@"
#scp -i ~/router user.lua root@192.168.1.$R:/etc/updater/user.lua
#ssh -i ~/router root@192.168.1.$R -- uci set turtetris.line=$I
#ssh -i ~/router root@192.168.1.$R -- /etc/init.d/turtetris-slave restart
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..c6d6f10
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+ssh -i ~/router root@192.168.1.1 -- killall python3
+# Stop current running master if any
+ssh -i ~/router root@192.168.1.1 -- /etc/init.d/turtetris-slave restart
+
+# Remove old one
+ssh -i ~/router root@192.168.1.1 -- rm -rf turtetris_master
+# Deploy
+scp -i ~/router -r turtetris_master root@192.168.1.1:
+# Run
+ssh -i ~/router root@192.168.1.1 -- python3 -m turtetris_master