1
0
Fork 0
tuned/tests/tuned-test.py
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

35 lines
1.1 KiB
Python
Executable file

#!/usr/bin/env python
#
# Copyright (C) 2008, 2009 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
import sys, os
import pluginstest, admtest
from logging import log
# importing modules from parent directory
tunedir = os.path.normpath(os.path.dirname(os.path.abspath(__file__)) + "/..")
sys.path.insert(1, tunedir);
log.section("monitoring and tuning plugins")
pt = pluginstest.PluginsTester(tunedir)
pt.run()
log.section("tuned-adm tests")
at = admtest.AdmTester()
at.run()