From Fedora Project Wiki

No edit summary
No edit summary
Line 2: Line 2:
|description=This test case tests the tuned-adm functionality.
|description=This test case tests the tuned-adm functionality.
|setup=
|setup=
# Check that you have {{package|tuned}} installed:
# Check that you have {{package|tuned}} version 2 installed:
#:<pre>$ rpm -q tuned</pre>
#:<pre>$ rpm -q tuned</pre>
#:There must be installed tuned version 2 (not 1).
#* If not install it:
#* If not install it:
#:<pre># yum install tuned</pre>
#:<pre># yum install tuned</pre>
|actions=
|actions=
# List available profiles:
# Start tuned (via systemd):
#:<pre># systemctl start tuned.service</pre>
# List all available profiles:
#:<pre># tuned-adm list</pre>
#:<pre># tuned-adm list</pre>
# Try to switch between profiles, e.g. for laptop-battery-powersave profile:
# Try to switch between profiles, e.g. for ''powersave'' profile:
#:<pre># tuned-adm profile laptop-battery-powersave</pre>
#:<pre># tuned-adm profile powersave</pre>
# Check if the profile was really set by:
# Check if the profile was really set by:
#:<pre># tuned-adm active</pre>
#:<pre># tuned-adm active</pre>
# Try several other profiles.
# Try several other profiles.
# When done switch tuned completely off by:
# When done switch tuned completely off by:
#:<pre># tuned-adm off</pre>
#:<pre># systemctl stop tuned.service</pre>
# Check if the tuned process is not left running by:
# Check if the tuned process is not left running by:
#:<pre># pgrep tuned</pre>
#:<pre># pgrep tuned</pre>

Revision as of 14:15, 2 April 2012

Description

This test case tests the tuned-adm functionality.

Setup

  1. Check that you have tuned version 2 installed:
    $ rpm -q tuned
    There must be installed tuned version 2 (not 1).
    • If not install it:
    # yum install tuned

How to test

  1. Start tuned (via systemd):
    # systemctl start tuned.service
  2. List all available profiles:
    # tuned-adm list
  3. Try to switch between profiles, e.g. for powersave profile:
    # tuned-adm profile powersave
  4. Check if the profile was really set by:
    # tuned-adm active
  5. Try several other profiles.
  6. When done switch tuned completely off by:
    # systemctl stop tuned.service
  7. Check if the tuned process is not left running by:
    # pgrep tuned

Expected Results

  1. No errors while switching profiles.
  2. No left tuned process when switched off.