Skip to content

Commit

Permalink
pass arguments to gtest-parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
gr0vity committed Dec 7, 2024
1 parent 6911c68 commit 80212f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ci/tests/run-gtest-parallel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ if [ -z "${target-}" ]; then
exit 1
fi

shift
executable=./${target}$(get_exec_extension)

# Get the project root directory (2 levels up from ci/tests)
Expand All @@ -17,8 +18,8 @@ GTEST_PARALLEL="${PROJECT_ROOT}/submodules/gtest-parallel/gtest-parallel"

if [ -f "${GTEST_PARALLEL}" ]; then
echo "Running tests with gtest-parallel for target: ${target}"
"${GTEST_PARALLEL}" "${executable}" --worker=1
"${GTEST_PARALLEL}" "${executable}" --worker=1 "$@"
else
echo "gtest-parallel not found at ${GTEST_PARALLEL}, running tests directly for target: ${target}"
"${executable}"
"${executable}" "$@"
fi

0 comments on commit 80212f4

Please sign in to comment.