Fix CI script + add script interactions.

This commit is contained in:
KtorZ 2023-02-15 09:13:14 +01:00
parent e1c0c3986d
commit 01c392836e
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,22 @@
#!/usr/bin/env bash
exit_codes=()
for scenario in $(find . -maxdepth 1 -mindepth 1 -regex ".*[0-9]\{3\}" -type d); do for scenario in $(find . -maxdepth 1 -mindepth 1 -regex ".*[0-9]\{3\}" -type d); do
./run $scenario ./run $scenario
exit_codes+=("$?")
done
for interaction in $(find script_context/validators -type f); do
title=$(basename $interaction)
title="${title%.*}"
cd script_context && ./test.sh $title
exit_codes+=("$?")
cd -
done
for code in ${exit_codes[@]}; do
if [ $code -ne 0 ]; then
exit $code
fi
done done