1. 07 9月, 2016 1 次提交
    • C
      HTML Result: move rendering code from core to the plugin itself · 0c619415
      Cleber Rosa 提交于
      This change removes the knowledge, and dependency, that the current
      Avocado core has of the HTML rendering code.
      
      The only user visible change is that the UI message about the
      generated HTML file now appears one line after it used to appear.  The
      reason is not because of the HTML plugin itself, but because the
      results are now generated outside the context of the job, and that is,
      chronologically a bit later than it used to be.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      0c619415
  2. 12 5月, 2016 1 次提交
    • C
      Tests time accounting: be more precise about what is being shown · 754c0a85
      Cleber Rosa 提交于
      Avocado has until now shown very simplified time information for jobs,
      and some could even say unprecise or just plain incorrect.
      
      The fact is that the time displayed in the UI (HumanResult) and also
      on the various other supported formats is the sum of the run time of
      individual tests.
      
      The problem with that is tha a job may include other actions that can
      take time, from little to substancial amounts.  This makes it clear
      that a job that say, took 30 seconds to run (although not displayed at
      this point), spent only 20 seconds actually running tests.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      754c0a85
  3. 17 3月, 2016 1 次提交
  4. 28 10月, 2015 1 次提交
    • C
      Plugins: remove external plugin support · 7b969527
      Cleber Rosa 提交于
      In preparation for the large plugin refactor, let's simplify the code ASAP
      and drop related (custom) functionality that is going to be replaced.
      
      Standard setuptools entrypoints is going to provide better capability then
      our custom code that supports external 'avocado_*.py'module loading.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      7b969527
  5. 07 10月, 2015 1 次提交
  6. 01 10月, 2015 1 次提交
  7. 13 8月, 2015 1 次提交
    • C
      Inner Runner implementation · f364a1ab
      Cleber Rosa 提交于
      In some external test suites, what is defined as a "test" can not be
      run by itself and need a specific runner script/tool.
      
      This introduces the concept of an "inner runner", that is, a custom
      test runner or tool that can deal with custom tests that do follow
      the Avocado SIMPLE test definition.
      
      This implements the Trello card:
      
       https://trello.com/c/TpXecE2n/486-introduce-inner-runner-to-avocado-run
      
      More information can be found in the man page section about it.
      
      Changes from v1:
       * removed "level" from "inner level runner" mentions
       * replicated docs from man page to "main" docs
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      f364a1ab
  8. 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
  9. 25 6月, 2015 2 次提交
  10. 16 6月, 2015 2 次提交
  11. 11 6月, 2015 1 次提交
    • R
      avocado.core.parser: Add option --config. · 4b91276e
      Rudá Moura 提交于
      Use command line --config to read a custom configuration from a file.
      Note this option is for the avocado application, so it has
      effect for all subcommands.
      
      Example:
      
      $ avocado --config /var/tmp/avocado.conf config
      Config files read (in order):
      /home/rmoura/Work/avocado/etc/avocado/avocado.conf
      /home/rmoura/Work/avocado/etc/avocado/conf.d/gdb.conf
      /var/tmp/avocado.conf
      ...
      
      Also, update man-page about the new option --config.
      Signed-off-by: NRudá Moura <rmoura@redhat.com>
      4b91276e
  12. 10 4月, 2015 1 次提交
  13. 28 3月, 2015 1 次提交
  14. 27 3月, 2015 1 次提交
  15. 20 3月, 2015 2 次提交
  16. 18 2月, 2015 1 次提交
  17. 03 2月, 2015 3 次提交
  18. 20 1月, 2015 2 次提交
  19. 17 1月, 2015 2 次提交
    • C
      Distro plugin: implement distro definition file creation · 8128fa82
      Cleber Rosa 提交于
      As a subcommand (option, really) of the plugin command. The generated
      distro file is supposed to be portable and be named canonically based
      on the name, version, release and arch.
      
      Changes from v0:
       * Return proper exit status when required command line arguments are
         missing
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      8128fa82
    • C
      Distro plugin: add a new distro plugin and basic command · 3e42c9d0
      Cleber Rosa 提交于
      At this stage, the distro plugin is very simplistic and prints the
      detected distribution of the current machine. One could algue that
      this is rather useless, but, with the component isolation work this
      command is going to be helpful for troubleshooting purposes.
      
      Also, this plugin is a placeholder where other functionality will
      live, including (but not limited to):
      
       * the ability to create "distro definition" files, akin to
         autotest's autotest-distro-def-create.
       * the ability to view "distro definition" files, akin to
         autotest's autotest-distro-def-view.
       * the ability to download "distro definition" files from a
         repository
       * (maybe) the ability to push a distro definition file to
         avocado-server. This may be delegated to a full blown REST
         client though.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      3e42c9d0
  20. 15 12月, 2014 1 次提交
  21. 11 12月, 2014 2 次提交
  22. 09 12月, 2014 1 次提交
  23. 27 11月, 2014 1 次提交
  24. 25 11月, 2014 2 次提交
    • C
      GDB: let user choose the gdbserver binary to use · 55b6acc3
      Cleber Rosa 提交于
      Developers using Avocado's GDB support may also need to use their custom
      build of gdbserver.
      
      This implements the same logic and options as the previous commit does
      for the GDB binary, including API level changes.
      
      Changes from v1:
         * use `avocado.utils.process.find_command` as the first default
           location for the gdbserver binary, falling back to the hard coded
           default of `/usr/bin/gdbserver` if that fails.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      55b6acc3
    • C
      GDB: let user choose the GDB binary to use · 7c371623
      Cleber Rosa 提交于
      Developers using Avocado's GDB support may need to use their custom
      build of GDB, or simply their system has GDB at a different location.
      So, allow users to optionally specify the path to the GDB binary.
      
      Also, allow GDB API users to pass extra options to GDB via the command
      line.
      
      Changes from v1:
         * use `avocado.utils.process.find_command` as the first default
           location for the gdb binary, falling back to the hard coded
           default of `/usr/bin/gdb` if that fails.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      7c371623
  25. 24 11月, 2014 1 次提交
    • C
      GDB: add `--gdb-prerun-commands` option to GDB plugin · e9181e13
      Cleber Rosa 提交于
      This feature allows custom GDB commands to be executed before the
      actual binary is run. What it can do then, is only limited by the
      user's goals.
      
      This is intended to allow complex applications, such as QEMU,
      to be debugged inside Avocado tests. Configuring GDB for QEMU,
      for example, involves passing signals to the application that
      would otherwise result in an event that would stop the debugger.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      e9181e13
  26. 06 11月, 2014 1 次提交
  27. 08 10月, 2014 1 次提交
  28. 06 10月, 2014 2 次提交
  29. 04 10月, 2014 1 次提交
  30. 02 10月, 2014 1 次提交