From Fedora Project Wiki
Lhirlimann (talk | contribs) (gcc is installed in step1) |
Churchyard (talk | contribs) (https://bugzilla.redhat.com/show_bug.cgi?id=1724219) |
||
Line 13: | Line 13: | ||
</pre> | </pre> | ||
</li> | </li> | ||
<li>You need '''make''', '''libtirpc''' | <li>You need '''make''', '''libtirpc''','''libtirpc-devel''' and '''policycoreutils-python-utils''' in order to run the tests, if it is not already installed. | ||
<pre> | <pre> | ||
$ sudo dnf install make libtirpc libtirpc-devel | $ sudo dnf install make libtirpc libtirpc-devel policycoreutils-python-utils | ||
</pre> | |||
</li> | |||
<li> Allow testsuite to make their heap memory executable | |||
<pre> | |||
$ sudo semanage boolean -m --on selinuxuser_execheap | |||
</pre> | </pre> | ||
</li> | </li> | ||
Line 41: | Line 46: | ||
<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> |
Revision as of 12:25, 29 November 2019
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-fedora
packages are installed. For submission of test results make sure you have the package python3-fedora installed. - Clone the kernel-tests repository:
$ git clone https://pagure.io/kernel-tests.git
- You need make, libtirpc,libtirpc-devel and policycoreutils-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 $ vim .config
Look for lines with "submit=" and "username=" and set these settings to "submit=authenticated" and "username=<your FAS login without quotes>".
$ sudo dnf install gcc git python3-fedora
How to test
- Run the default test suite:
$ sudo ./runtests.sh
- 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.