Re: [myhdl-list] myhdl.test (request for comments)
Brought to you by:
jandecaluwe
|
From: George P. <ge...@ga...> - 2006-10-14 07:33:06
|
Since my last email I polished up myhdl.test some more (including adding
a pass/fail stats display)
and added a known bug (should be fixable soon)
-----------------------------------------------------------------------------
myhdl.test (MyHDL regression test script)
-----------------------------------------
- Built-in alternative to py.test
- Recurses through subdirectories and runs all functions starting with
"test"
as testbenches in a MyHDL Simulation
- functions are run in the order that they are declared in the module
file,
just like py.test
- Displays number of tests passed/failed.
- Sets the exit code to non-zero if any tests failed.
Usage:
If started with no arguments, it will recurse into subdirectories
starting at the current dir
If a directory is specified, it will recurse into that path
If a python filename is specified, it will only operate on that file
Current limitations:
- Functions must not take any arguments
- test classes not supported yet
Known Bugs:
- Currently, if two files are named exactly the same but in seperate
directories
and their functions are identically named, only the first module's
functions
will actually be executed. The second module's functions will appear
to run
but they are really the first module's functions running again
"""
__title__ = "myhdl.test"
__author__ = "George Pantazopoulos http://www.gammaburst.net"
__descr__ = "Automated regression test runner for MyHDL.\n" \
"Part of the MyHDL Booster package"
__version__ = "0.3.4"
__date__ = "14 Oct 2006"
-----------------------------------------------------------------------------
George
http://www.gammaburst.net
|