Adding Python Wrapper for ATF

Walker, Myron myron.walker at
Fri May 9 21:26:48 UTC 2014

I have created a python wrapper atfpy-sh that will act as an atf program and wrap a python module that contains unittest test cases.  I have included a zip of the wrapper script and the man page for it.  I believe it will be very efficient to create python unittest test cases and debug them in an full IDE environment like eclipse and PyDev on any linux or unix desktop system against shared libraries that are common between operating systems.  Then just add them to the FreeBSD source tree as ATF wrapped tests once they are fully operational tests.

See the attached zip for the atfpy-sh script, manpage, and an example unittest python module.  I was putting it under contrib/atf/atfpy-sh and adding a Makefile under usr.bin/atf/atfpy-sh to copy atfpy-sh to /usr/bin.  Then just stick the test file in a folder under /user/tests, modify the Kyuafile for the folder and it should work.

I think this would make a great addition to ATF.  I would really like to be able to use it.


More information about the freebsd-testing mailing list