forked from glen/fostr
Glen Whitney
cc89ad1e93
Also start using nailgun to speed up code generation. Resolves #6. Co-authored-by: Glen Whitney <glen@studioinfinity.org> Reviewed-on: glen/fostr#24 Co-Authored-By: Glen Whitney <glen@nobody@nowhere.net> Co-Committed-By: Glen Whitney <glen@nobody@nowhere.net>
20 lines
408 B
Bash
Executable File
20 lines
408 B
Bash
Executable File
#!/bin/bash
|
|
|
|
failed=0
|
|
|
|
for dir in tests/extracted/*; do
|
|
for file in $dir/*.fos; do
|
|
for language in Python Javascript Haskell OCaml; do
|
|
echo bin/fosgen -l ${language%.*} $file ...
|
|
bin/fosgen -l $language $file
|
|
if [[ $? -ne 0 ]]; then
|
|
echo ' ... Failed.'
|
|
((failed++))
|
|
fi
|
|
done
|
|
done
|
|
done
|
|
|
|
echo "Code generation completed with $failed failures."
|
|
exit $failed
|