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.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>
time drift test: Avoid build if available

Tested by running: check_clock_offset.with_syscall

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
pipetest application: Avoid building if available

Tested by running: ipi_x2apic

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