17 lines
241 B
Bash
Executable File

#!/usr/bin/env bash
IFS=$'\n'
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