From Fedora Project Wiki

(python3-fedora)
No edit summary
 
(8 intermediate revisions by 6 users not shown)
Line 4: Line 4:
|setup=
|setup=
<ol type="l">
<ol type="l">
<li>Ensure the {{package|gcc}}, {{package|git}} and {{package|python-fedora}} packages are installed</li>
<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>
<pre>
$ sudo dnf install gcc git python3-fedora
</pre>
<li>Clone the kernel-tests repository:
<li>Clone the kernel-tests repository:
<pre>
<pre>
Line 10: Line 13:
</pre>
</pre>
</li>
</li>
<li>For submission of test results make sure you have the package '''python-fedora''' installed ('''python3-fedora''' on Fedora 29/Rawhide)
<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-fedora
$ sudo dnf install make libtirpc libtirpc-devel policycoreutils-python-utils
</pre>
</pre>
</li>
</li>
<li>You need '''gcc''', '''make''', '''libtirpc''' and '''libtirpc-devel''' in order to run the tests, if it is not already installed
<li> Allow testsuite to make their heap memory executable
<pre>
<pre>
$ sudo dnf install gcc make libtirpc libtirpc-devel
$ 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
$ vim .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>".
Look for lines with "'''submit='''" and "'''username='''" and set these settings to "submit=authenticated" and "username=<your FAS login without quotes>".<br>
Optionally, if you use the proprietary Nvidia driver, look for the line "'''thirdparty=y'''" and uncomment it.
</li>
</li>
</ol>
</ol>
Line 40: Line 44:
</pre>
</pre>
</li>
</li>
<li>Run the performance test suite:
<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 16:22, 20 September 2021

Description

This test case tests Package-x-generic-16.pngkernel using the kernel regression test suite. For details about the test suite, see https://fedoraproject.org/wiki/KernelTestingInitiative.

Setup

  1. Ensure the Package-x-generic-16.pnggcc, Package-x-generic-16.pnggit and Package-x-generic-16.pngpython3-fedora packages are installed. For submission of test results make sure you have the package python3-fedora installed.
  2. $ sudo dnf install gcc git python3-fedora
    
  3. Clone the kernel-tests repository:
    $ git clone https://pagure.io/kernel-tests.git
    
  4. You need Package-x-generic-16.pngmake, Package-x-generic-16.pnglibtirpc, Package-x-generic-16.pnglibtirpc-devel and Package-x-generic-16.pngpolicycoreutils-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 lines with "submit=" and "username=" and set these settings to "submit=authenticated" and "username=<your FAS login without quotes>".
    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.