From b54b8f5b25403cf3b9623804b2491ec78a8b913e Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 21 May 2024 01:29:20 +0200 Subject: build: replace autotools with cmake this patch removes all the autoconf/automake/libtool build infrastructure and replaces it with cmake. notable default behavior changes: - man pages are not pre-built, and are not built by default, must be enabled with `-DBUILD_MANPAGES=ON`. removed features: - srpm packaging, to be reintroduced at some point. - deb packaging, now handled externally via rafaelmartins/deb.rgm.io more stuff must be missing, please report bugs! --- cmake/scripts/test.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 cmake/scripts/test.sh (limited to 'cmake/scripts') diff --git a/cmake/scripts/test.sh b/cmake/scripts/test.sh new file mode 100755 index 0000000..cbf0de4 --- /dev/null +++ b/cmake/scripts/test.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# SPDX-FileCopyrightText: 2024 Rafael G. Martins +# SPDX-License-Identifier: BSD-3-Clause + +set -Eeuo pipefail + +if [[ "${VARIANT:-}" = "memcheck" ]]; then + export VALGRIND=valgrind + export TESTS_ENVIRONMENT=" + ${VALGRIND} \ + --tool=memcheck \ + --leak-check=full \ + --leak-resolution=high \ + --num-callers=20 \ + --error-exitcode=1 \ + --show-possibly-lost=no" +fi + +if [[ "${1}" == *.sh ]]; then + exec "${@}" +else + exec ${TESTS_ENVIRONMENT:-} "${@}" +fi -- cgit v1.2.3-18-g5258