1#!/usr/bin/env bash 2# 3# Run the test suite with all configurations enabled 4# 5 6FAIL=0 7 8for FLAGS in "CONFIG_HEAP_POISONING_NONE" "CONFIG_HEAP_POISONING_LIGHT" "CONFIG_HEAP_POISONING_COMPREHENSIVE" ; do 9 echo "==== Testing with config: ${FLAGS} ====" 10 CPPFLAGS="-D${FLAGS}" make clean test || FAIL=1 11done 12 13make clean 14 15if [ $FAIL == 0 ]; then 16 echo "All configurations passed" 17else 18 echo "Some configurations failed, see log." 19 exit 1 20fi 21