2020-04-02 23:10:02 +00:00
|
|
|
#!/usr/bin/env bash
|
2018-04-03 02:04:12 +00:00
|
|
|
#
|
|
|
|
# Run the test suite with all configurations enabled
|
|
|
|
#
|
|
|
|
|
|
|
|
FAIL=0
|
|
|
|
|
2020-01-16 18:37:19 +00:00
|
|
|
for FLAGS in "CONFIG_HEAP_POISONING_NONE" "CONFIG_HEAP_POISONING_LIGHT" "CONFIG_HEAP_POISONING_COMPREHENSIVE" ; do
|
2018-04-03 02:04:12 +00:00
|
|
|
echo "==== Testing with config: ${FLAGS} ===="
|
|
|
|
CPPFLAGS="-D${FLAGS}" make clean test || FAIL=1
|
|
|
|
done
|
|
|
|
|
|
|
|
make clean
|
|
|
|
|
|
|
|
if [ $FAIL == 0 ]; then
|
|
|
|
echo "All configurations passed"
|
|
|
|
else
|
|
|
|
echo "Some configurations failed, see log."
|
|
|
|
exit 1
|
|
|
|
fi
|