aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinit_test.sh2
-rwxr-xr-xtest_exmachina.py14
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