8000 Add benchmarks for blame by ethomson · Pull Request #6920 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

Add benchmarks for blame #6920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
benchmark: skip (don't fail) needs_repo tests
If a test needs a repo that isn't provide it, mark it as skipped and
avoid failing the execution.
  • Loading branch information
ethomson committed Oct 21, 2024
commit e68d0b4b955cea0a5e9305731eeee693376e90e4
14 changes: 12 additions & 2 deletions tests/benchmarks/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,19 @@ for TEST_PATH in "${BENCHMARK_DIR}"/*; do
ERROR_FILE="${OUTPUT_DIR}/${TEST_FILE}.err"

FAILED=
${TEST_PATH} --cli "${TEST_CLI}" --baseline-cli "${BASELINE_CLI}" --json "${JSON_FILE}" ${SHOW_OUTPUT} >"${OUTPUT_FILE}" 2>"${ERROR_FILE}" || FAILED=1
{
${TEST_PATH} --cli "${TEST_CLI}" --baseline-cli "${BASELINE_CLI}" --json "${JSON_FILE}" ${SHOW_OUTPUT} >"${OUTPUT_FILE}" 2>"${ERROR_FILE}";
FAILED=$?
} || true

if [ "${FAILED}" = "1" ]; then
if [ "${FAILED}" = "2" ]; then
if [ "${VERBOSE}" != "1" ]; then
echo "skipped!"
fi

indent < "${ERROR_FILE}"
continue
elif [ "${FAILED}" != "0" ]; then
if [ "${VERBOSE}" != "1" ]; then
echo "failed!"
fi
Expand Down
2 changes: 1 addition & 1 deletion tests/benchmarks/benchmark_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,6 @@ needs_repo() {
echo "remote repository ('${REPO_REMOTE_URL}') locally then set," 1>&2
echo "the 'BENCHMARK_${REPO_UPPER}_REPOSITORY' environment variable to the path that" 1>&2
echo "contains the repository locally, then run this benchmark again." 1>&2
exit 1
exit 2
fi
}
Loading
0