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. 16 6月, 2015 1 次提交
  7. 13 6月, 2015 1 次提交
  8. 02 6月, 2015 1 次提交
    • L
      avocado.multiplexer: Inject YAML files into /run · 3e5cbc85
      Lukáš Doktor 提交于
      This patch changes the default mux-entry to `/run` as it tends to be
      more convenient.
      
      The biggest change is that this location is used as default location
      for added YAML files. It's also used as the base when using relative
      path YAML file injection. The only way to include file into the exact
      location is to use absolute path (`/your/location`).
      
      The benefit is that single simple YAML file doesn't require any additional
      location and is in the default mux-entry location. Check the documentation
      for details.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      3e5cbc85
  9. 15 4月, 2015 1 次提交
  10. 14 4月, 2015 1 次提交
  11. 09 4月, 2015 1 次提交
    • L
      avocado.test: Add support for params with paths · 1c9eb21b
      Lukáš Doktor 提交于
      This is a testing version of params with paths support. By default
      it acts as the old Params, but you can use params.get(key, path=....)
      to utilize new-params handling.
      
      For now the PATH for relative paths is hardcoded to "/test/*" but it
      will be specifiable on the command line. I just need to pass it to the
      test which I'd like to do over "metadata" (see below) rather then adding
      it temporarily to the params and risk colisions.
      
      The code is not optimized and in order to be compatible it uses old
      concepts. Some of them I'd like to get rid of in near future:
      
      * default_params => currently used only to set default "metadata" like
        test timeout. I'd like to replace it for RW Test.metadata, which would
        be overwritten durint __init__ if params contain the keys in specific
        paths. IMO they shouldn't be shared with test params.
      * test_factory's params are currently dict with some metadata like
        wether this test is executed from directory or by uri. Again, they are
        metadata and should be handled separately. Some of them might be reused
        to params if needed, but not generaly.
      * create separated multiplexer plugin generate multiple variants
      * reconsider the need for "objects", "object_params" and "object_counts"
      * couple of others I forget to mention...
      
      There is one real change I made, I got rid of ${key}_${type} to specify
      type of the argument. Yaml supports any type we might like and by
      our convention all tests should be written to work without any params.
      Thus this is IMO more confusing, than beneficial. But if you insist
      I can copy&paste the support for it.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      1c9eb21b
  12. 19 3月, 2015 1 次提交
    • L
      avocado.core.output: Make stream logging to point to stdout · 43a4751d
      Lucas Meneghel Rodrigues 提交于
      It is more natural [1] that output of --show-job-log goes to
      stdout than stderr. Let's change that behavior and update
      unittests accordingly.
      
      [1] Natural in this sense is defined by the user's expectation -
          when setting avocado to --show-job-log, you expect that the
          job log *is* in the application's stdout.
      
      Changes from v1:
       * Python 2.6 constructor param for StreamHandler is strm,
         that was changed in 2.7 to be stream. Let's keep compatibility
         by using positional arguments.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      43a4751d
  13. 18 3月, 2015 1 次提交
  14. 11 3月, 2015 1 次提交
  15. 24 2月, 2015 1 次提交
  16. 17 2月, 2015 1 次提交
  17. 06 2月, 2015 1 次提交
    • R
      avocado.sysinfo: Introduce system information profilers. · bd86bebe
      Rudá Moura 提交于
      Sysinfo module now allows to define profilers, which are programs
      defined in command line, to start as a background processes and log
      the output in a proper directory. Example: vmstat 1.
      
      The profilers are started before a job execution and then, stopped at
      the end of the job. The output is stored inside `sysinfo/profile/*`
      subdirectory, in job result directory.
      
      The profilers can be customized in `avocado.conf`, section
      `sysinfo.collect`.  The default configuration define
      profilers as the following: `journalctl -f` and `vmstat 1`.
      
      This feature is turned off by default.
      Signed-off-by: NRudá Moura <rmoura@redhat.com>
      bd86bebe
  18. 03 2月, 2015 1 次提交
    • R
      selftests: Update functional tests to use --sysinfo=on|off. · 6e67db5b
      Rudá Moura 提交于
      * Use --sysinfo=off in the current functional tests. It will
      drop the total execution time of the tests.
      
      * Add a new functional test `sysinfo_tests.py` which will actually
      test if the sysinfo directory is being created or not, depending on
      the proper command line option.
      6e67db5b
  19. 19 12月, 2014 1 次提交
    • L
      avocado.multiplexer: Support for debug run · e1363982
      Lukáš Doktor 提交于
      This complex patchset adds debug version of yaml parser. It stores
      the origin of each value from environment. For list it stores
      per-slice origin too.
      
      Debug mode is NOT suitable for run-ner, only for multiplex-er. It
      corrupts the values by adding the origin after the value.
      
      The unittests were adjusted and enhanced. I added explanation into the
      examples/mux-selftests.yaml describing what the weird names stands for
      and what they test. I added couple of check which stress the old tests
      and couple of them test the new features.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      e1363982
  20. 09 12月, 2014 1 次提交
  21. 05 12月, 2014 1 次提交
  22. 02 12月, 2014 1 次提交
  23. 28 11月, 2014 1 次提交
  24. 12 9月, 2014 2 次提交
  25. 27 8月, 2014 1 次提交
  26. 23 8月, 2014 1 次提交
    • R
      avocado: Change framework to use the new multiplexer · ab7bd7af
      Rudá Moura 提交于
      That change has to be made all at once for the sake of
      bisectability. Update avocado.job and the multiplexer
      plugin with the new multiplexing library code.
      
      Also, update functional tests, the avocado sample tests
      with the new YAML based config files, and the requirements.txt
      file with the new prominent dependency of avocado, PyYAML.
      Signed-off-by: NRuda Moura <rmoura@redhat.com>
      ab7bd7af
  27. 14 8月, 2014 1 次提交
    • L
      avocado: Add NOT_FOUND test status · 0ca27c0d
      Lucas Meneghel Rodrigues 提交于
      To avoid confusion, when passing an invalid test ID
      (typo, incorrect path, alias that could not be resolved),
      introduce a new status, NOT_FOUND inside avocado, as
      well as proper handling handling for such situations.
      
      $ scripts/avocado run sbrubles
      JOB ID    : 312b690173a8f5f261d9c5cefdb8699ac0798ded
      JOB LOG   : /home/lmr/avocado/job-results/job-2014-08-14T10.02-312b690/job.log
      TESTS     : 1
      (1/1) sbrubles: NOT_FOUND (0.00 s)
      PASS      : 0
      ERROR     : 0
      FAIL      : 0
      SKIP      : 0
      WARN      : 0
      NOT FOUND : 1
      TIME      : 0.00 s
      
      Also, add a functional test for this new status.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      0ca27c0d
  28. 13 8月, 2014 1 次提交
  29. 01 8月, 2014 1 次提交
    • L
      avocado: Make tests to refer their ids · a79ae931
      Lucas Meneghel Rodrigues 提交于
      Make avocado tests to refer to their test ids (paths),
      relative to the directory you are in. For example,
      running:
      
      avocado run tests/sleeptest.py
      
      will give you
      
      DEBUG LOG: /home/lmr/avocado/logs/run-2014-07-31-12.54.01/debug.log
      TOTAL TESTS: 1
      (1/1) tests/synctest.py.1: PASS (1.93 s)
      
      Test log and data directories were changed accordingly. Now,
      if your test is synctest.py, your data dir will be called
      synctest.py.data.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      a79ae931
  30. 29 7月, 2014 2 次提交
  31. 10 7月, 2014 1 次提交
  32. 11 6月, 2014 1 次提交
  33. 15 5月, 2014 1 次提交