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