Merge pull request #202 from adereis/master

avocado.job: output a line break after Ctrl+C
tests/synctest: allow it to be built with debug symbols

And small fixes to make it run properly under GDB.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Merge pull request #203 from clebergnu/synctest-gdb

tests/synctest: allow it to be built with debug symbols
avocado: Move tests to example/tests

We have tests/ and selftests/ in avocado (the test runner).
The former includes examples of tests that make use of the
avocado API, and are also used to test avocado via CI.

This is confusing, as it doesn't make it clear to users that
tests are not part of the avocado framework. Since we have a
directory called examples with some other files (multiplexer,
plugins), move the tests to there (and keep using them in the CI).

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
selftests/functional: Fix unused variable

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.spec: Update avocado-tests RPM

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.spec: Update name of tests rpms from 'avocado-tests' to 'avocado-examples'

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.spec: Bump release

Given that we made the specific rpm dir change

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #204 from lmr/move-tests-examples

avocado: Move tests to example/tests
selftests: Include functional test for journal plugin.

Include a functional test for the journal plugin that
validates the database file created by the test runner.

It basically validates the job_id inside the job_info table
and the number of rows inside the test_journal table,
for a simple execution of sleeptest.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
selftests: split tests in journal plugin functional test.

Split test in two, for the functional journal plugin tests.
Using a test fixture to setup (to execute and catch JSON and journal)
and tear down (to close the database) things.
Merge pull request #205 from ruda/journal_plugin_functional_tests

selftests: Include functional test for journal plugin.
avocado/result.py: remove confusing and unused 'console_plugin' attribute

Signed-off-by: Cleber Rosa <crosa@redhat.com>
result plugins: replace the set_output_option() method

For a simpler command_line_arg_name attribute. This way, there's no
need to define a method, simply define the attribute value. It's
consistent with the attributes (enabled, etc) defined in the Plugin
class.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
result plugins: replace the set_output() method

With a simpler (and already existing) attribute. Having a method
suggests that it's going to be called multiple times, which is not
the case.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Merge pull request #206 from clebergnu/simplify_result_plugins

Simplify result plugins
journal plugin: put the journal file in the right directory

Here right directory means the top log job result directory,
along with the job id file and the job.log file, etc.

Looks like there was a change in the meaning of `job.logdir`
and because of that, the journal plugin was saving the file
one directory up the tree.

Also, we needed the job logdir as part of the test state, just
like we need the job unique id.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
docs/index: Reorder contribution guide order

It should go last in the list of topics, preceding only
the API docs.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
docs: Updating test references

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
vm plugin: use test states instead of test instances

As it's the norm now with other plugins.

Signed-off-by: Cleber Rosa <crosa@redhat.com>