Skip to content

Commit

Permalink
run all roc expect tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-4 committed Feb 2, 2024
1 parent e022fba commit a26fa15
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/all_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ for roc_file in $EXAMPLES_DIR*.roc; do
expect ci/expect_scripts/$no_ext_name.exp
done

# `roc test` every roc file if it contains a test
find . -type f -name "*.py" | while read file; do
if grep -qE '^\s*expect(\s+|$)' "$file"; then
$ROC test "$file"
fi
done

# just build this until we fix it
$ROC build ./ci/file-testBROKEN.roc $ROC_BUILD_FLAGS

Expand Down

0 comments on commit a26fa15

Please sign in to comment.