1. 18 12月, 2015 1 次提交
    • C
      Old Plugin Architecture: disable legacy plugin manager completely · a0d4cd77
      Cleber Rosa 提交于
      At this point, no plugin support exists in Avocado. This is in
      preparation for the new plugin code to be cleanly introduced.
      
      The plugins that play a role in the plugin architecture have
      been removed, since they wouldn't be functional under the new
      plugin management code. The ones that are add extra functionality
      to Avocado have been kept, and will be ported to the new
      architecture.
      
      Also, most of the functional tests have been temporarily disabled.
      The reason is that most of them run avocado, which depends on the
      run command, which in turn, depends on the plugin archicture code.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      a0d4cd77
  2. 30 10月, 2015 1 次提交
    • C
      Exit codes: use symbolic names in functional self tests · 49fcd32c
      Cleber Rosa 提交于
      Since we define the meaning of each exit code, we should be using that
      ourselves.
      
      Functional tests have been coded using literal values, and there may
      be a good reason for that: proving that the API stands.  But there's a
      big issue: we have not declared those codes as some kind of an
      external API and guarantee stability. Also the subsequent changes in
      this series actually change the meaning and values of those.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      49fcd32c
  3. 30 9月, 2015 1 次提交
  4. 03 9月, 2015 2 次提交
    • C
      Selftests: remove evil "simple import magic" · 6149e2dc
      Cleber Rosa 提交于
      Even though I may be the one to blame about coming up with this
      "simple import magic", I believe it was a mistake and we should get
      rid of them.
      
      There are a couple of other ways to actually do development out of
      of a source tree, including running unittests that do not require
      this amount of boiler plate code. Examples include just setting
      the PYTHONPATH environment variable to actually run (setuptools based)
      `python setup.py develop`.
      
      The little bits of what looks like the import magic that was left, is
      not really import magic. It's just that functional tests need to locate
      the Avocado source tree base directory to run the test runner from it.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      6149e2dc
    • C
      Selftests: move to adhere to unittest discover default pattern · 24d87eb4
      Cleber Rosa 提交于
      To be honest, our test code could still be kept in the same directories and
      have the same names. But I think we can improve two things here:
      
      1) Flatten a little bit the directory structure of selftests. Two path
      components are being dropped here: "all" and "avocado". So that
      "selftests/all/functional/avocado" becomes simply
      "selftests/functional".
      
      2) File names match what is, by default, recognized by unittest (the
      Standard Library module) based discovery of tests. That means that
      doc_build_test.py becomes test_doc_build.py. Not a big deal IMHO.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      24d87eb4
  5. 31 7月, 2015 1 次提交
  6. 28 7月, 2015 1 次提交
    • L
      avocado: Shorter app output · c1728093
      Lucas Meneghel Rodrigues 提交于
      Instead of putting outputs on separate lines, condensate
      test results summary into a single line. The new output
      looks like:
      
      $ avocado run passtest
      JOB ID     : f2f5060440bd57cba646c1f223ec8c40d03f539b
      JOB LOG    : /home/user/avocado/job-results/job-2015-07-27T17.13-f2f5060/job.log
      JOB HTML   : /home/user/avocado/job-results/job-2015-07-27T17.13-f2f5060/html/results.html
      TESTS      : 1
      (1/1) passtest.py:PassTest.test: PASS (0.00 s)
      RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0
      TIME       : 0.00 s
      
      We updated a few unittests in order to not depend on the
      looks of the human output anymore, since unless we are
      specifically testing for human output behavior, the unittests
      should use machine readable output. Also, the documentation
      was updated to reflect the new output layout.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      c1728093
  7. 09 6月, 2015 1 次提交
    • C
      API review: move avocado.test to avocado.core.test and expose avocado.Test · 08810698
      Cleber Rosa 提交于
      Only avocado.Test is of general interest to test writers. For that reason
      the entire test module has been moved to the avocado.core namespace.
      
      The recommended way to go about writing instrumented tests is something like:
      
         from avocado import Test
         class MyTest(Test):
            def test_foo(self):
               do_stuff()
      
      Changes from v2:
      * Fixed references in docstrings
      * Fixed refrences of avocado.test in Writing Test Guide docs
      
      Changes from v1:
      * Fixed comment typo on commit message
      * Fixed old reference of avocado.test (then test.Test) instead of
        avocado then Test in GDB docs.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      08810698
  8. 16 4月, 2015 1 次提交