check-all.sh

Thu, 28 Nov 2024 19:37:00 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Thu, 28 Nov 2024 19:37:00 +0100
changeset 995
d3d4f245b843
parent 988
15b3ca7ee33f
child 1017
b0098854071f
permissions
-rwxr-xr-x

fix cx_array_advanced_realloc to handle reallocation of NULL arrays, consistent with standard realloc behavior

#!/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

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

mercurial