Multitasking is the key to success in our global society. Plus, if you are drunk, you might hit a wrong key giving invalid test results.
Open a DOS console window and navigate the the directory where the above example is has been downloaded.
Run file test.zip by typing "test" and hitting the enter key.
The eTPU simulator is launched multiple times and automatically exits. At the end of the test run, the message "all tests pass" if the tests pass.
The key is file test.bat, which is shown below.
echo off
echo
Running MeasurePulse PULSE WIDTH Test ...
"C:\Program Files\ASH WARE\eTpu Simulator\DemoETpuSimulator" -pMeasurePulse.ETpuSimProject
-sTestPulseWidth.ETpuCommand -AutoRun -IAcceptLicense
if %ERRORLEVEL% NEQ 0 ( goto errors )
echo Running MeasurePulse PULSE ACCUM Test ...
"C:\Program Files\ASH WARE\eTpu Simulator\DemoETpuSimulator" -pMeasurePulse.ETpuSimProject
-sTestPulseAccum.ETpuCommand -AutoRun -IAcceptLicense
if %ERRORLEVEL% NEQ 0 ( goto errors )
echo ALL TESTS PASS
goto
end
:errors
echo *************************************************
echo YIKES, WE GOT ERRORS!!
echo *************************************************
:end
A couple notes on file TEST.BAT shown above file.
The following -p command line option causes project file MeasurePulse.ETpuSimProject to be loaded.
-pMeasurePulse.ETpuSimProject
The following -s command line option causes script file TestPulseWidth.ETpuCommand to be loaded.
-sTestPulseWidth.ETpuCommand
The following -AutoRun command line option causes the simulator to start running automatically.
-AutoRun
The following -IAcceptLicense command line option allows you to accept the license restriction without having to close the license-acceptance dialog box, thereby allowing the tests to run without human intervention, thereby allowing you to run your tests while sitting in a pub.
-IAcceptLicense