Skip to content

Commit

Permalink
Merge branch 'clebergnu-tags_v2'
Browse files Browse the repository at this point in the history
Extend test category using tags
  • Loading branch information
PraveenPenguin committed Jun 2, 2017
2 parents dc5eef9 + d4d4c49 commit e862eda
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 3 deletions.
25 changes: 22 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ This repository is dedicated to host any tests written using the avocado [1]
API. It is being initially populated with tests ported from autotest
client tests repository, but it's not limited by that.

Tests will be organized per category basis, each category with its own
directory.

Once you have the avocado installed, you can run the tests like below::

$ avocado run avocado-misc-tests/perf/stress.py
Expand All @@ -19,4 +16,26 @@ Once you have the avocado installed, you can run the tests like below::
JOB HTML : $HOME/avocado/job-results/job-2016-01-18T15.32-0018adb/html/results.html
TIME : 62.67 s


Tests are be organized per category basis, each category with its own
directory. Additionally, the tests are categorized by the use of the
following tags[2] by functional area:

* cpu - Exercises a system's CPU
* net - Exercises a system's network devices or networking stack
* storage - Exercises a system's local storage
* fs - Exercises a system's file system

Tags by architecture:

* x86_64 - Requires a x86_64 architecture
* power - Requires a Power architecture

Tags by access privileges:

* privileged - requires the test to be run with the most privileged,
unrestricted privileges. For Linux systems, this usually means the
root account

[1] https://github.com/avocado-framework/avocado
[2] http://avocado-framework.readthedocs.io/en/latest/WritingTests.html#categorizing-tests
2 changes: 2 additions & 0 deletions cpu/cpupower.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class cpupower(Test):

"""
Testing cpupower command
:avocado: tags=cpu,power,privileged
"""
def setUp(self):
if not os.path.exists('/sys/devices/system/cpu/cpu0/cpufreq'):
Expand Down
2 changes: 2 additions & 0 deletions cpu/ebizzy.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class Ebizzy(Test):
ebizzy is designed to generate a workload resembling common web application
server workloads. It is highly threaded, has a large in-memory working set,
and allocates and deallocates memory frequently.
:avocado: tags=cpu
'''

def setUp(self):
Expand Down
2 changes: 2 additions & 0 deletions cpu/linsched.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class Linsched(Test):

"""
linux-scheduler-testing Testsuite
:avocado: tags=cpu
"""

def setUp(self):
Expand Down
2 changes: 2 additions & 0 deletions cpu/pmqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class Pmqa(Test):
pmqa Testsuite these cpu test
cpufreq, cpuhotplug, cputopology
cpuidlee, thermal
:avocado: tags=cpu,privileged
"""

def setUp(self):
Expand Down
2 changes: 2 additions & 0 deletions cpu/ppc64_cpu_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
class PPC64Test(Test):
"""
Test to verify ppc64_cpu command for different supported values.
:avocado: tags=cpu,power,privileged
"""

def setUp(self):
Expand Down
2 changes: 2 additions & 0 deletions cpu/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class Sensors(Test):

"""
Test covers various command input of sensors utility(Linux monitoring sensors)
:avocado: tags=cpu,privileged
"""

@staticmethod
Expand Down

0 comments on commit e862eda

Please sign in to comment.