check-all.sh

Tue, 07 Jan 2025 19:16:03 +0100

author
Mike Becker <universe@uap-core.de>
date
Tue, 07 Jan 2025 19:16:03 +0100
changeset 1114
ad5eeb256242
parent 1109
89ec23988b88
permissions
-rwxr-xr-x

fix that overwriting a map element did not call any destructor function

fixes also, that two tests were never called and increases test coverage in general

fixes #558

#!/bin/sh

# backup config
cp config.mk config.mk.bak

function perform_check
{
  if ! make clean check > /dev/null ; then
    echo "fail."
  else
    echo "ok."
  fi
}

function perform_check_cxx
{
  # we cannot mute the warnings, so throw every everything
  if ! make check-cxx > /dev/null 2> /dev/null ; then
    echo "fail."
  else
    echo "ok."
  fi
}

for cc in clang gcc; do
  CC=$cc ./configure --debug > /dev/null
  printf "Check $cc... "
  perform_check
  printf "Check $cc (c++)... "
  perform_check_cxx
done

printf "Check w/o szmul builtin... "
./configure --debug --disable-szmul-builtin > /dev/null
perform_check
printf "Check w/o szmul builtin (c++)... "
perform_check_cxx

printf "Check release config... "
./configure --release > /dev/null
perform_check

printf "Check gcc C23 preview... "
CC=gcc CFLAGS=-std=c23 ./configure --debug > /dev/null
perform_check

# clean build files and restore config
make clean > /dev/null
mv config.mk.bak config.mk

mercurial