|
|
78a2f7 |
From 9fb4776f57de0948c5256b3b364880dced66e10d Mon Sep 17 00:00:00 2001
|
|
|
78a2f7 |
From: Jakub Filak <jfilak@redhat.com>
|
|
|
78a2f7 |
Date: Thu, 9 Jan 2014 13:30:14 +0100
|
|
|
78a2f7 |
Subject: [PATCH 17/39] Provide Arch specific StressTest configuration
|
|
|
78a2f7 |
|
|
|
78a2f7 |
Related to rhbz#1054737
|
|
|
78a2f7 |
|
|
|
78a2f7 |
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
|
78a2f7 |
---
|
|
|
78a2f7 |
test/CMakeLists.txt | 15 ++++++++++++++-
|
|
|
78a2f7 |
test/testdriver | 6 ++++--
|
|
|
78a2f7 |
2 files changed, 18 insertions(+), 3 deletions(-)
|
|
|
78a2f7 |
|
|
|
78a2f7 |
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
|
|
|
78a2f7 |
index 6be9498..0a73e2b 100644
|
|
|
78a2f7 |
--- a/test/CMakeLists.txt
|
|
|
78a2f7 |
+++ b/test/CMakeLists.txt
|
|
|
78a2f7 |
@@ -235,10 +235,23 @@ _add_test_target(
|
|
|
78a2f7 |
)
|
|
|
78a2f7 |
_add_test(run_cut_reason_message 2)
|
|
|
78a2f7 |
|
|
|
78a2f7 |
+if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^s390x?$")
|
|
|
78a2f7 |
+ set(STRESS_TEST_REPEATS 30)
|
|
|
78a2f7 |
+ set(STRESS_TEST_THREADS 200)
|
|
|
78a2f7 |
+elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^ppc\(64\)?$")
|
|
|
78a2f7 |
+ set(STRESS_TEST_REPEATS 20)
|
|
|
78a2f7 |
+ set(STRESS_TEST_THREADS 150)
|
|
|
78a2f7 |
+elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^armv7l$")
|
|
|
78a2f7 |
+ set(STRESS_TEST_REPEATS 10)
|
|
|
78a2f7 |
+ set(STRESS_TEST_THREADS 100)
|
|
|
78a2f7 |
+else()
|
|
|
78a2f7 |
+ set(STRESS_TEST_REPEATS 60)
|
|
|
78a2f7 |
+ set(STRESS_TEST_THREADS 600)
|
|
|
78a2f7 |
+endif()
|
|
|
78a2f7 |
|
|
|
78a2f7 |
add_custom_target(
|
|
|
78a2f7 |
run_thread_stress
|
|
|
78a2f7 |
- COMMAND LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/src ${Java_JAVA_EXECUTABLE} -agentlib:${AGENT_NAME}=caught=java.lang.ArrayIndexOutOfBoundsException,journald=no ThreadStressTest
|
|
|
78a2f7 |
+ COMMAND LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/src ${Java_JAVA_EXECUTABLE} -agentlib:${AGENT_NAME}=caught=java.lang.ArrayIndexOutOfBoundsException,journald=no ThreadStressTest reps=${STRESS_TEST_REPEATS} threads=${STRESS_TEST_THREADS}
|
|
|
78a2f7 |
DEPENDS ${TEST_JAVA_TARGETS}
|
|
|
78a2f7 |
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
78a2f7 |
)
|
|
|
78a2f7 |
diff --git a/test/testdriver b/test/testdriver
|
|
|
78a2f7 |
index 9e5c2b8..b02bc5c 100644
|
|
|
78a2f7 |
--- a/test/testdriver
|
|
|
78a2f7 |
+++ b/test/testdriver
|
|
|
78a2f7 |
@@ -19,10 +19,12 @@ TMP_RESULT=`mktemp /tmp/abrt_java_connector.XXXXXXX`
|
|
|
78a2f7 |
|
|
|
78a2f7 |
if [ -n "$5" ] && [ 1 -eq $5 ]; then
|
|
|
78a2f7 |
tac $4 | awk \
|
|
|
78a2f7 |
-'BEGIN { main = 0 }
|
|
|
78a2f7 |
+'BEGIN { main = 0; pfx = "" }
|
|
|
78a2f7 |
/^(Unc|C)aught/ { if (main == 1) { print $0; main = 0 } }
|
|
|
78a2f7 |
{ if (main == 1) { print $0 } }
|
|
|
78a2f7 |
-/\s*at .*\.main\(/ { if (main == 0) { print $0; main = 1 } }' | tac > $TMP_RESULT
|
|
|
78a2f7 |
+/\s*at .*\.main\(/ { if (main == 0) { print pfx$0; main = 1 } }
|
|
|
78a2f7 |
+ { pfx = "" }
|
|
|
78a2f7 |
+/^executable:/ { pfx = $0"\n" }' | tac > $TMP_RESULT
|
|
|
78a2f7 |
else
|
|
|
78a2f7 |
cp $4 $TMP_RESULT
|
|
|
78a2f7 |
fi
|
|
|
78a2f7 |
--
|
|
|
78a2f7 |
1.8.3.1
|
|
|
78a2f7 |
|