Mercurial > p > roundup > code
comparison run_tests @ 613:d77b82588bf0
Fixed the unit tests for the mailgw re: the x-roundup-name header.
Also made the test runner more user-friendly:
./run_tests - detect all tests in test/test_<name>.py and run them
./run_tests <name> - run only test/test_<name>.py
eg ./run_tests mailgw - run the mailgw test from test/test_mailgw.py
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 14 Feb 2002 23:38:12 +0000 |
| parents | 50fcb1357967 |
| children | 51c425129b35 |
comparison
equal
deleted
inserted
replaced
| 612:a2aeebf3d6bd | 613:d77b82588bf0 |
|---|---|
| 7 # | 7 # |
| 8 # This module is distributed in the hope that it will be useful, | 8 # This module is distributed in the hope that it will be useful, |
| 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 11 # | 11 # |
| 12 # $Id: run_tests,v 1.3 2002-01-23 20:09:41 jhermann Exp $ | 12 # $Id: run_tests,v 1.4 2002-02-14 23:38:12 richard Exp $ |
| 13 | 13 |
| 14 import test | 14 from test import go |
| 15 test.go() | 15 import sys |
| 16 if len(sys.argv) > 1: | |
| 17 go(sys.argv[1:]) | |
| 18 else: | |
| 19 go() | |
| 16 | 20 |
| 17 # | 21 # |
| 18 # $Log: not supported by cvs2svn $ | 22 # $Log: not supported by cvs2svn $ |
| 23 # Revision 1.3 2002/01/23 20:09:41 jhermann | |
| 24 # Proper fix for failing test | |
| 25 # | |
| 19 # Revision 1.2 2002/01/23 11:08:52 grubert | 26 # Revision 1.2 2002/01/23 11:08:52 grubert |
| 20 # . run_tests testReldate_date failed if LANG is 'german' | 27 # . run_tests testReldate_date failed if LANG is 'german' |
| 21 # | 28 # |
| 22 # Revision 1.1 2002/01/23 05:53:46 richard | 29 # Revision 1.1 2002/01/23 05:53:46 richard |
| 23 # convenience script for running the unit tests... | 30 # convenience script for running the unit tests... |
