Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
f48b43ae
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,发现更多精彩内容 >>
提交
f48b43ae
编写于
6月 19, 2015
作者:
L
Lucas Meneghel Rodrigues
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #696 from ldoktor/yaml-descriptions
examples.tests: Add params descriptions
上级
5c6bd867
c5d4b1c8
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
41 addition
and
1 deletion
+41
-1
examples/tests/cabort.py
examples/tests/cabort.py
+3
-0
examples/tests/datadir.py
examples/tests/datadir.py
+2
-0
examples/tests/doublefree.py
examples/tests/doublefree.py
+2
-0
examples/tests/doublefree_nasty.py
examples/tests/doublefree_nasty.py
+2
-0
examples/tests/fiotest.py
examples/tests/fiotest.py
+3
-0
examples/tests/linuxbuild.py
examples/tests/linuxbuild.py
+3
-0
examples/tests/modify_variable.py
examples/tests/modify_variable.py
+2
-0
examples/tests/multiplextest.py
examples/tests/multiplextest.py
+2
-0
examples/tests/raise.py
examples/tests/raise.py
+3
-0
examples/tests/sleeptenmin.py
examples/tests/sleeptenmin.py
+4
-0
examples/tests/sleeptest.py
examples/tests/sleeptest.py
+3
-1
examples/tests/synctest.py
examples/tests/synctest.py
+5
-0
examples/tests/timeouttest.py
examples/tests/timeouttest.py
+2
-0
examples/tests/whiteboard.py
examples/tests/whiteboard.py
+5
-0
未找到文件。
examples/tests/cabort.py
浏览文件 @
f48b43ae
...
...
@@ -13,6 +13,9 @@ class CAbort(Test):
"""
A test that calls C standard lib function abort().
params:
:param tarball: Path to the c-source file relative to deps dir.
"""
def
setUp
(
self
):
...
...
examples/tests/datadir.py
浏览文件 @
f48b43ae
...
...
@@ -13,6 +13,8 @@ class DataDirTest(Test):
"""
Test that uses resources from the data dir.
:param tarball: Path to the c-source file relative to deps dir.
"""
def
setUp
(
self
):
...
...
examples/tests/doublefree.py
浏览文件 @
f48b43ae
...
...
@@ -14,6 +14,8 @@ class DoubleFreeTest(Test):
"""
Double free test case.
:param source: name of the source file located in deps path
"""
def
setUp
(
self
):
...
...
examples/tests/doublefree_nasty.py
浏览文件 @
f48b43ae
...
...
@@ -13,6 +13,8 @@ class DoubleFreeTest(Test):
"""
10% chance to execute double free exception.
:param source: name of the source file located in deps path
"""
__binary
=
None
# filename of the compiled program
...
...
examples/tests/fiotest.py
浏览文件 @
f48b43ae
...
...
@@ -16,6 +16,9 @@ class FioTest(Test):
stress/hardware verification.
:see: http://freecode.com/projects/fio
:param fio_tarbal: name of the tarbal of fio suite located in deps path
:param fio_job: config defining set of executed tests located in deps path
"""
def
setUp
(
self
):
...
...
examples/tests/linuxbuild.py
浏览文件 @
f48b43ae
...
...
@@ -9,6 +9,9 @@ class LinuxBuildTest(Test):
"""
Execute the Linux Build test.
:param linux_version: kernel version to be built
:param linux_config: name of the config file located in deps path
"""
def
setUp
(
self
):
...
...
examples/tests/modify_variable.py
浏览文件 @
f48b43ae
...
...
@@ -16,6 +16,8 @@ class PrintVariableTest(Test):
1) it executes C program which prints MY VARIABLE 'A' IS: 0
2) using GDB it modifies the variable to ff
3) checks the output
:param source: path to the source file relative to deps dir.
"""
__binary
=
None
# filename of the compiled program
...
...
examples/tests/multiplextest.py
浏览文件 @
f48b43ae
...
...
@@ -8,6 +8,8 @@ class MultiplexTest(Test):
"""
Execute a test that uses provided parameters (for multiplexing testing).
:param *: All params are only logged, they have no special meaning
"""
def
setUp
(
self
):
...
...
examples/tests/raise.py
浏览文件 @
f48b43ae
...
...
@@ -13,6 +13,9 @@ class Raise(Test):
"""
A test that calls raise() to signals to itself.
:param source: name of the source file located in data path
:param signal_number: Which signal number should be raised
"""
def
setUp
(
self
):
...
...
examples/tests/sleeptenmin.py
浏览文件 @
f48b43ae
...
...
@@ -11,6 +11,10 @@ class SleepTenMin(Test):
"""
Sleeps for 10 minutes
:param sleep_cycles: How many iterations should be executed
:param sleep_length: single sleep duration
:param sleep_method: what method of sleep should be used (builtin|shell)
"""
def
test
(
self
):
...
...
examples/tests/sleeptest.py
浏览文件 @
f48b43ae
...
...
@@ -9,7 +9,9 @@ from avocado import main
class
SleepTest
(
Test
):
"""
Example test for avocado.
This test sleeps for 1s by default
:param sleep_length: Sleep duration
"""
def
test
(
self
):
...
...
examples/tests/synctest.py
浏览文件 @
f48b43ae
...
...
@@ -13,6 +13,11 @@ class SyncTest(Test):
"""
Execute the synctest test suite.
:param sync_tarball: path to the tarball relative to deps dir.
:param default_symbols: whether to build with debug symbols (bool)
:param sync_length: how many data should by used in sync test
:param sync_loop: how many writes should be executed in sync test
"""
def
setUp
(
self
):
...
...
examples/tests/timeouttest.py
浏览文件 @
f48b43ae
...
...
@@ -10,6 +10,8 @@ class TimeoutTest(Test):
"""
Functional test for avocado. Throw a TestTimeoutError.
:param sleep_time: How long should the test sleep
"""
default_params
=
{
'timeout'
:
3
}
...
...
examples/tests/whiteboard.py
浏览文件 @
f48b43ae
...
...
@@ -10,6 +10,11 @@ class WhiteBoard(Test):
"""
Simple test that saves test custom data to the test whiteboard
:param whiteboard_data_file: File to be used as source for whiteboard data
:param whiteboard_data_size: Size of the generated data of the whiteboard
:param whiteboard_data_text: Text used when no file supplied
:param whiteboard_writes: How many times to copy the data into whiteboard
"""
def
test
(
self
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录