meetbot/tests/run_test.py
Richard Darst e8c2f57e51 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
2009-08-07 16:24:05 -07:00

28 lines
418 B
Python

# 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")