avocado.utils.build: introduce env parameter to make()

This way users can specify environment variables (such as CFLAGS,
which is very common) to be used when building something using make.

Signed-off-by: Ademar de Souza Reis Jr <areis@redhat.com>
tests/doublefree.py: build with debug symbols

So that we can use it to showcase gdb support

Signed-off-by: Ademar de Souza Reis Jr <areis@redhat.com>
avocado.external: Indentation fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
setup.py: Add missing external module
Merge pull request #200 from avocado-framework/trivial-fixes-12

Trivial fixes 12
avocado: Bump version to 0.12.0

Our new upstream version.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #201 from adereis/master

uitls.build.make(): support env variables (such as CFLAGS)
avocado.job: output a line break after Ctrl+C

Otherwise, the rest of the console UI ("PASS: ...") will stay in the same
line as the throbber.

Before the patch:
    ...
    TESTS     : 1
    (1/1) linuxbuild.py:  ^CPASS      : 0
    ERROR     : 0
    FAIL      : 0
    ...

After:
    ...
    TESTS     : 1
    (1/1) linuxbuild.py:  ^C
    PASS      : 0
    ERROR     : 0
    ...

Signed-off-by: Ademar de Souza Reis Jr <areis@redhat.com>
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.