Merge pull request 'Batch behavior parity 2' (#3) from dnk-general into master

Reviewed-on: https://git.puffypony.party:4433/Segcolt/Bin-packing-SA-solution/pulls/3
This commit is contained in:
Segcolt 2024-10-12 19:45:11 -03:00
commit 93d580a299

14
run.bat
View File

@ -1,5 +1,15 @@
:: Uso: [set EXEC="caminho/do/executavel.exe"] && [set TEST_FOLDER="caminho/dos/casetests"] && run.bat
@ECHO off @ECHO off
for %%g in (test/*) do ( if not defined EXEC (
"build/solucao.exe" < test/%%g set EXEC="build/solucao.exe"
)
if not defined TEST_FOLDER (
set TEST_FOLDER=test
)
for %%g in (%TEST_FOLDER%/*) do (
echo Arquivo de teste: %TEST_FOLDER%/%%g
%EXEC% < %TEST_FOLDER%/%%g
) )