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'
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user