diff --git a/run.sh b/run.sh index 374d83c..271657f 100755 --- a/run.sh +++ b/run.sh @@ -2,6 +2,15 @@ IFS=$'\n' -for file in $(find test -type f); do - build/main.out < $file +if [[ -z $EXEC ]]; then + 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