aboutsummaryrefslogtreecommitdiffstats
path: root/init_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init_test.sh')
-rwxr-xr-xinit_test.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/init_test.sh b/init_test.sh
new file mode 100755
index 0000000..d1e6f7d
--- /dev/null
+++ b/init_test.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+# Test init.d-style initialization; run this script as root (or sudo it)
+
+export key=`./exmachina.py --random-key`
+
+echo $key | ./exmachina.py -vk --pid-file /tmp/exmachina_test.pid
+sleep 1
+echo $key | ./test.py -k
+
+kill `cat /tmp/exmachina_test.pid` && rm /tmp/exmachina_test.pid
+sleep 1
+jobs