Upgrade the script a little

This commit is contained in:
Segcolt 2024-10-12 18:09:01 -03:00
parent f536ca37fe
commit 0a8d951cfa

13
run.sh
View File

@ -2,6 +2,15 @@
IFS=$'\n' IFS=$'\n'
for file in $(find test -type f); do if [[ -z $EXEC ]]; then
build/main.out < $file EXEC="build/main.out"
fi
if [[ -z $TEST_FOLDER ]]; then
TEST_FOLDER="test"
fi
for file in $(find "$TEST_FOLDER" -type f); do
echo "Arquivo de teste: $file"
"$EXEC" < "$file"
done done