diff options
author | Richard Darst <rkd@zgib.net> | 2009-08-07 23:24:05 (GMT) |
---|---|---|
committer | Richard Darst <rkd@zgib.net> | 2009-08-07 23:24:05 (GMT) |
commit | fb8b0a902e95a4d77dc84ba316d0deff6106d0f6 (patch) | |
tree | 57d56afff33880e2832b785694efa59882829bde /tests/run_test.py | |
parent | 0c936f7cd88c5e001ffccf69271b6a877a82fa3d (diff) |
Add comprehensive test suite
- Enter via tests/run_tests.py
- It has two parts: it replays two meetings, just being sure no exceptions
are raised
- It runs one suite of test commands through supybot, using the supybot
test suite, to ensure that supybot usage works.
darcs-hash:20090807232405-82ea9-327d27a3709ad8f851a51552b13d286a9a118fc3.gz
Diffstat (limited to 'tests/run_test.py')
-rw-r--r-- | tests/run_test.py | 27 |
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") + + |