Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/run_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run_test.py')
-rw-r--r--tests/run_test.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/run_test.py b/tests/run_test.py
new file mode 100644
index 0000000..053da1e
--- /dev/null
+++ b/tests/run_test.py
@@ -0,0 +1,27 @@
+# Richard Darst, 2009
+
+import os
+import sys
+
+run_tests = True
+os.chdir(os.path.join(os.path.dirname(__file__), '.'))
+
+print sys.path
+sys.path.insert(0, "..")
+
+sys.argv[1:] = ["replay", "test-script-1.log.txt"]
+execfile("../meeting.py")
+
+del sys.path[0]
+
+
+# Supybot-based tests
+
+os.symlink("..", "MeetBot")
+try:
+ sys.argv[1:] = ["./MeetBot"]
+ execfile("/usr/bin/supybot-test")
+finally:
+ os.unlink("MeetBot")
+
+