diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 14:36:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 14:36:24 +0000 |
commit | 9b6d8e63db85c30007b463e91f91a791969fa83f (patch) | |
tree | 0899af51d73c1bf986f73ae39a03c4436083018a /build-aux/ci | |
parent | Initial commit. (diff) | |
download | gnome-control-center-9b6d8e63db85c30007b463e91f91a791969fa83f.tar.xz gnome-control-center-9b6d8e63db85c30007b463e91f91a791969fa83f.zip |
Adding upstream version 1:3.38.4.upstream/1%3.38.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build-aux/ci')
-rwxr-xr-x | build-aux/ci/ci-helper.sh | 61 | ||||
-rw-r--r-- | build-aux/ci/lsan.supp | 19 |
2 files changed, 80 insertions, 0 deletions
diff --git a/build-aux/ci/ci-helper.sh b/build-aux/ci/ci-helper.sh new file mode 100755 index 0000000..ddecded --- /dev/null +++ b/build-aux/ci/ci-helper.sh @@ -0,0 +1,61 @@ +#!/bin/bash -e + +function do_print_labels(){ + + if [[ -n "${1}" ]]; then + label_len=${#1} + span=$(((54 - $label_len) / 2)) + + echo + echo "= ======================================================== =" + printf "%s %${span}s %s %${span}s %s\n" "=" "" "$1" "" "=" + echo "= ======================================================== =" + else + echo "= ========================= Done ========================= =" + echo + fi +} + +function do_show_info(){ + + local compiler=gcc + + echo -n "Processors: "; grep -c ^processor /proc/cpuinfo + grep ^MemTotal /proc/meminfo + id; uname -a + printenv + echo '-----------------------------------------' + cat /etc/*-release + echo '-----------------------------------------' + + if [[ ! -z $CC ]]; then + compiler=$CC + fi + echo 'Compiler version' + $compiler --version + echo '-----------------------------------------' + $compiler -dM -E -x c /dev/null + echo '-----------------------------------------' +} + +function do_check_warnings(){ + + cat compilation.log | grep "warning:" | awk '{total+=1}END{print "Total number of warnings: "total}' +} + +# ----------- ----------- +if [[ $1 == "INFO" ]]; then + do_print_labels 'Build environment ' + do_show_info + do_print_labels + +elif [[ $1 == "GIT_INFO" ]]; then + do_print_labels 'Commit' + git log --pretty=format:"%h %cd %s" -1; echo + do_print_labels + +elif [[ $1 == "WARNINGS" ]]; then + do_print_labels 'Warning Report ' + do_check_warnings + do_print_labels +fi
\ No newline at end of file diff --git a/build-aux/ci/lsan.supp b/build-aux/ci/lsan.supp new file mode 100644 index 0000000..841cdb7 --- /dev/null +++ b/build-aux/ci/lsan.supp @@ -0,0 +1,19 @@ +# https://bugs.freedesktop.org/show_bug.cgi?id=105466 +leak:libfontconfig.so.1 + +# Unknown and unreported bugs +leak:__GI___vasprintf_chk +leak:__interceptor_malloc +leak:__alloc_dir +leak:libglib-2.0.so.0 + +# Needing attention +leak:<unknown module> +leak:test_timezone_gfx + +######## +# __GI___vasprintf_chk /usr/src/debug/glibc-2.27.9000-432-g104502102c/debug/vasprintf_chk.c:80 +# __alloc_dir ../sysdeps/posix/opendir.c:118 +# g_malloc (/lib64/libglib-2.0.so.0+0x523c5) +# g_realloc (/lib64/libglib-2.0.so.0+0x5247d) +######## |