[myhdl-list] myhdl.test (request for comments)
Brought to you by:
jandecaluwe
From: George P. <ge...@ga...> - 2006-10-14 06:36:18
|
Hi All, I created a new script called myhdl.test myhdl.test is intended to provide the benefits of py.test but requires no tedious installation process. (In contrast to py.test, which requires users to install subversion, check out the latest version, and do a separate install) To be part of my MyHDL Booster library package (but should still work without it) # ---------------------------------------------------------------------------- myhdl.test - 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 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 - A running total of tests passed/failed is needed - test classes not supported yet # ---------------------------------------------------------------------------- Complete source to a beta version linked below: http://myhdl.jandecaluwe.com/doku.php/users:george_pantazopoulos:myhdl.test Boy, I sure learned a lot tonight coding this up! Now I know what that ast/visitor stuff in MyHDL is about, Jan ;-) Feedback needed! Enjoy, George http://www.gammaburst.net |