1. 27 9月, 2016 1 次提交
  2. 07 12月, 2015 1 次提交
    • C
      virtualenv: allow tests to run properly on them · 63aa6df6
      Cleber Rosa 提交于
      While going through the dependency list (requirements*.txt files) and
      performing our self tests out of virtual environments, I noticed that
      some tests are run outside the virtual environments.
      
      The reason is that, even though the virtual environment is activated
      for the test session (and say, `which python` gives `/venv/bin/python`),
      we have hard coded `/usr/bin/python` in most places.
      
      According to the some discussions on the virtualenv project itself[1],
      a quick solution is to revert to the also common `/usr/bin/env python`
      way of pointing to the Python interpreter.
      
      [1] - https://github.com/pypa/virtualenv/issues/124Signed-off-by: NCleber Rosa <crosa@redhat.com>
      63aa6df6
  3. 19 6月, 2015 1 次提交
  4. 18 6月, 2015 1 次提交
  5. 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
  6. 16 5月, 2015 1 次提交
    • L
      examples.tests: Adjust tests to use new params API · 8e2ddf58
      Lukáš Doktor 提交于
      This patch modifies all example tests to use the new API. It uses the
      default path, which is `*`, which matches the mux-entry paths ONLY.
      In order to get the values it's necessarily to inject the YAML files
      into the mux-entry path, by default `/test`, eg:
      
          avocado run sleeptest -m /test:examples/tests/sleeptest.py.data/
          sleeptest.yaml
      
      It might seen as a bit more complicated to execute, but it's definitely
      easier for maintaining and combining existing YAML files. To execute
      matrix of tests you simply inject them into 2 different `/test` children,
      eg: `-m /test/by_length:lengths.yaml /test/by_method:methods.yaml`.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      8e2ddf58
  7. 24 4月, 2015 2 次提交
  8. 08 4月, 2015 1 次提交
  9. 07 4月, 2015 1 次提交
  10. 22 1月, 2015 1 次提交
  11. 28 11月, 2014 1 次提交
  12. 12 9月, 2014 1 次提交
    • L
      avocado: Move tests to example/tests · c04cbf42
      Lucas Meneghel Rodrigues 提交于
      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: NLucas Meneghel Rodrigues <lmr@redhat.com>
      c04cbf42
  13. 29 8月, 2014 1 次提交
  14. 21 8月, 2014 2 次提交
  15. 29 7月, 2014 1 次提交
    • L
      tests: Flatten tests directory · 3cfe0a19
      Lucas Meneghel Rodrigues 提交于
      We want avocado tests to not require specific directories,
      the user should be able to arrange them in the dir structure
      they see fit. Also, if a test requires data, we suppose their
      data dir is located in the same directory as the source file,
      with the name:
      
      [modulename].data
      
      Re arrange the test dir to reflect this new structure.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      3cfe0a19
  16. 07 7月, 2014 1 次提交
  17. 15 5月, 2014 4 次提交
  18. 25 4月, 2014 1 次提交
  19. 23 4月, 2014 1 次提交
  20. 10 4月, 2014 1 次提交
  21. 26 3月, 2014 1 次提交
  22. 12 3月, 2014 1 次提交
  23. 07 3月, 2014 1 次提交