ci: Add build with the stderr tracer

v2: Fix artifact copy output path (Tomeu)

Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>
This commit is contained in:
Gert Wollny authored and Gert Wollny committed 2020-11-13 09:47:25 +00:00
1 parent 024a0d969d
commit 7db2faa354
2 files changed
+33 -1

No files matched your search

+5
View File
@@ -59,6 +59,11 @@ make check clang-fuzzer:
TEST_SUITE: '--make-check-clang-fuzzer'
extends: .make_check_base
make check trace-stderr:
variables:
TEST_SUITE: '--make-check-trace-stderr'
extends: .make_check_base
.tests:
stage: test
extends: .tests_base
+28 -1
View File
@@ -10,6 +10,11 @@ run_setup()
use_clang_fuzzer=1
fi
if [ "x$2" = "xtrace_stderr" ]; then
use_trace_stderr=1
fi
# Let .gitlab-ci or local ci runner set
# desired thread count
NUM_THREADS=${NUM_THREADS:-$(expr $(expr $(nproc) / 8) + 1)}
@@ -56,7 +61,11 @@ run_setup()
export FUZZER=-Dfuzzer=true
fi
meson build/ -Dprefix=/usr/local -Ddebug=true -Dtests=true --fatal-meson-warnings $FUZZER
if [ "x$use_trace_stderr" = "x1" ]; then
export TRACING=-Dtracing=stderr
fi
meson build/ -Dprefix=/usr/local -Ddebug=true -Dtests=true --fatal-meson-warnings $FUZZER $TRACING
ninja -C build -j$NUM_THREADS install
}
@@ -86,6 +95,20 @@ run_make_check_clang_fuzzer()
)
}
run_make_check_trace_stderr()
{
run_setup meson trace_stderr
(
mkdir -p ./results/make_check_trace_stderr
pushd ./build
VRENDTEST_USE_EGL_SURFACELESS=1 ninja -j$NUM_THREADS test
RET=$?
cp ./meson-logs/testlog.txt ../results/make_check_trace_stderr/
popd
return $RET
)
}
run_deqp()
{
run_setup meson
@@ -169,6 +192,10 @@ parse_input()
run_make_check_clang_fuzzer
;;
--make-check-trace-stderr)
run_make_check_trace_stderr
;;
--deqp-gl-gl-tests)
run_deqp gl gl
;;