未验证 提交 19189e66 编写于 作者: L Lukáš Doktor

Merge remote-tracking branch 'apahim/master_move_simpletests_v2'

......@@ -7,7 +7,7 @@
Summary: Avocado Test Framework
Name: avocado
Version: 35.0
Release: 0%{?dist}
Release: 1%{?dist}
License: GPLv2
Group: Development/Tools
URL: http://avocado-framework.github.io/
......@@ -110,10 +110,12 @@ examples of how to write tests on your own.
%files examples
%{_datadir}/avocado/tests
%{_datadir}/avocado/simpletests
%{_datadir}/avocado/wrappers
%changelog
* Thu May 05 2016 Amador Pahim <apahim@redhat.com> - 35.0-1
- Removed simpletests directory
* Wed Apr 27 2016 Cleber Rosa <cleber@redhat.com> - 35.0-0
- New upstream release 35.0 (new versioning scheme)
......
......@@ -127,16 +127,19 @@ The output might look like this::
INSTRUMENTED /usr/share/avocado/tests/trinity.py
INSTRUMENTED /usr/share/avocado/tests/warntest.py
INSTRUMENTED /usr/share/avocado/tests/whiteboard.py
...
These Python files are considered by Avocado to contain ``INSTRUMENTED``
tests.
Let's now list a directory with a bunch of executable shell
scripts::
Let's now list only the executable shell scripts::
$ avocado list /usr/share/avocado/simpletests/
SIMPLE /usr/share/avocado/simpletests/failtest.sh
SIMPLE /usr/share/avocado/simpletests/passtest.sh
$ avocado list | grep ^SIMPLE
SIMPLE /usr/share/avocado/tests/env_variables.sh
SIMPLE /usr/share/avocado/tests/output_check.sh
SIMPLE /usr/share/avocado/tests/simplewarning.sh
SIMPLE /usr/share/avocado/tests/failtest.sh
SIMPLE /usr/share/avocado/tests/passtest.sh
Here, as mentioned before, ``SIMPLE`` means that those files are executables
treated as simple tests. You can also give the ``--verbose`` or ``-V`` flag to
......
......@@ -69,6 +69,7 @@ def get_data_files():
data_files += [(get_dir(['etc', 'avocado', 'scripts', 'job', 'post.d']),
['etc/avocado/scripts/job/post.d/README'])]
data_files += [(get_tests_dir(), glob.glob('examples/tests/*.py'))]
data_files += [(get_tests_dir(), glob.glob('examples/tests/*.sh'))]
for data_dir in glob.glob('examples/tests/*.data'):
fmt_str = '%s/*' % data_dir
for f in glob.glob(fmt_str):
......@@ -80,10 +81,6 @@ def get_data_files():
['wrappers']),
glob.glob('examples/wrappers/*.sh'))]
data_files += [(get_dir(['usr', 'share', 'avocado', 'simpletests'],
['simpletests']),
glob.glob('examples/simpletests/*.sh'))]
data_files.append((get_avocado_libexec_dir(), glob.glob('libexec/*')))
return data_files
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册