clock drift with ntp test: Fix drift file parsing

- int("1.1") is an error in python; if the input is a string, it cannot
  contain decimals.

- The contents of the drift file can be negative, make sure to convert
  the number to the absolute value before comparing with 20.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
clock drift with ntp: Avoid using taskset -c

Usage of -c is not portable, just create the bit mask using python/bash.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
qemu.tests: Add new case check_coredump

    Use guestfs to mount guest image on host mountpoint. And check
    if there is core file in Linux images, bsod in Windows images.

    changelog:
      from V6:
        1. change the past tense to present tense
        2. add timestamp if find the crash directory and file
      from V5:
        1. change the docstring.
        2. change err_msg variable names.
      from V4:
        1. For those image could not be mounted, log the image name.
           And continute to check rest files, do not raise error.
        2. Add more docstring to the functions.
        3. Change the variable names to avoid confusion with method name
      from V3:
        1. remove the redundant slash sign
      from V2:
        1. remove '\n' in the log
        2. change *.qcow2 to *.* to filter all the images
      from V1:
        1. check all the images under the image directory
        2. copy the coredump file to debug dir

Signed-off-by: Xiangmin Han <xhan@redhat.com>
Merge pull request #23 from Xiangmin/add_check_coredump

qemu.tests: Add new case check_coredump
qemu.tests.qemu_disk_img: Do not use -c parameter in md5sum command

md5sum in windows guest does not support the parameter -c.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests.cfg.qemu_disk_img: Update check_files parameter.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu: Use new data_dir.get_deps_dir() to get cpu_flags in deps.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests: Add a test case for test invalid parameters in nic device

This case is designed to test the qemu behavior when it get invcalid parameters.
Qemu should quit with some warning message but not core dump.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
boot_time: Output result into keyval file

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Merge pull request #64 from zqad/display-results

boot_time: Return result if no bound given
clock_getres application: Fix build on newer gcc

Source file statements (.c, .o) needs to be before the -l calls that
include dependencies used in those source files.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
cpu_flags: Amend to CFLAGS rather than set

Do an unconditional amend to make sure that additional CFLAGS can be
added via the make command line, while retaining the CFLAGS needed for
the build.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
netperf_udp test: Use utils_netperf downloading

utils_netperf has code for downloading the netperf source, should the
input path be an URL. Remove the local function for doing this, and let
utils_netperf handle it instead.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Remove CC= from Makefiles

CC= assignments makes it impossible to supply alternate CC:s from the
command line. Additionally, CC?= does not work, as CC is set to 'cc' by
default. A possible solution might be:

ifeq ($(origin CC), default)
  CC=gcc
endif

, but seeing as cc is the preferred compiler on the target, the CC
assignment seemed unneccessary in either case.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Merge pull request #63 from zqad/fixes

Test case and portability fixes
Merge pull request #61 from FengYang/qemu_disk_img

qemu.tests.qemu_disk_img: Do not use -c parameter in md5sum command.
Merge pull request #65 from FengYang/data

qemu: Use new data_dir.get_deps_dir() to get cpu_flags in deps folder.
tsc_sync change clocksource: Update test spec

Changing the clock source on RHEL 7 should make applications change from
vsyscalls to ordinary syscalls.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Merge pull request #67 from zqad/fixes-vsyscall

tsc_sync change clocksource: Fix vsyscall check
multicast_iperf: Check if iperf is installed

To avoid doing an unnecessary download and build of iperf, check if the
application is present before building.

Killing the netserver with -9 is unneccessary and will lead to a non-0
exit status. Change to -2, and move to use the more widely available
pkill command.

Tested by running: multicast_iperf

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>