m (sudo for dnf) |
(update instructions again to say to use submit=authenticated now it should work again) |
||
(18 intermediate revisions by 12 users not shown) | |||
Line 4: | Line 4: | ||
|setup= | |setup= | ||
<ol type="l"> | <ol type="l"> | ||
<li>Ensure the {{package|gcc}}, {{package|git}} and {{package| | <li>Ensure the {{package|gcc}}, {{package|git}} and {{package|python3-openidc-client}} packages are installed. For submission of test results make sure you have the package '''python3-openidc-client''' installed.</li> | ||
<pre> | |||
$ sudo dnf install gcc git python3-openidc-client | |||
</pre> | |||
<li>Clone the kernel-tests repository: | <li>Clone the kernel-tests repository: | ||
<pre> | <pre> | ||
Line 10: | Line 13: | ||
</pre> | </pre> | ||
</li> | </li> | ||
<li> | <li>You need {{package|make}}, {{package|libtirpc}}, {{package|libtirpc-devel}} and {{package|policycoreutils-python-utils}} in order to run the tests, if it is not already installed. | ||
<pre> | <pre> | ||
$ sudo dnf install python- | $ sudo dnf install make libtirpc libtirpc-devel policycoreutils-python-utils | ||
</pre> | </pre> | ||
</li> | </li> | ||
<li> | <li> Allow testsuite to make their heap memory executable | ||
<pre> | <pre> | ||
$ | $ sudo semanage boolean -m --on selinuxuser_execheap | ||
</pre> | </pre> | ||
</li> | </li> | ||
Line 28: | Line 31: | ||
<pre> | <pre> | ||
$ cp config.example .config | $ cp config.example .config | ||
$ | $ nano .config | ||
</pre> | </pre> | ||
Look for | Look for the line with "'''submit='''" and set it to "submit=authenticated". Note this will mean that after the test runs, you will be directed to a web page to log in to the Fedora account system to let your result be submitted. | ||
Optionally, if you use the proprietary Nvidia driver, look for the line "'''thirdparty=y'''" and uncomment it.<br> | |||
</li> | </li> | ||
</ol> | </ol> | ||
Line 40: | Line 44: | ||
</pre> | </pre> | ||
</li> | </li> | ||
<li> | <li>Optionally, run the performance test suite: | ||
<pre> | <pre> | ||
$ sudo ./runtests.sh -t performance | $ sudo ./runtests.sh -t performance | ||
</pre> | |||
</li> | |||
<li> Turn SELinux boolean selinuxuser_execheap back to default state. | |||
<pre> | |||
$ sudo semanage boolean -m --off selinuxuser_execheap | |||
</pre> | </pre> | ||
</li> | </li> |
Latest revision as of 22:57, 26 June 2024
Description
This test case tests kernel
using the kernel regression test suite. For details about the test suite, see https://fedoraproject.org/wiki/KernelTestingInitiative.
Setup
- Ensure the
gcc
,git
andpython3-openidc-client
packages are installed. For submission of test results make sure you have the package python3-openidc-client installed. - Clone the kernel-tests repository:
$ git clone https://pagure.io/kernel-tests.git
- You need
make
,libtirpc
,libtirpc-devel
andpolicycoreutils-python-utils
in order to run the tests, if it is not already installed.$ sudo dnf install make libtirpc libtirpc-devel policycoreutils-python-utils
- Allow testsuite to make their heap memory executable
$ sudo semanage boolean -m --on selinuxuser_execheap
- cd into the kernel-tests directory
$ cd kernel-tests
- Configure automatic submission of the test results and your FAS username:
$ cp config.example .config $ nano .config
Look for the line with "submit=" and set it to "submit=authenticated". Note this will mean that after the test runs, you will be directed to a web page to log in to the Fedora account system to let your result be submitted. Optionally, if you use the proprietary Nvidia driver, look for the line "thirdparty=y" and uncomment it.
$ sudo dnf install gcc git python3-openidc-client
How to test
- Run the default test suite:
$ sudo ./runtests.sh
- Optionally, run the performance test suite:
$ sudo ./runtests.sh -t performance
- Turn SELinux boolean selinuxuser_execheap back to default state.
$ sudo semanage boolean -m --off selinuxuser_execheap
Expected Results
- Both runs of the test suite should result in PASS.