util_test.libguestfs: Support choosing disk or domain in VirtTools.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libguestfs.tests: Supplements for guestmount test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virsh.schedinfo_qemu_posix: update the way we get the cgroup path

Now we have a new way how to obtain the correct cgroup path for
specific cgroup controller for a guest.

Let's use the new way also for the "schedinfo_qemu_posix" test.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
staging.utils_cgroup: change the regexp for finding correct cgroup path

The current approach will not properly find the path for "cpu"
controller. I've updated the regexp to match the correct "cpu".

In the "get_cgroup_mountpoint" we are searching the system
cgroup mountpoint from "/proc/mounts" where there could be right
now two types of mounts:

    cgroup on /sys/fs/cgroup/cpuset type cgroup (...)
    cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (...)

The second one makes thinks a little bit harder and we have to check
if the path ends with comma or space.

In the "resolve_task_cgroup_path" the situation is similar. We are
searching the exact path of specified controller for some guest
and there are also two types of records:

    4:cpuacct,cpu:/machine/guest.libvirt-qemu/emulator
    3:cpuset:/machine/guest.libvirt-qemu/emulator

There are thins even harder then the previous case. We need to get
only the 3th part of the record with the path. For the "cpuacct"
we have to consume also the "cpu" and that's why I'm using lookahead
in the regexp instead of the simple match to be able consume always
the remaining controller part until the colon.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
qemu.test: add pktgen stress test

This patch add pktgen stress test for nic test

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
qemu.test: add netperf stress test

This patch add netperf stress test for nic test

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
qemu.test: add file copy stress test

This patch add file_copy stress test, you can run multi sessions copy
during test.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
qemu.test: add multi queues number change test

This patch add change queues number test for multi queues nic.
also support change queues number test under stress.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
qemu.test :add max queues test for mq

Add test config for multi queues max queues

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
qemu.test: Modify multi queues tests

This patch rewrite multi queues tests, run netperf using netperf_stress
as a sub tests. using utils_netperf run netperf.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
fix typo of iozone_cmd

Change from V1:
    add .exe after iozone which is more safe.

Signed-off-by: Cong Li <coli@redhat.com>
Merge pull request #1184 from CongSmile/iozone

fix typo of iozone_cmd
virt.tests: fix no ip address for extra nics

Some guest (eg, sles, ubt) don't configure IP address for extra nics and
ping.multi_nic always failed because no IP for extra nic; fix this issue
by send pre_cmd to guest for asking IP from dhcp server before start test;

Signed-off-by: Xu Tian <xutian@redhat.com>
Merge pull request #1188 from xutian/multi_nic_ping

virt.tests: fix no ip address for extra nics
virttest: Add disable for warning color

Warning color is added but missed in disable. This will cause trouble
when pipe stdout into file.

Signed-off-by: Hao Liu <hliu@redhat.com>
autotest regression test: default to master branch

Since the next branch does not exist anymore.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
autotest regression test: fetch the installer script from the chosen branch

If using the github repo URL. If not, default to the script on the github
master branch.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Merge pull request #1191 from Hao-Liu/fix_warn_color

virttest: Add disable for warning color
virt: Fix hanging tail_threads which are created by recreating env.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Merge pull request #1157 from yumingfei/enhance_guestmount

Libguestfs: supplements of guestmount test.