ltp: Update to latest LTP 20130503.

This patch updates the version of LTP from 20130109 to 20130503.

Signed-off-by: Vinson Lee <vlee@twitter.com>
Merge pull request #15 from vinsonlee/ltp-20130503

ltp: Update to latest LTP 20130503.
kernelinstall: Make kernelinstall test script works for rhel guest.

RHEL guest is different from fedora guest.
This patch make kernelinstall works for rhel guest.

This patch also correct import link.

Signed-off-by: Feng Yang <fyang@redhat.com>
cgroup.cgroup: Merge autotest and virttest cgroup_utils library

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
cgroup.cgroup: Change setup to initialize

Setup is called only once to unzip/compile projects. Cgroups needs
to be initialized each time it's executed so it shoule use
initialize() instead.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Add check_patch.py and related libraries to autotest-client-tests

This should help reviewing new patches. The code is based on virt-test
check_patch and the links to github were changed.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Update memory related functions

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
kernel install: Trivial indentation fix

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tests.tiobench: add patch to fix compile error

Rename function aligned_alloc to aligned_alloc_t to avoid conflict to
system function;

Signed-off-by: Xu Tian <xutian@redhat.com>
cgroup_test: Add device file create rate test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
cgroup_test: Add memory migrate test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Fixing permissions on cgroup test files
add gitignore config

This is required since client tests are now in separate git repo.
sparse: update sparse test

- Update source: sparse-2006-04-28 -> sparse-2013-06-26
- Store number of errors and warnings as keyvalue, useful for later analysis
- Add configurable build target, usefull for subsystem checking

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Add new test module smatch - New kernel source analizer testsuite

Smatch is source analizer similar sparse with number of usefull features
- catch undefined variables
- resource leackage
- spinlock/mutex leackage

After the compile finishes logs stored to smatch_log and smatch_error
key values = [ 'warnings', 'errors' ]

Original smatch log:
Smatch - The Source Matcher, brought to you by the good folks at KernelJanitors.

Smatch has been completely rewritten in C and now uses sparse as a C parser
instead of gcc as a C parser. The new URL is http://repo.or.cz/w/smatch.git.
If you are using smatch against the kernel the command is:
        make CHECK="~/path/to/smatch/smatch -p=kernel" C=1 \
                bzImage modules | tee warns.txt
2.3.37 and after: Please set "CONFIG_DYNAMIC_DEBUG=n". That feature uses
declared label things that mess up Smatch's flow analysis.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Add test module regression - generic regression test suite

Accept two directories with keyval files (usualy result directories for a test)
and compare given fields according to given pattern.

EXAMPLE: ext4 patch queue validation scenario

 Following example run two static analyzers('smatch' and 'sparse') on vanila
 kernel.
 Step 1: Each analizer produces keyvalue file with number of warnings,errors
 Step 2: Apply patches against vanila kernel and run analizers one more time.
 Step 3: Compare number of warnings and errors collected from vanilla and
         patched kernel and fail if number of errors increased.

I know that we already has some functionality in TKO, but it is too complex
for some usecases. And if we have regression helper which works as simle test
this will perfectly cover patch validation scenario for most develpers.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
cgroup_test: Separate run cgroup_test

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>