Source code of Windows XP (NT5)
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.

54 lines
1.8 KiB

  1. @echo off
  2. REM
  3. REM runtests.bat - copies all files needed to run the dsmod and dsadd tests and then runs the tests
  4. REM Created 07-Oct-2000 by Jeff Jones (JeffJon)
  5. REM
  6. REM
  7. REM Copy command executables
  8. REM
  9. copy /Y \\jeffjondev\admin\dscmd\dsadd\obj\i386\dsadd.exe
  10. copy /Y \\jeffjondev\admin\dscmd\dsadd\obj\i386\dsadd.pdb
  11. copy /Y \\jeffjondev\admin\dscmd\dsmod\obj\i386\dsmod.exe
  12. copy /Y \\jeffjondev\admin\dscmd\dsmod\obj\i386\dsmod.pdb
  13. copy /Y \\jeffjondev\admin\dscmd\dsrm\obj\i386\dsrm.exe
  14. copy /Y \\jeffjondev\admin\dscmd\dsrm\obj\i386\dsrm.pdb
  15. REM
  16. REM Copy tests
  17. REM
  18. copy /Y \\jeffjondev\admin\dscmd\test\dsaddtest.bat
  19. copy /Y \\jeffjondev\admin\dscmd\test\dsmodtest.bat
  20. copy /Y \\jeffjondev\admin\dscmd\test\dstestcleanup.bat
  21. copy /Y \\jeffjondev\admin\dscmd\test\expectedsuccess.txt
  22. copy /Y \\jeffjondev\admin\dscmd\test\expectederrors.txt
  23. REM
  24. REM Run tests
  25. REM
  26. echo.
  27. echo Running cleanup...
  28. call dstestcleanup.bat %1 %2 %3 %4 %5 %6
  29. echo.
  30. echo Running test... Test will be complete when prompt returns
  31. call dsmodtest.bat %1 %2 %3 %4 %5 %6 > modtestsuccess.txt 2> modtesterrors.txt
  32. IF EXIST windiff.exe goto RUNWINDIFF
  33. IF EXIST %SystemDrive%\mstools\windiff.exe goto RUNWINDIFF
  34. IF EXIST %SystemRoot%\system32\windiff.exe goto RUNWINDIFF
  35. echo.
  36. echo Could not find windiff.exe in the current directory, %SystemDrive%\mstools, or %SystemRoot%\system32. To determine results of the test you will have to compare the following files:
  37. echo expectedsuccess.txt and modtestsuccess.txt
  38. echo expectederrors.txt and modtesterrors.txt
  39. goto END
  40. :RUNWINDIFF
  41. echo.
  42. echo View the results in the windiff windows that are open.
  43. echo If there are any discrepancies the test did not pass.
  44. start windiff expectedsuccess.txt modtestsuccess.txt
  45. start windiff expectederrors.txt modtesterrors.txt
  46. :END