Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
19189e66
A
avocado
项目概览
openeuler
/
avocado
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
avocado
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
19189e66
编写于
5月 05, 2016
作者:
L
Lukáš Doktor
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'apahim/master_move_simpletests_v2'
上级
6138ea81
4230c044
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
11 deletion
+13
-11
avocado.spec
avocado.spec
+4
-2
docs/source/GetStartedGuide.rst
docs/source/GetStartedGuide.rst
+8
-5
examples/tests/failtest.sh
examples/tests/failtest.sh
+0
-0
examples/tests/passtest.sh
examples/tests/passtest.sh
+0
-0
setup.py
setup.py
+1
-4
未找到文件。
avocado.spec
浏览文件 @
19189e66
...
...
@@ -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)
...
...
docs/source/GetStartedGuide.rst
浏览文件 @
19189e66
...
...
@@ -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
...
...
examples/
simple
tests/failtest.sh
→
examples/tests/failtest.sh
浏览文件 @
19189e66
文件已移动
examples/
simple
tests/passtest.sh
→
examples/tests/passtest.sh
浏览文件 @
19189e66
文件已移动
setup.py
浏览文件 @
19189e66
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录