1
0
Fork 0
tuned/tests
Jan Vcelak 1afcd62f78 All changes are related to tests:
- New tests for "tuned-adm" with fake-profiles.
- Common results logging for pluginstest.py and admtest.py.
- Fixed issue with relative paths when started using "make test" or "tests/tuned-test.py".
- A bit code polishing.
- Added README.
- Added TODO.
2009-10-16 14:20:06 +02:00
..
fake-profiles All changes are related to tests: 2009-10-16 14:20:06 +02:00
admtest.py All changes are related to tests: 2009-10-16 14:20:06 +02:00
logging.py All changes are related to tests: 2009-10-16 14:20:06 +02:00
pluginstest.py All changes are related to tests: 2009-10-16 14:20:06 +02:00
README All changes are related to tests: 2009-10-16 14:20:06 +02:00
streamcapture.py All changes are related to tests: 2009-10-16 14:20:06 +02:00
TODO All changes are related to tests: 2009-10-16 14:20:06 +02:00
tuned-test.py All changes are related to tests: 2009-10-16 14:20:06 +02:00

Tests can be started with "make test" command from parent directory
or by executing "tuned-test.py" script.

The tests can not be run in completely isolated environment. You need
tuned and tuned-utils packages installed and you have to run the test
as superuser (needed for tuned-adm tests). Please note that your
settings of tuned can be changed.

What is tested

 * monitor-plugins have to implement: init(), getLoad(), cleanup()
 * tuning-plugins have to implement: init(), setTuning(), cleanup()
 * each monitor-plugin has to have it's tuning-plugin with the same
   name
 * the result of monitor's getLoad() function is passed to setTuning(),
   therefore tuning's getLoad() must not return Null
 * "tuned-adm list" correctness
 * "tuned-adm off" has to:
    - stop tuned a ktune services
    - remove (disable) tuned a ktune services
    - remove "/etc/ktune.d/tunedadm.{sh,conf}"
 * there are fake-profiles available for "tuned-adm profile <name>":
    - disabled-all
    - enabled-all
    - enabled-ktune
    - enabled-tuned
   tuned-adm has to:
    - stop/start service(s)
    - add/remove/disable service(s)
    - set up "/etc/ktune.d/tunedadm.{sh,conf}"

What is NOT tested

 * monitor-plugins getLoad() data validity
 * tuning-plugins setTuning() system setting changes