Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 2014 21:26:28 +0000
From:      "Walker, Myron" <myron.walker@isilon.com>
To:        "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>
Subject:   Adding Python Wrapper for ATF
Message-ID:  <D9C937B7A398944F8492054F93E3D07020C26DA6@MX103CL02.corp.emc.com>

next in thread | raw e-mail | index | archive | help
I have created a python wrapper atfpy-sh that will act as an atf program an=
d 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 fu=
ll IDE environment like eclipse and PyDev on any linux or unix desktop syst=
em against shared libraries that are common between operating systems.  The=
n just add them to the FreeBSD source tree as ATF wrapped tests once they a=
re fully operational tests.

See the attached zip for the atfpy-sh script, manpage, and an example unitt=
est 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 j=
ust 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.

Thanks,
Myron




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D9C937B7A398944F8492054F93E3D07020C26DA6>