2021-12-30 20:55:33 +00:00
|
|
|
#!/bin/sh
|
2020-10-29 17:29:28 +00:00
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2021-12-30 20:55:33 +00:00
|
|
|
if [ -n "${DEQP_RUNNER_GIT_TAG}${DEQP_RUNNER_GIT_REV}" ]; then
|
|
|
|
# Build and install from source
|
2022-02-21 14:30:13 +00:00
|
|
|
DEQP_RUNNER_CARGO_ARGS="--git ${DEQP_RUNNER_GIT_URL:-https://gitlab.freedesktop.org/anholt/deqp-runner.git}"
|
2021-12-30 20:55:33 +00:00
|
|
|
|
|
|
|
if [ -n "${DEQP_RUNNER_GIT_TAG}" ]; then
|
2022-02-21 14:30:13 +00:00
|
|
|
DEQP_RUNNER_CARGO_ARGS="--tag ${DEQP_RUNNER_GIT_TAG} ${DEQP_RUNNER_CARGO_ARGS}"
|
2021-12-30 20:55:33 +00:00
|
|
|
else
|
2022-02-21 14:30:13 +00:00
|
|
|
DEQP_RUNNER_CARGO_ARGS="--rev ${DEQP_RUNNER_GIT_REV} ${DEQP_RUNNER_CARGO_ARGS}"
|
2021-12-30 20:55:33 +00:00
|
|
|
fi
|
2022-02-21 14:30:13 +00:00
|
|
|
|
|
|
|
DEQP_RUNNER_CARGO_ARGS="${DEQP_RUNNER_CARGO_ARGS} ${EXTRA_CARGO_ARGS}"
|
2021-12-30 20:55:33 +00:00
|
|
|
else
|
|
|
|
# Install from package registry
|
2022-03-16 21:49:21 +00:00
|
|
|
DEQP_RUNNER_CARGO_ARGS="--version 0.13.1 ${EXTRA_CARGO_ARGS} -- deqp-runner"
|
2021-12-30 20:55:33 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
cargo install --locked \
|
|
|
|
-j ${FDO_CI_CONCURRENT:-4} \
|
|
|
|
--root /usr/local \
|
2022-02-21 14:30:13 +00:00
|
|
|
${DEQP_RUNNER_CARGO_ARGS}
|