diff options
author | Matt Turner <mattst88@gmail.com> | 2025-06-18 18:53:59 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2025-06-18 18:53:59 -0400 |
commit | cf0e9eb48eb0677e7c3ade6d0c47a8ce4eb57636 (patch) | |
tree | 93d5a23ebe396e9752931073c617fd8b95daa606 | |
parent | db748756b9a64d35992f36d78f00a7d527f40dc0 (diff) |
deqp-run: Add --cmd argument
Allows usage like `mesa-gdb $(deqp-run --cmd ...)`.
-rwxr-xr-x | deqp-run | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -48,6 +48,12 @@ readonly -a DEQP_OPTIONS=( --deqp-visibility=hidden ) +mode=execute +if [[ $1 == --cmd ]]; then + mode=print-command + shift +fi + if [[ $# -eq 1 ]]; then if [[ $1 == dEQP-* ]]; then single_test="$1" @@ -90,6 +96,10 @@ DEQP_BIN="$(realpath "${DEQP_BIN}")" if [[ -n $single_test ]]; then cd "$(dirname "${DEQP_BIN}")" || die "can't cd" + if [[ $mode == print-command ]]; then + echo "${DEQP_BIN}" "${DEQP_OPTIONS[@]}" -n "${single_test}" + exit + fi exec "${DEQP_BIN}" "${DEQP_OPTIONS[@]}" -n "${single_test}" fi @@ -116,4 +126,8 @@ DEQP_RUNNER_ARGS=( --output "${OUTPUT_DIR}" ) +if [[ $mode == print-command ]]; then + echo deqp-runner run "${DEQP_RUNNER_ARGS[@]}" -- "${DEQP_OPTIONS[@]}" + exit +fi exec deqp-runner run "${DEQP_RUNNER_ARGS[@]}" -- "${DEQP_OPTIONS[@]}" |