Add JVMTI breakpoint and SingleStep tests
Tests for functionality related to the can_generate_single_step_events
and can_generate_breakpoint_events jvmti capabilities.
Bug: 62821960
Test: ./test.py --host -j40
Test: ./test/run-test --host --jvmti-step-stress 001-HelloWorld
Test: ./test/run-test --host --jvmti-step-stress 914
Change-Id: Id2a4db5a6de3a97726f03f5e735c2bb77dafe4ca
diff --git a/test/run-test b/test/run-test
index 9fe1496..486b465 100755
--- a/test/run-test
+++ b/test/run-test
@@ -145,6 +145,7 @@
gc_stress="false"
jvmti_trace_stress="false"
jvmti_field_stress="false"
+jvmti_step_stress="false"
jvmti_redefine_stress="false"
strace="false"
always_clean="no"
@@ -242,6 +243,9 @@
basic_verify="true"
gc_stress="true"
shift
+ elif [ "x$1" = "x--jvmti-step-stress" ]; then
+ jvmti_step_stress="true"
+ shift
elif [ "x$1" = "x--jvmti-redefine-stress" ]; then
jvmti_redefine_stress="true"
shift
@@ -464,6 +468,9 @@
if [ "$jvmti_redefine_stress" = "true" ]; then
run_args="${run_args} --no-app-image --jvmti-redefine-stress"
fi
+if [ "$jvmti_step_stress" = "true" ]; then
+ run_args="${run_args} --no-app-image --jvmti-step-stress"
+fi
if [ "$jvmti_field_stress" = "true" ]; then
run_args="${run_args} --no-app-image --jvmti-field-stress"
fi
@@ -679,6 +686,7 @@
echo " --gcstress Run with gc stress testing"
echo " --gcverify Run with gc verification"
echo " --jvmti-trace-stress Run with jvmti method tracing stress testing"
+ echo " --jvmti-step-stress Run with jvmti single step stress testing"
echo " --jvmti-redefine-stress"
echo " Run with jvmti method redefinition stress testing"
echo " --always-clean Delete the test files even if the test fails."