#!/bin/bash set -o pipefail # Note: This script is intended to be run from the root of the repository. # # This script runs each unit-test separately and generates reports from the currently active sanitizer. # Output is saved in ./.sanitizer-report in the root of the repository if [[ -z "$1" ]]; then cat < "$OUTPUT_FILE" 2>&1 if [ $? -ne 0 ]; then echo "'$TEST' failed a sanitizer check." else rm "$OUTPUT_FILE" fi done