mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
c0357f8f8b
Match what valgrind supports and set the appropriate openssl variable for it. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7455>
42 lines
1 KiB
Bash
Executable file
42 lines
1 KiB
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
|
|
|
|
_jobs=$(nproc || sysctl -n hw.ncpu)
|
|
jobs="${FDO_CI_CONCURRENT:-$_jobs}"
|
|
|
|
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"
|
|
|
|
# Disable all cpu extensions post AVX to match what valgrind supports
|
|
# https://github.com/openssl/openssl/blob/master/NOTES-VALGRIND.md
|
|
export OPENSSL_ia32cap=":0"
|
|
|
|
./gst-env.py \
|
|
"--builddir=$builddir" \
|
|
gst-validate-launcher "$tests" \
|
|
--jobs "$jobs" \
|
|
--check-bugs \
|
|
--dump-on-failure \
|
|
--mute \
|
|
--shuffle \
|
|
--no-display \
|
|
--validate-generate-expectations=disabled \
|
|
--meson-no-rebuild \
|
|
--timeout-factor "$timeout" \
|
|
--fail-on-testlist-change \
|
|
-l "$parent/validate-logs/" \
|
|
--xunit-file "$parent/validate-logs/xunit.xml" \
|
|
$validate
|