roc/ci/roc_test_builtins.sh
2023-12-16 20:11:25 +01:00

10 lines
271 B
Bash
Executable File

#!/usr/bin/env bash
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
set -euxo pipefail
for file in crates/compiler/builtins/roc/*.roc; do
if grep -qE '^\s*expect' "$file"; then
cargo run --locked --release -- test "$file"
fi
done