mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
a80fef34a2
This dehardcodes the builddir the scripts use, and allows us to pass it as a cli argument. It also allows us to pass the test stuite string as an arg for test.sh This makes the scripts a bit more usable for local development as well. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7114>
33 lines
726 B
Bash
Executable file
33 lines
726 B
Bash
Executable file
#! /bin/bash
|
|
|
|
builddir="$1"
|
|
tests="$2"
|
|
|
|
if [[ -z "$builddir" || -z "$tests" ]]; then
|
|
echo "Usage: test.sh <build_directory> <test_name>"
|
|
exit 1
|
|
fi
|
|
|
|
set -eux
|
|
|
|
timeout="${TIMEOUT_FACTOR:="2"}"
|
|
validate="${EXTRA_VALIDATE_ARGS:=""}"
|
|
parent="${CI_PROJECT_DIR:-$(pwd)}"
|
|
|
|
export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
|
|
echo "-> Running $tests"
|
|
|
|
./gst-env.py \
|
|
"--builddir=$builddir" \
|
|
gst-validate-launcher "$tests" \
|
|
--check-bugs \
|
|
--dump-on-failure \
|
|
--mute \
|
|
--shuffle \
|
|
--no-display \
|
|
--meson-no-rebuild \
|
|
--timeout-factor "$timeout" \
|
|
--fail-on-testlist-change \
|
|
-l "$parent/validate-logs/" \
|
|
--xunit-file "$parent/validate-logs/xunit.xml" \
|
|
$validate
|