diff options
author | root <root@ziggy.robocracy.org> | 2012-07-12 15:47:36 -0400 |
---|---|---|
committer | root <root@ziggy.robocracy.org> | 2012-07-12 15:47:36 -0400 |
commit | 420106d5a9823b81fe686789831dd2354bfaa678 (patch) | |
tree | 6f88594ea1e2e42269bd02571c2b84e374e31836 /init_test.sh | |
parent | abaec3f515523310a8b743f13d60b905885a9f13 (diff) | |
download | exmachina-420106d5a9823b81fe686789831dd2354bfaa678.tar.gz exmachina-420106d5a9823b81fe686789831dd2354bfaa678.zip |
progress
Diffstat (limited to 'init_test.sh')
-rwxr-xr-x | init_test.sh | 13 |
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 |