Mass spelling fixes

Using the program codespell

https://github.com/lucasdemarchi/codespell

We were able to fix a lot of spelling mistakes in the
current docstrings, comments and logged messages. Of
course, the entries were verified, and some extra manual
corrections were made.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
PEP8 mass fixes

With the help of the PEP8 script, a semi-automated clean
of the code base was made, and effectively changing some
of the coding style rules of our code base:

 * No more 2 lines spacing among functions
 * No more combined module imports

In the end, it was going to be too difficult to take
into consideration E501 (line length > 80) errors and
W601 (.has_key() is deprecated), so these were ignored,
at least for now.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Mass docstring fix

Make virt-test to have a docstring style mostly compliant with
the sphinx's [1] format, reStructured text. This means that
we have to trade all '@' tags to be ':', mostly.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Fixing the remaining PEP8 compliance problems

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
cgroup_test: Add a test for freezer subsystem

1. Confirm process's default state in cgroup.
2. Confirm process's state in cgroup after freeze it.
3. Confirm process's state in cgroup after thaw it.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
cgroup_test: Add a test for devices subsystem

1.Confirm if file cannot be created in desired device if
  this device was set to access deny by cgroup
2.Confirm if file can be created in desired device if
  this device was set to access allow by cgroup

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
client.tests: small fix for cpuflags

fixs:
    1. fix module import error
    2. correct src dir

Signed-off-by: Xu Tian <xutian@redhat.com>
Merge pull request #28 from xutian/fix_cpuflags_test

client.tests: small fix for cpuflags
cgroup_test: Check libcgroup-tool and environment before starting test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #27 from liyangfnst/cgclear_fix

cgroup_test: Check libcgroup-tool before starting test
Merge pull request #25 from liyangfnst/device_access

cgroup_test: Add a test for devices subsystem
cgroup_test: Add a test for memory resource control

1.Set limit memory to 60M
2.Execute a process in cgroup, malloc 50M, and confirm
  the memory information in cgroup
3.Execute a process in cgroup, malloc 70M, and confirm
  the memory information in cgroup

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
fio: Makes fio test more configurable.

It should keep compatibility with old version.
job defines fio job
opts defines additional options for fio test.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Merge pull request #30 from jzupka/fix_fio

fio: Makes fio test more configurable.
sleeptest_control_unittest: example unittest for a control file

This uses the autotest shared function
file_module_loader.load_module_from_file

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
virt: Updating to virt-test 2013.12.02

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt: Fix update to the latest version of the virt test repo

In fact, we were pointing out to an invalid commit of virt-test.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
cgroup_tests: Inspekt fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Introduce linux-tools/crontab

This module tests the functionality of crontab of the system. Crontab
depends upon the binary run-parts, which is used to run all scripts
under a directory.An entry in the crontab is added by creating an entry
in /etc/crontab.

The module uses the run-parts to execute a script(named cron) created under
/etc/cron.d/ and the script is made to execute every 60 seconds.The script
writes a certain string to a file (/tmp/autotest_cron-<date>).The count of
the string after t seconds decides whether the test succeeded
or not.

The two files used along with run-parts for selective execution of
scripts (jobs.allow and jobs.deny) are also covered under the test.
jobs.allow specifies the scripts to be run and deny specifies scripts
to be ignored.These conditions are also checked.

Signed-off-by: Rajeev S <rajeevs1992@gmail.com>
linux-tools: Testcase for pax archiver

Covers the following functionalities of pax

1. Create archive
2. Extract archive
3. List contents of archive
4. Copy directory structures

Signed-off-by : Rajeev S <rajeevs1992@gmail.com>