summaryrefslogtreecommitdiffstats
path: root/recipes-test/virt-test/files/qemu-tests-stress-config.patch
blob: 6a2cd0e8e22a47fd421a359811070ea861fdbc68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
commit 270cc35ea5c0379df1502f2a83af992db4d65439
Author: Jonas Eriksson <jonas.eriksson@enea.com>
Date:   Fri Mar 28 08:46:49 2014 +0100

    stress: Add configuration
    
    Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
    Upstream-Status: Inappropriate [configuration]

diff --git a/qemu/tests/cfg/softlockup.cfg b/qemu/tests/cfg/softlockup.cfg
index 28e4057..1588b6a 100644
--- a/qemu/tests/cfg/softlockup.cfg
+++ b/qemu/tests/cfg/softlockup.cfg
@@ -1,12 +1,11 @@
 - softlockup: install setup unattended_install.cdrom
-    no JeOS
     only Linux
     type = softlockup
     stress_source = stress-1.0.4.tar.gz
-    stress_setup_cmd = "cd %s && tar xvf stress-1.0.4.tar.gz && cd stress-1.0.4 && ./configure && make && cd src"
+    monitor_dir = "/opt/virt-test/test-providers.d/downloads/io-github-autotest-qemu/qemu/deps/softlockup/"
     server_setup_cmd = "%s/heartbeat_slu.py --server --threshold %s --file %s --port %s --verbose --check-drift"
     client_setup_cmd = "%s/heartbeat_slu.py --client --address %s --file %s --port %s --interval 1"
-    stress_cmd  = "cd %s && cd stress-1.0.4 && cd src && nohup ./stress -c %s > /dev/null 2>&1&"
+    stress_cmd  = "sh -ec 'export dir=%s/stress-run; mkdir -p $dir; cd $dir' && nohup stress -c %s > /dev/null 2>&1 &"
     kill_monitor_cmd = "ps aux | grep heart | grep -v grep | awk '{print$2}' | xargs kill -9 > /dev/null 2>&1"
     kill_stress_cmd = "pkill -f stress > /dev/null 2>&1"
     drift_cmd = "tail -1 %s | awk '{print $7}'"