#!/bin/sh
# Build the C core with AddressSanitizer and UndefinedBehaviorSanitizer and run its tests.
set -e
cd "$(dirname "$0")/.."
cmake -S core -B build/core -DRULFO_SANITIZE=ON >/dev/null
cmake --build build/core --parallel 2
ctest --test-dir build/core --output-on-failure
