Upgrade the script a little
This commit is contained in:
parent
f536ca37fe
commit
0a8d951cfa
13
run.sh
13
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user