diff options
Diffstat (limited to 'common/scripts/kvm/test-host.sh')
-rwxr-xr-x | common/scripts/kvm/test-host.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/scripts/kvm/test-host.sh b/common/scripts/kvm/test-host.sh index 98a55bb..38556c3 100755 --- a/common/scripts/kvm/test-host.sh +++ b/common/scripts/kvm/test-host.sh @@ -1,4 +1,15 @@ #!/bin/sh +echo "Compile hackbench" +if hash curl 2>/dev/null; then + DOWNLOAD_FILE="curl -SOk" +else + DOWNLOAD_FILE="wget --progress=dot -e dotbytes=2M --no-check-certificate" +fi + +$DOWNLOAD_FILE http://people.redhat.com/mingo/cfs-scheduler/tools/hackbench.c +gcc -g -Wall -O2 -o hackbench hackbench.c -lpthread +cp hackbench /usr/bin/ + echo "Test hackbench on host" sh ./common/scripts/kvm/test-rt-tests.sh |