examples: lang: Test that each of the mcl examples compiles

We let these rot, so fixup the issues and test them!
This commit is contained in:
James Shubin
2024-07-31 16:01:51 -04:00
parent 6de7d8b254
commit d0ed004b24
9 changed files with 34 additions and 19 deletions

View File

@@ -11,7 +11,16 @@ cd "${ROOT}"
failures=''
# TODO: test examples/lang/ directory to see if the .mcl files compile correctly
# Test examples/lang/ directory to see if the .mcl files compile correctly.
find_mcl_examples() {
git ls-files | grep '\.mcl$' | grep '^examples/lang/' | grep -v 'modules/'
}
for file in $(find_mcl_examples); do
#echo "mcl: $file"
run-test ./mgmt run --tmp-prefix lang --only-unify "$file" &> /dev/null || fail_test "could not compile: $file"
done
buildout='test-examples.out'
# make symlink to outside of package