# Required variables
WORKSPACE=${WORKSPACE:-}
-arch=${arch:-}
+platform=${platform:-}
conf=${conf:-}
build=${build:-}
target_board=${target_board:-unix}
export LDFLAGS="-fsanitize=address"
# Set platform variables
-case "$arch" in
+case "$platform" in
*)
export MAKE=make
export TAR=tar
CONF_OPTS+=("--with-system-readline" "--with-system-zlib")
# Enable optional features
- CONF_OPTS+=("--enable-targets=all" "--with-expat=yes" "--with-python=python3" "--with-guile=guile-2.2" "--enable-libctf")
+ CONF_OPTS+=("--enable-targets=all" "--with-expat=yes" "--with-python=python3" "--with-guile" "--enable-libctf")
CONF_OPTS+=("--enable-build-warnings" "--enable-gdb-build-warnings" "--enable-unit-tests" "--enable-ubsan")
known_failures_file="known-failures-${target_board}"
grep --invert-match --fixed-strings --file="$known_failures_file" "${WORKSPACE}/results/gdb.sum" > "${WORKSPACE}/results/gdb.filtered.sum"
+grep --extended-regexp --regexp="^(FAIL|XPASS|UNRESOLVED|DUPLICATE):" "${WORKSPACE}/results/gdb.filtered.sum" > "${WORKSPACE}/results/gdb.fail.sum" || true
# For informational purposes: check if some known failure lines did not appear
# in the gdb.sum.