avocado.tests: Add new test "fiotest".

Add new test "fiotest" based on Autotest fio test.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
tests.doublefree: Add 'double free' test.

Double free performs a build of doublefree.c and execution,
that triggers a double free() function calling, for the same malloc()
region.

The motivation behind this test is to catch libc errors and log inside
Avocado execution (see bug #79).

Signed-off-by: Ruda Moura <rmoura@redhat.com>
avocado.plugins.xunit: Fix incorrect double quoting

The extra double quotes left by mistake in the error
reporting code made the XML invalid. Fix that, and make
sure it stays that way with follow up functional tests.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
selftests/functional: Add xunit plugin functional tests

Run avocado with the xunit output plugin, parsing and
verifying the sanity of the outputs.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #85 from ruda/doublefree_test

tests.doublefree: Add 'double free' test.
selftests/functional: Add output tests

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
.travis.yml: Install C toolchain in Travis's VM

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #87 from avocado-framework/doublefree-functional

Doublefree functional
avocado.utils.crypto: Fix return value of get_random_string
tests: Add trinity wrapper

Trinity is a popular linux system call wrapper

http://codemonkey.org.uk/projects/trinity/

By implementing it we noticed a number of shortcomings
with avocado that have to be fixed in order to provide
a smoother developer experience.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #86 from avocado-framework/fix-xunit-bug

Fix xunit bug
Merge pull request #76 from avocado-framework/trinity

tests: Add trinity wrapper
avocado.test: If main test action fails, cleanup still needs to be executed

This was quite the brown paper bag bug I made: If the
main action fails, we need to call cleanup() no matter
what.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
selftests/functional: Verify that cleanup is called on action failure

So we don't incur in the bug we just fixed.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #88 from avocado-framework/fix-cleanup

avocado.test: If main test action fails, cleanup still needs to be execu...
Merge pull request #82 from ruda/fio_test

avocado.tests: Add new test "fiotest".
avocado.core.output: Fix incorrect exception handling in get_paginator()

The actual exception we're throwing in process.find_command
is process.CmdNotFoundError.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.core.data_dir: Expand ~ to user's home

When reading paths, expand paths that begins with ~ to
user's home directory, like shell expansion do.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
Merge pull request #90 from ruda/expanduser

avocado.core.data_dir: Expand ~ to user's home
avocado.core.output: Fix incorrect exception handling in get_paginator()

The actual exception we're throwing in process.find_command
is process.CmdNotFoundError.

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