You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
932 B

  1. rem ------------------------------------------------------------------------------
  2. rem Tiny script to execute a single unit test suite.
  3. rem
  4. rem Usage:
  5. rem SET OUTDIR=<directory_for_test_results>
  6. rem SET BINDIR=<directory_where_binaries_are_stored>
  7. rem
  8. rem CALL RunSingleUnitTestSuite <name_of_test> <output_file>
  9. rem
  10. rem Post:
  11. rem FIRSTUTNA - if the test wasn't found, receives the test name
  12. rem FIRSTUTFAILUR - if the test failed, receives the test name
  13. rem
  14. rem ------------------------------------------------------------------------------
  15. IF NOT EXIST %BINDIR%\%1\unit.exe (
  16. echo NOT AVAILABLE. Please rebuild this configuration
  17. echo Unable to find %BINDIR%\%1\unit.exe > %OUTDIR%%2
  18. SET FIRSTUTNA=%2
  19. ) ELSE (
  20. %BINDIR%\%1\unit.exe > %OUTDIR%%2
  21. IF errorlevel == 0 (
  22. echo SUCCESS
  23. ) ELSE (
  24. echo FAILURE, check output file: %2
  25. SET FIRSTUTFAILURE=%2
  26. )
  27. )
  28. echo.
  29. echo.