<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/Documentation/dev-tools/kselftest.rst, branch linux-5.16.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.16.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.16.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-04-02T22:17:18Z</updated>
<entry>
<title>Documentation: kselftest: fix path to test module files</title>
<updated>2021-04-02T22:17:18Z</updated>
<author>
<name>Antonio Terceiro</name>
</author>
<published>2021-02-24T13:06:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=87f1c20e2effd0a0b7e34b0b3bc06821425e1562'/>
<id>urn:sha1:87f1c20e2effd0a0b7e34b0b3bc06821425e1562</id>
<content type='text'>
The top-level kselftest directory is not called kselftest, but
selftests.

Signed-off-by: Antonio Terceiro &lt;antonio.terceiro@linaro.org&gt;
Cc: Shuah Khan &lt;shuah@kernel.org&gt;
Cc: Jonathan Corbet &lt;corbet@lwn.net&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>doc: dev-tools: kselftest.rst: Update examples and paths</title>
<updated>2020-10-07T13:59:24Z</updated>
<author>
<name>Kees Cook</name>
</author>
<published>2020-09-28T20:26:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4c8511317b4ec75cc3868f80a7b9fddb8322e512'/>
<id>urn:sha1:4c8511317b4ec75cc3868f80a7b9fddb8322e512</id>
<content type='text'>
Update the installation commands and path details, detail the new
options available in the run_kselftests.sh script.

Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Reviewed-by: Naresh Kamboju &lt;naresh.kamboju@linaro.org&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'linux-kselftest-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest</title>
<updated>2020-06-09T17:03:12Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2020-06-09T17:03:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fc2fb38c85508a875fc2e95f1e14e0bdcf59e1e9'/>
<id>urn:sha1:fc2fb38c85508a875fc2e95f1e14e0bdcf59e1e9</id>
<content type='text'>
Pull kselftest updates from Shuah Khan:
 "This consists of:

   - Several fixes from Masami Hiramatsu to improve coverage for lib and
     sysctl tests.

   - Clean up to vdso test and a new test for getcpu() from Mark Brown.

   - Add new gen_tar selftests Makefile target generate selftest package
     running "make gen_tar" in selftests directory from Veronika
     Kabatova.

   - Other miscellaneous fixes to timens, exec, tpm2 tests"

* tag 'linux-kselftest-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
  selftests/sysctl: Make sysctl test driver as a module
  selftests/sysctl: Fix to load test_sysctl module
  lib: Make test_sysctl initialized as module
  lib: Make prime number generator independently selectable
  selftests/ftrace: Return unsupported if no error_log file
  selftests/ftrace: Use printf for backslash included command
  selftests/timens: handle a case when alarm clocks are not supported
  Kernel selftests: Add check if TPM devices are supported
  selftests: vdso: Add a selftest for vDSO getcpu()
  selftests: vdso: Use a header file to prototype parse_vdso API
  selftests: vdso: Rename vdso_test to vdso_test_gettimeofday
  selftests/exec: Verify execve of non-regular files fail
  selftests: introduce gen_tar Makefile target
</content>
</entry>
<entry>
<title>selftests: introduce gen_tar Makefile target</title>
<updated>2020-05-19T22:11:46Z</updated>
<author>
<name>Veronika Kabatova</name>
</author>
<published>2020-05-19T20:00:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a5f304670b80973dfce5bc86cacff20244926cf6'/>
<id>urn:sha1:a5f304670b80973dfce5bc86cacff20244926cf6</id>
<content type='text'>
The gen_kselftest_tar.sh always packages *all* selftests and doesn't
pass along any variables to `make install` to influence what should be
built. This can result in an early error on the command line ("Unknown
tarball format TARGETS=XXX"), or unexpected test failures as the
tarball contains tests people wanted to skip on purpose.

Since the makefile already contains all the logic, we can add a target
for packaging. Keep the default .gz target the script uses, and actually
extend the supported formats by using tar's autodetection.

To not break current workflows, keep the gen_kselftest_tar.sh script as
it is, with an added suggestion to use the makefile target instead.

Signed-off-by: Veronika Kabatova &lt;vkabatov@redhat.com&gt;
Reviewed-by: Stefano Brivio &lt;sbrivio@redhat.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>kselftest: add fixture variants</title>
<updated>2020-04-28T20:30:44Z</updated>
<author>
<name>Jakub Kicinski</name>
</author>
<published>2020-04-28T01:03:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=74bc7c97fa88ae334752e7b45702d23813df8873'/>
<id>urn:sha1:74bc7c97fa88ae334752e7b45702d23813df8873</id>
<content type='text'>
Allow users to build parameterized variants of fixtures.

If fixtures want variants, they call FIXTURE_VARIANT() to declare
the structure to fill for each variant. Each fixture will be re-run
for each of the variants defined by calling FIXTURE_VARIANT_ADD()
with the differing parameters initializing the structure.

Since tests are being re-run, additional initialization (steps,
no_print) is also added.

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
Acked-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: Fix dangling documentation references to kselftest_module.sh</title>
<updated>2019-12-11T17:27:01Z</updated>
<author>
<name>Michael Ellerman</name>
</author>
<published>2019-12-06T03:17:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3a019636e6b00997594f91339411fa6bbd2c6d33'/>
<id>urn:sha1:3a019636e6b00997594f91339411fa6bbd2c6d33</id>
<content type='text'>
Commit c78fd76f2b67 ("selftests: Move kselftest_module.sh into
kselftest/") moved kselftest_module.sh but missed updating a few
references to the path in documentation.

Fixes: c78fd76f2b67 ("selftests: Move kselftest_module.sh into kselftest/")
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Acked-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>kselftest: add capability to skip chosen TARGETS</title>
<updated>2019-10-01T19:19:04Z</updated>
<author>
<name>Cristian Marussi</name>
</author>
<published>2019-09-26T17:52:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3a24f7f6b610910ee328df11392e21925cefdecb'/>
<id>urn:sha1:3a24f7f6b610910ee328df11392e21925cefdecb</id>
<content type='text'>
Let the user specify an optional TARGETS skiplist through the new optional
SKIP_TARGETS Makefile variable.

It is easier to skip at will using a reduced and well defined list of
possibly problematic targets with SKIP_TARGETS than to provide a partially
stripped down list of good targets using the usual TARGETS variable.

Signed-off-by: Cristian Marussi &lt;cristian.marussi@arm.com&gt;
Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'docs-5.2' of git://git.lwn.net/linux</title>
<updated>2019-05-08T19:42:50Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2019-05-08T19:42:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8c79f4cd441b27df6cadd11b70a50e06b3b3a2bf'/>
<id>urn:sha1:8c79f4cd441b27df6cadd11b70a50e06b3b3a2bf</id>
<content type='text'>
Pull documentation updates from Jonathan Corbet:
 "A reasonably busy cycle for docs, including:

   - Lots of work on the Chinese and Italian translations

   - Some license-rules clarifications from Christoph

   - Various build-script fixes

   - A new document on memory models

   - RST conversion of the live-patching docs

   - The usual collection of typo fixes and corrections"

* tag 'docs-5.2' of git://git.lwn.net/linux: (140 commits)
  docs/livepatch: Unify style of livepatch documentation in the ReST format
  docs: livepatch: convert docs to ReST and rename to *.rst
  scripts/documentation-file-ref-check: detect broken :doc:`foo`
  scripts/documentation-file-ref-check: don't parse Next/ dir
  LICENSES: Rename other to deprecated
  LICENSES: Clearly mark dual license only licenses
  docs: Don't reference the ZLib license in license-rules.rst
  docs/vm: Minor editorial changes in the THP and hugetlbfs
  docs/vm: add documentation of memory models
  doc:it_IT: translation alignment
  doc: fix typo in PGP guide
  dontdiff: update with Kconfig build artifacts
  docs/zh_CN: fix typos in 1.Intro.rst file
  docs/zh_CN: redirect CoC docs to Chinese version
  doc: mm: migration doesn't use FOLL_SPLIT anymore
  docs: doc-guide: remove the extension from .rst files
  doc: kselftest: Fix KBUILD_OUTPUT usage instructions
  docs: trace: fix some Sphinx warnings
  docs: speculation.txt: mark example blocks as such
  docs: ntb.txt: add blank lines to clean up some Sphinx warnings
  ...
</content>
</entry>
<entry>
<title>doc: kselftest: Fix KBUILD_OUTPUT usage instructions</title>
<updated>2019-04-19T18:44:21Z</updated>
<author>
<name>Shuah Khan</name>
</author>
<published>2019-04-17T23:34:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9f436194f98547a847ab2529861d7cf22273f32c'/>
<id>urn:sha1:9f436194f98547a847ab2529861d7cf22273f32c</id>
<content type='text'>
Fix KBUILD_OUTPUT usage instructions. The current documentation is
incorrect. Update and fix outdated information about summary option.
Add a reference to kselftest wiki for additional information on the
framework and tips on writing new tests.

Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>kselftest: Add test module framework header</title>
<updated>2019-04-08T22:44:20Z</updated>
<author>
<name>Tobin C. Harding</name>
</author>
<published>2019-04-05T01:58:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eebf4dd452377921e3a2635f0f5df2042470faef'/>
<id>urn:sha1:eebf4dd452377921e3a2635f0f5df2042470faef</id>
<content type='text'>
kselftest runs as a userspace process.  Sometimes we need to test things
from kernel space.  One way of doing this is by creating a test module.
Currently doing so requires developers to write a bunch of boiler plate
in the module if kselftest is to be used to run the tests.  This means
we currently have a load of duplicate code to achieve these ends.  If we
have a uniform method for implementing test modules then we can reduce
code duplication, ensure uniformity in the test framework, ease code
maintenance, and reduce the work required to create tests.  This all
helps to encourage developers to write and run tests.

Add a C header file that can be included in test modules.  This provides
a single point for common test functions/macros.  Implement a few macros
that make up the start of the test framework.

Add documentation for new kselftest header to kselftest documentation.

Acked-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Tobin C. Harding &lt;tobin@kernel.org&gt;
Signed-off-by: Shuah Khan &lt;shuah@kernel.org&gt;
</content>
</entry>
</feed>
