Skip to content

Commit

Permalink
Use A*,B* approach
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshat-Jain committed Jan 7, 2025
1 parent e4d9e46 commit de3ed41
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/scripts/unit_tests_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,22 @@ set -e

unset _JAVA_OPTIONS

# Get the start and end letters from the range
START=$(echo ${TEST_RANGE} | cut -d'-' -f1)
END=$(echo ${TEST_RANGE} | cut -d'-' -f2)

# Generate the list of patterns and replace spaces with *,
# This essentially converts a range of A-D to A*,B*,C*,D*
RANGES=$(eval echo {${START}..${END}} | sed -e 's/ /*,/g')

# Output the result
echo "Printing ranges"
echo ${RANGES}

# Set MAVEN_OPTS for Surefire launcher.
MAVEN_OPTS='-Xmx2500m' ${MVN} test -pl ${MAVEN_PROJECTS} \
${MAVEN_SKIP} \
-Dtest="%regex[.*/[${TEST_RANGE}][^/]*Test\.class]" \
-Dtest="${RANGES}" \
-DjfrProfilerArgLine="${JFR_PROFILER_ARG_LINE}" -Pci
sh -c "dmesg | egrep -i '(oom|out of memory|kill process|killed).*' -C 1 || exit 0"
free -m
Expand Down

0 comments on commit de3ed41

Please sign in to comment.