runtest.cmd 606 B

12345678910111213141516171819202122232425262728
  1. @echo off
  2. rem
  3. rem usage: runtest [<testfile>...]
  4. rem without args, runs all *.test files in the current directory
  5. rem
  6. set TESTFILES=%*
  7. if "x%TESTFILES%" == "x" set TESTFILES=*.test
  8. mkdir work 2>nul
  9. xcopy /i /y lib work\lib
  10. : del work\work.exe 2>nul
  11. call opp_test gen -v %TESTFILES% || goto end
  12. echo.
  13. cd work || goto end
  14. call opp_nmakemake -f --deep -linet -L../../../src -P . --no-deep-includes -I../../../src
  15. nmake -f makefile.vc || cd .. && goto end
  16. cd .. || goto end
  17. echo.
  18. path %~dp0\..\..\src;%PATH%
  19. call opp_test run %OPT% -v %TESTFILES% || goto end
  20. echo.
  21. echo Results can be found in work/
  22. :end