Avocado 是一个工具和库的集合,目的是帮助自动化测试。 人们可以将其称为具有优势的测试框架。本地测试用Python编写,它们遵循unittest(https://docs.python.org/2.7/library/unittest.html)模式,但任何可执行文件都可以作为测试。
Avocada 由以下组成:
Avocada 是建立在自动测试(http://autotest.github.io)积累的经验的基础上的,同时改善了其弱点和缺点。
具体安装可以参考下面的链接: http://avocado-framework.readthedocs.io/en/latest/GetStartedGuide.html#installing-avocado
yum install -y git gcc python-devel python-pip libvirt-devel libyaml-devel redhat-rpm-config xz-devel
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
curl https://repos-avocadoproject.rhcloud.com/static/avocado-el.repo -o /etc/yum.repos.d/avocado.repo
yum install python-avocado
avocado run /bin/true
yum install python-avocado-examples
yum install avocado-plugins-runner-vm.noarch
其它的包也可以选择安装
yum search avocado
To do so, please run avocado with the run sub-command followed by a test reference, which could be either a path to the file, or a recognizable name:
$ avocado run /bin/true JOB ID : 381b849a62784228d2fd208d929cc49f310412dc JOB LOG : $HOME/avocado/job-results/job-2014-08-12T15.39-381b849a/job.log (1/1) /bin/true: PASS (0.01 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 JOB TIME : 0.11 s JOB HTML : $HOME/avocado/job-results/job-2014-08-12T15.39-381b849a/html/results.html
Avocado-VT是一个兼容性插件,可让您执行与虚拟化相关的测试(随后称为virt-test),并且拥有Avocado提供的所有便利。这个虚拟化测试包括 KVM, libvirt
代码可以从下面下载: https://github.com/avocado-framework/avocado-vt.git
文档可以从这里获得 http://avocado-vt.readthedocs.io
**Avocado is a generic testing framework, while Avocado-VT adds support for Virtualization testing, including KVM. These come from a long heritage, including virt-test and KVM-Autotest.
To get started with Avocado-VT please visit:
http://avocado-vt.readthedocs.io
https://github.com/avocado-framework/avocado-vt
yum install avocado-plugins-vt
http://avocado-vt.readthedocs.io/en/latest/GetStartedGuide.html#installing-avocado
http://avocado-framework.readthedocs.io/en/45.0/GetStartedGuide.html#writing-a-simple-test