Functions | |
def | usage |
def | list_tests |
def | haslist |
def | getname |
def | gettests |
def | readfile |
def | settestdir |
def | main |
Variables | |
tuple | PYVER |
list | CASA_DIR |
string | TESTS_DIR |
HAVE_MEMTEST | |
string | LISTofTESTS |
int | MEM |
int | whichtests |
tuple | i |
list | testnames |
hasfile | |
datadir |
Script to run unit tests from the command line as: casapy [casa-options] -c runUnitTest.py testname1 testname2 ... casapy [casa-options] -c runUnitTest.py testname1[test_r,test23] testname2... casapy [casa-options] -c runUnitTest.py --Help casapy [casa-options] -c runUnitTest.py --list casapy [casa-options] -c runUnitTest.py --list casapy [casa-options] -c runUnitTest.py --file Tests.txt or from inside casapy: runUnitTest.main(['testname']) runUnitTest.main() NOTE: It will search for scripts in the casapy installation directory, which usually is in: <casa_install_dir>/python/2.6/tests
def runUnitTest.getname | ( | testfile | ) |
Get the test name from the command-line Ex: from test_clean[test1], returns test_clean
Definition at line 106 of file runUnitTest.py.
Referenced by main().
def runUnitTest.gettests | ( | testfile | ) |
Get the list of specific tests from the command-line Ex: from test_clean[test1,test3] returns [test1,test3]
Definition at line 114 of file runUnitTest.py.
Referenced by main().
def runUnitTest.haslist | ( | name | ) |
Check if specific list of tests have been requested
Definition at line 98 of file runUnitTest.py.
Referenced by main().
def runUnitTest.list_tests | ( | ) |
def runUnitTest.main | ( | testnames = [] | ) |
Definition at line 155 of file runUnitTest.py.
References getname(), gettests(), haslist(), list_tests(), readfile(), and usage().
def runUnitTest.readfile | ( | FILE | ) |
Definition at line 124 of file runUnitTest.py.
Referenced by list_tests(), and main().
def runUnitTest.settestdir | ( | datadir | ) |
Set an environmental variable for the data directory
Definition at line 144 of file runUnitTest.py.
def runUnitTest.usage | ( | ) |
Definition at line 69 of file runUnitTest.py.
Referenced by main().
list runUnitTest.CASA_DIR |
Definition at line 37 of file runUnitTest.py.
Definition at line 334 of file runUnitTest.py.
Definition at line 298 of file runUnitTest.py.
Definition at line 50 of file runUnitTest.py.
tuple runUnitTest.i |
Definition at line 275 of file runUnitTest.py.
string runUnitTest.LISTofTESTS |
Definition at line 63 of file runUnitTest.py.
int runUnitTest.MEM |
Definition at line 67 of file runUnitTest.py.
tuple runUnitTest.PYVER |
Definition at line 35 of file runUnitTest.py.
Definition at line 292 of file runUnitTest.py.
string runUnitTest.TESTS_DIR |
Definition at line 38 of file runUnitTest.py.
Definition at line 152 of file runUnitTest.py.