mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-25 10:32:13 +03:00
adds exit code and error printing
This commit is contained in:
parent
a511638021
commit
bc6ad13930
13
.github/workflows/acl2.yml
vendored
13
.github/workflows/acl2.yml
vendored
@ -39,15 +39,22 @@ jobs:
|
||||
# Using the prepared ASTs and the pulled and unzipped tgc run theorem generation.
|
||||
- name: Run tgc over the asts
|
||||
run: |
|
||||
ARRAY=();
|
||||
errors=();
|
||||
for dir in `ls tmp/tgc`;
|
||||
do
|
||||
cd tmp/tgc/$dir; # enter the directory
|
||||
./../../../acl2/tgc canonicalization initial_ast.json canonicalization_ast.json canonicalization-theorem.lisp || ARRAY+=("$dir");
|
||||
./../../../acl2/tgc canonicalization initial_ast.json canonicalization_ast.json canonicalization-theorem.lisp > result.out || errors+=("$dir");
|
||||
cd ../../..
|
||||
done;
|
||||
|
||||
if [ ${#errors[@]} -eq 0 ]; then
|
||||
echo "Success!"
|
||||
else
|
||||
echo "Failures:";
|
||||
for i in ${ARRAY[@]};
|
||||
for i in ${errors[@]};
|
||||
do
|
||||
echo $i;
|
||||
cat tmp/tgc/$dir.out
|
||||
done;
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user