test_all_configs.sh 450 B

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