diff options
Diffstat (limited to 'deqp-run')
-rwxr-xr-x | deqp-run | 25 |
1 files changed, 20 insertions, 5 deletions
@@ -21,11 +21,11 @@ readonly -A LINUX_DEQP_BIN=( [gles31]=build/modules/gles31/deqp-gles31 ) readonly -A CHROMEOS_DEQP_CASELIST=( - [vk]=/usr/local/deqp/caselists/vk.txt - [egl]=/usr/local/deqp/caselists/egl.txt - [gles2]=/usr/local/deqp/caselists/gles2.txt - [gles3]=/usr/local/deqp/caselists/gles3.txt - [gles31]=/usr/local/deqp/caselists/gles31.txt + [vk]=/usr/local/deqp/caselists/vk.txt.zst + [egl]=/usr/local/deqp/caselists/egl.txt.zst + [gles2]=/usr/local/deqp/caselists/gles2.txt.zst + [gles3]=/usr/local/deqp/caselists/gles3.txt.zst + [gles31]=/usr/local/deqp/caselists/gles31.txt.zst ) readonly -A LINUX_DEQP_CASELIST=( @@ -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 @@ -112,7 +122,12 @@ DEQP_RUNNER_ARGS=( --caselist "${CASELIST}" --deqp "${DEQP_BIN}" --testlog-to-xml "${TESTLOG_TO_XML}" + --timeout 360 --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[@]}" |