From fb64c52bf4a34a09067428acc28483bc06a69726 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 12 Jul 2012 20:29:54 -0400 Subject: improve test docs --- init_test.sh | 2 +- 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 "" | ./exmachina.py -vk $ echo "" | ./test.py -k +To use without, do the following in seperate terminals: + + $ echo "" | ./exmachina.py -vk + $ echo "" | ./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 -- cgit v1.2.3