提交 fe3e5c19 编写于 作者: C Cleber Rosa

Merge remote-tracking branch 'lmr/add-simpletest-examples'

......@@ -100,6 +100,7 @@ examples of how to write tests on your own.
%files examples
%{_datadir}/avocado/tests
%{_datadir}/avocado/simpletests
%{_datadir}/avocado/wrappers
%changelog
......
......@@ -130,13 +130,9 @@ tests.
Let's now list a directory with a bunch of executable shell
scripts::
$ avocado list /usr/share/avocado/examples/wrappers
SIMPLE examples/wrappers/dummy.sh
SIMPLE examples/wrappers/ltrace.sh
SIMPLE examples/wrappers/perf.sh
SIMPLE examples/wrappers/strace.sh
SIMPLE examples/wrappers/time.sh
SIMPLE examples/wrappers/valgrind.sh
$ avocado list /usr/share/avocado/simpletests/
SIMPLE /usr/share/avocado/simpletests/failtest.sh
SIMPLE /usr/share/avocado/simpletests/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
......
......@@ -75,6 +75,11 @@ def get_data_files():
data_files += [(get_dir(['usr', 'share', 'avocado', 'wrappers'],
['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.
先完成此消息的编辑!
想要评论请 注册