From Fedora Project Wiki

(Added note that test reporting has known issues)
(update instructions again to say to use submit=authenticated now it should work again)
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
|setup=
|setup=
<ol type="l">
<ol type="l">
<li>Ensure the {{package|gcc}}, {{package|git}} and {{package|python3-fedora}} packages are installed. For submission of test results make sure you have the package '''python3-fedora''' installed.</li>
<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>
<pre>
$ sudo dnf install gcc git python3-fedora
$ sudo dnf install gcc git python3-openidc-client
</pre>
</pre>
<li>Clone the kernel-tests repository:
<li>Clone the kernel-tests repository:
Line 33: Line 33:
$ nano .config
$ nano .config
</pre>
</pre>
Look for lines with "'''submit='''" and "'''username='''" and set these settings to "submit=authenticated" and "username=<your FAS login without quotes>".<br>
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>
Optionally, if you use the proprietary Nvidia driver, look for the line "'''thirdparty=y'''" and uncomment it.<br>
'''Note:''' uploading the results is not working as intended. See bug report on pagure: https://pagure.io/kernel-tests/issue/50. Submitting anonymously should work.
</li>
</li>
</ol>
</ol>

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

  1. Ensure the gcc, git and python3-openidc-client packages are installed. For submission of test results make sure you have the package python3-openidc-client installed.
  2. $ sudo dnf install gcc git python3-openidc-client
    
  3. Clone the kernel-tests repository:
    $ git clone https://pagure.io/kernel-tests.git
    
  4. 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
    
  5. Allow testsuite to make their heap memory executable
    $ sudo semanage boolean -m --on selinuxuser_execheap
    
  6. cd into the kernel-tests directory
    $ cd kernel-tests
    
  7. 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.

How to test

  1. Run the default test suite:
    $ sudo ./runtests.sh
    
  2. Optionally, run the performance test suite:
    $ sudo ./runtests.sh -t performance
    
  3. Turn SELinux boolean selinuxuser_execheap back to default state.
    $ sudo semanage boolean -m --off selinuxuser_execheap
    

Expected Results

  1. Both runs of the test suite should result in PASS.