I have a batch file where a python script data.py is called 33 times and tests some data. The input to test is in test.a
The output of this script should be compared to a file with the desired output content. The goal is to have no differences in all 33 test loops (--> the python script works properly)
@echo off
setlocal enableDelayedExpansion
for /l %%N in (101,1,133) do (
set "n=%%N"
echo Testing !n:~-2!
< test\test!n:~-2!\test.a python data.py
> test\test!n:~-2!\output.txt |
fc test\test!n:~-2!\output.txt test\test!n:~-2!\test.b
)
Is there a way to compare the output of the .py with test.b WITHOUT generating the output.txt file ?
And another little problem. These output files are exactly the same, in output.txt it is empty, in test.b the whole solution gets displayed. Why? If there is no difference it shouldn't display anything right?
Vergleichen der Dateien TEST\TEST01\output.txt und TEST\TEST01\TEST.B
***** TEST\TEST01\output.txt
***** TEST\TEST01\TEST.B
s1|s2|s1|s2
*****