2009-01-07 15:16:26 +00:00
|
|
|
|
2009-01-12 22:06:54 +00:00
|
|
|
rem ------------------------------------------------------------------------------
|
|
|
|
rem Tiny script to execute a single unit test suite.
|
|
|
|
rem
|
|
|
|
rem Usage:
|
|
|
|
rem SET OUTDIR=<directory_for_test_results>
|
|
|
|
rem SET BINDIR=<directory_where_binaries_are_stored>
|
|
|
|
rem
|
|
|
|
rem CALL RunSingleUnitTestSuite <name_of_test> <output_file>
|
|
|
|
rem
|
|
|
|
rem Post:
|
|
|
|
rem FIRSTUTNA - if the test wasn't found, receives the test name
|
|
|
|
rem FIRSTUTFAILUR - if the test failed, receives the test name
|
|
|
|
rem
|
|
|
|
rem ------------------------------------------------------------------------------
|
|
|
|
IF NOT EXIST %BINDIR%\%1\unit.exe (
|
2009-01-07 15:16:26 +00:00
|
|
|
|
2009-01-12 22:06:54 +00:00
|
|
|
echo NOT AVAILABLE. Please rebuild this configuration
|
|
|
|
echo Unable to find %BINDIR%\%1\unit.exe > %OUTDIR%%2
|
|
|
|
SET FIRSTUTNA=%2
|
|
|
|
) ELSE (
|
2009-01-07 15:16:26 +00:00
|
|
|
|
2009-01-12 22:06:54 +00:00
|
|
|
%BINDIR%\%1\unit.exe > %OUTDIR%%2
|
|
|
|
IF errorlevel == 0 (
|
|
|
|
echo SUCCESS
|
|
|
|
) ELSE (
|
|
|
|
echo FAILURE, check output file: %2
|
|
|
|
SET FIRSTUTFAILURE=%2
|
|
|
|
)
|
|
|
|
)
|
2009-01-07 15:16:26 +00:00
|
|
|
|
|
|
|
echo.
|
|
|
|
echo.
|