Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
40b58b4c
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,发现更多精彩内容 >>
提交
40b58b4c
编写于
6月 10, 2015
作者:
L
Lucas Meneghel Rodrigues
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #656 from clebergnu/doc_review_3rd_round
Documentation Review (3rd round)
上级
521ca060
21ea55a3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
128 addition
and
125 deletion
+128
-125
docs/source/ReferenceGuide.rst
docs/source/ReferenceGuide.rst
+127
-7
docs/source/ResultsSpecification.rst
docs/source/ResultsSpecification.rst
+0
-116
docs/source/WritingTests.rst
docs/source/WritingTests.rst
+1
-1
docs/source/index.rst
docs/source/index.rst
+0
-1
未找到文件。
docs/source/ReferenceGuide.rst
浏览文件 @
40b58b4c
...
...
@@ -11,15 +11,18 @@ This guide presents information on the Avocado basic design and its internals.
Job ID
======
The Job ID is a
SHA1 string that has some information encoded:
The Job ID is a
random SHA1 string that uniquely identifies a given job.
* Hostname
* ISO timestamp
* 64 bit integer
The full form of the SHA1 string is used is most references to a job::
The idea is to have a unique identifier that can be used for job data, for
the purposes of joining on a single database results obtained by jobs run
on different systems.
$ avocado run sleeptest
JOB ID : 49ec339a6cca73397be21866453985f88713ac34
...
But a shorter version is also used at some places, such as in the job
results location::
JOB LOG : $HOME/avocado/job-results/job-2015-06-10T10.44-49ec339/job.log
.. _test-types:
...
...
@@ -104,4 +107,121 @@ diagram below shows how Avocado analyzes a file and decides what to do with
it:
.. figure:: diagram.png
Results Specification
=====================
On a machine that executed tests, job results are available under
``[job-results]/job-[timestamp]-[short job ID]``, where ``logdir`` is the configured Avocado
logs directory (see the data dir plugin), and the directory name includes
a timestamp, such as ``job-2014-08-12T15.44-565e8de``. A typical
results directory structure can be seen below ::
$HOME/avocado/job-results/job-2014-08-13T00.45-4a92bc0/
├── id
├── job.log
├── results.json
├── results.xml
├── sysinfo
│ ├── post
│ │ ├── brctl_show
│ │ ├── cmdline
│ │ ├── cpuinfo
│ │ ├── current_clocksource
│ │ ├── df_-mP
│ │ ├── dmesg_-c
│ │ ├── dmidecode
│ │ ├── fdisk_-l
│ │ ├── gcc_--version
│ │ ├── hostname
│ │ ├── ifconfig_-a
│ │ ├── interrupts
│ │ ├── ip_link
│ │ ├── ld_--version
│ │ ├── lscpu
│ │ ├── lspci_-vvnn
│ │ ├── meminfo
│ │ ├── modules
│ │ ├── mount
│ │ ├── mounts
│ │ ├── numactl_--hardware_show
│ │ ├── partitions
│ │ ├── scaling_governor
│ │ ├── uname_-a
│ │ ├── uptime
│ │ └── version
│ └── pre
│ ├── brctl_show
│ ├── cmdline
│ ├── cpuinfo
│ ├── current_clocksource
│ ├── df_-mP
│ ├── dmesg_-c
│ ├── dmidecode
│ ├── fdisk_-l
│ ├── gcc_--version
│ ├── hostname
│ ├── ifconfig_-a
│ ├── interrupts
│ ├── ip_link
│ ├── ld_--version
│ ├── lscpu
│ ├── lspci_-vvnn
│ ├── meminfo
│ ├── modules
│ ├── mount
│ ├── mounts
│ ├── numactl_--hardware_show
│ ├── partitions
│ ├── scaling_governor
│ ├── uname_-a
│ ├── uptime
│ └── version
└── test-results
└── tests
├── sleeptest.py.long
│ ├── data
│ ├── debug.log
│ └── sysinfo
│ ├── post
│ └── pre
├── sleeptest.py.medium
│ ├── data
│ ├── debug.log
│ └── sysinfo
│ ├── post
│ └── pre
└── sleeptest.py.short
├── data
├── debug.log
└── sysinfo
├── post
└── pre
20 directories, 59 files
From what you can see, the results dir has:
1) A human readable ``id`` in the top level, with the job SHA1.
2) A human readable ``job.log`` in the top level, with human readable logs of
the task
3) A machine readable ``results.xml`` in the top level, with a summary of the
job information in xUnit format.
4) A top level ``sysinfo`` dir, with sub directories ``pre`` and ``post``, that store
sysinfo files pre job and post job, respectively.
5) Subdirectory ``test-results``, that contains a number of subdirectories
(tagged testnames). Those tagged testnames represent instances of test
execution results.
Test execution instances specification
--------------------------------------
The instances should have:
1) A top level human readable ``test.log``, with test debug information
2) A ``sysinfo`` subdir, with sub directories ``pre`` and ``post``, that store
sysinfo files pre test and post test, respectively.
3) A ``data`` subdir, where the test can output a number of files if necessary.
.. [#f1] Avocado plugins can introduce additional test types.
docs/source/ResultsSpecification.rst
已删除
100644 → 0
浏览文件 @
521ca060
=====================
Results Specification
=====================
On a machine that executed tests, job results are available under
``[job-results]/job-[timestamp]-[short job ID]``, where ``logdir`` is the configured Avocado
logs directory (see the data dir plugin), and the directory name includes
a timestamp, such as ``job-2014-08-12T15.44-565e8de``. A typical
results directory structure can be seen below ::
$HOME/avocado/job-results/job-2014-08-13T00.45-4a92bc0/
├── id
├── job.log
├── results.json
├── results.xml
├── sysinfo
│ ├── post
│ │ ├── brctl_show
│ │ ├── cmdline
│ │ ├── cpuinfo
│ │ ├── current_clocksource
│ │ ├── df_-mP
│ │ ├── dmesg_-c
│ │ ├── dmidecode
│ │ ├── fdisk_-l
│ │ ├── gcc_--version
│ │ ├── hostname
│ │ ├── ifconfig_-a
│ │ ├── interrupts
│ │ ├── ip_link
│ │ ├── ld_--version
│ │ ├── lscpu
│ │ ├── lspci_-vvnn
│ │ ├── meminfo
│ │ ├── modules
│ │ ├── mount
│ │ ├── mounts
│ │ ├── numactl_--hardware_show
│ │ ├── partitions
│ │ ├── scaling_governor
│ │ ├── uname_-a
│ │ ├── uptime
│ │ └── version
│ └── pre
│ ├── brctl_show
│ ├── cmdline
│ ├── cpuinfo
│ ├── current_clocksource
│ ├── df_-mP
│ ├── dmesg_-c
│ ├── dmidecode
│ ├── fdisk_-l
│ ├── gcc_--version
│ ├── hostname
│ ├── ifconfig_-a
│ ├── interrupts
│ ├── ip_link
│ ├── ld_--version
│ ├── lscpu
│ ├── lspci_-vvnn
│ ├── meminfo
│ ├── modules
│ ├── mount
│ ├── mounts
│ ├── numactl_--hardware_show
│ ├── partitions
│ ├── scaling_governor
│ ├── uname_-a
│ ├── uptime
│ └── version
└── test-results
└── tests
├── sleeptest.py.long
│ ├── data
│ ├── debug.log
│ └── sysinfo
│ ├── post
│ └── pre
├── sleeptest.py.medium
│ ├── data
│ ├── debug.log
│ └── sysinfo
│ ├── post
│ └── pre
└── sleeptest.py.short
├── data
├── debug.log
└── sysinfo
├── post
└── pre
20 directories, 59 files
From what you can see, the results dir has:
1) A human readable ``id`` in the top level, with the job SHA1.
2) A human readable ``job.log`` in the top level, with human readable logs of
the task
3) A machine readable ``results.xml`` in the top level, with a summary of the
job information in xUnit format.
4) A top level ``sysinfo`` dir, with sub directories ``pre`` and ``post``, that store
sysinfo files pre job and post job, respectively.
5) Subdirectory ``test-results``, that contains a number of subdirectories
(tagged testnames). Those tagged testnames represent instances of test
execution results.
Test execution instances specification
======================================
The instances should have:
1) A top level human readable ``test.log``, with test debug information
2) A ``sysinfo`` subdir, with sub directories ``pre`` and ``post``, that store
sysinfo files pre test and post test, respectively.
3) A ``data`` subdir, where the test can output a number of files if necessary.
docs/source/WritingTests.rst
浏览文件 @
40b58b4c
...
...
@@ -64,7 +64,7 @@ Each test instance provides a so called ``whiteboard``. It that can be accessed
through ``self.whiteboard``. This whiteboard is simply a string that will be
automatically saved to test results (as long as the output format supports it).
If you choose to save binary data to the whiteboard, it's your responsibility to
encode
d
it first (base64 is the obvious choice).
encode it first (base64 is the obvious choice).
Building on the previously demonstrated ``sleeptest``, suppose that you want to save the
sleep length to be used by some other script or data analysis tool::
...
...
docs/source/index.rst
浏览文件 @
40b58b4c
...
...
@@ -11,7 +11,6 @@ Contents:
GetStartedGuide
WritingTests
Configuration
ResultsSpecification
MultiplexConfig
Plugins
OutputPlugins
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录