diff options
author | bnewbold <bnewbold@robocracy.org> | 2012-07-12 20:29:54 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2012-07-12 20:29:54 -0400 |
commit | fb64c52bf4a34a09067428acc28483bc06a69726 (patch) | |
tree | 53abd7d0561f5204588e0e0a4d7536abf178f1e6 | |
parent | 82da70ad92f82dc2bedf26cbbd057a758e94960e (diff) | |
download | exmachina-fb64c52bf4a34a09067428acc28483bc06a69726.tar.gz exmachina-fb64c52bf4a34a09067428acc28483bc06a69726.zip |
improve test docs
-rwxr-xr-x | init_test.sh | 2 | ||||
-rwxr-xr-x | test_exmachina.py | 14 |
2 files changed, 14 insertions, 2 deletions
diff --git a/init_test.sh b/init_test.sh index ab4e717..c53d76b 100755 --- a/init_test.sh +++ b/init_test.sh @@ -4,7 +4,7 @@ export key=`./exmachina.py --random-key` -echo $key | ./exmachina.py -vk --pid-file /tmp/exmachina_test.pid +echo $key | ./exmachina.py -vk --pidfile /tmp/exmachina_test.pid sleep 1 echo $key | sudo -u www-data -g www-data ./test_exmachina.py -k diff --git a/test_exmachina.py b/test_exmachina.py index 6c2a97d..86c71bf 100755 --- a/test_exmachina.py +++ b/test_exmachina.py @@ -1,10 +1,22 @@ #!/usr/bin/env python """ -To use with secret keys, do: +This file tests the "client side" of the exmachina layer. +To use with secret keys, do the following in seperate terminals: + + $ echo "<key>" | ./exmachina.py -vk $ echo "<key>" | ./test.py -k +To use without, do the following in seperate terminals: + + $ echo "<key>" | ./exmachina.py -vk + $ echo "<key>" | ./test.py -k + +Use the init_test.sh script to test shared key passing and privilage seperation +at the same time: + + $ sudo ./init_test.sh """ import sys |