I have the following layout for my test suite:
TestSuite1.cmd:
- Run my program
- Check its return result
- If the return result is not 0, convert the error to textual output and abort the script. If it succeeds, write out success.
In my single .cmd file, I call my program about 10 times with different input.
The problem is that the program that I run 10 times takes several hours to run each time.
Is there a way for me to parallelize all of these 10 runnings of my program while still somehow checking the return result and providing a proper output file and while still using a single .cmd file and to a single output file?
Assuming they won’t interfere with each other by writing to the same files,etc:
test1.cmd
This will start three concurrent processes each which echoes it’s sequence number then wait 30 seconds.
All with one cmd file and (eventually) one output file.