<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/tests/atf_python/Makefile, branch release/14.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F14.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F14.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-10-18T14:36:31Z</updated>
<entry>
<title>pkgbase: Put atf_python files in FreeBSD-tests</title>
<updated>2023-10-18T14:36:31Z</updated>
<author>
<name>Emmanuel Vadot</name>
<email>manu@FreeBSD.org</email>
</author>
<published>2023-10-12T17:41:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3469786f20357f45a0e07878f5e4623d139d6e0f'/>
<id>urn:sha1:3469786f20357f45a0e07878f5e4623d139d6e0f</id>
<content type='text'>
Sponsored by:	Beckhoff Automation GmbH &amp; Co. KG

(cherry picked from commit 944223076fbcb681a8eb3e118ddafab79b21ac3d)
</content>
</entry>
<entry>
<title>Testing: add framework for the kernel unit tests.</title>
<updated>2023-04-14T15:47:55Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2023-04-14T15:25:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3e5d0784b9b5296bda801add034b057ad68237f7'/>
<id>urn:sha1:3e5d0784b9b5296bda801add034b057ad68237f7</id>
<content type='text'>
This changes intends to reduce the bar to the kernel unit-testing by
 introducing a new kernel-testing framework ("ktest") based on Netlink,
 loadable test modules and python test suite integration.

This framework provides the following features:
* Integration to the FreeBSD test suite
* Automatic test discovery
* Automatic test module loading
* Minimal boiler-plate code in both kernel and userland
* Passing any metadata to the test
* Convenient environment pre-setup using python testing framework
* Streaming messages from the kernel to the userland
* Running tests in the dedicated taskqueues
* Skipping or parametrizing tests

Differential Revision: https://reviews.freebsd.org/D39385
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>netlink: connect netlink tests to the build</title>
<updated>2022-12-16T12:02:50Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2022-12-16T12:02:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3873bdc2f28f6aab6b426ccb6c85ab2a41483264'/>
<id>urn:sha1:3873bdc2f28f6aab6b426ccb6c85ab2a41483264</id>
<content type='text'>
Reviewed By: ngie
Differential Revision: https://reviews.freebsd.org/D37708
</content>
</entry>
<entry>
<title>testing: Add basic atf support to pytest.</title>
<updated>2022-06-25T19:25:15Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2022-06-25T19:01:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8eb2bee6c0f4957c6c1cea826e59cda4d18a2a64'/>
<id>urn:sha1:8eb2bee6c0f4957c6c1cea826e59cda4d18a2a64</id>
<content type='text'>
Implementation consists of the pytest plugin implementing ATF format and
a simple C++ wrapper, which reorders the provided arguments from ATF format
to the format understandable by pytest. Each test has this wrapper specified
after the shebang. When kyua executes the test, wrapper calls pytest, which
loads atf plugin, does the work and returns the result. Additionally, a
separate python "package", `/usr/tests/atf_python` has been added to collect
code that may be useful across different tests.

Current limitations:
* Opaque metadata passing via X-Name properties. Require some fixtures to write
* `-s srcdir` parameter passed by the runner is ignored.
* No `atf-c-api(3)` or similar - relying on pytest framework &amp; existing python libraries
* No support for `atf_tc_&lt;get|has&gt;_config_var()` &amp; `atf_tc_set_md_var()`.
 Can be probably implemented with env variables &amp; autoload fixtures

Differential Revision: https://reviews.freebsd.org/D31084
Reviewed by:	kp, ngie
</content>
</entry>
</feed>
