Leaked source code of windows server 2003
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.

61 lines
2.3 KiB

  1. StgBase.exe
  2. -----------
  3. This suite of tests does very basic testing of ole storage.
  4. All binaries are in the bin subtree, all batchfiles and
  5. other scripts are in the batch subdirectory.
  6. To run the basic suite locally, use the basetsts.bat file.
  7. Due to added features in ole32 and ntfs for WinNT50, stgbase
  8. will run in different modes to test the different features now
  9. available for storage.
  10. By default only basic docfiles are used in WindowsNT50. But you can
  11. change the default behaviour on NTFS5 drives to use the new Ntfs
  12. Structured Storage format by changing some values in the registry.
  13. For docfile format:
  14. HKLM\Software\Microsoft\Ole
  15. EnableNtfsStructuredStorage = "NN"
  16. For Ntfs Structured Storage format
  17. HKLM\Software\Microsoft\Ole
  18. EnableNtfsStructuredStorage = "YY"
  19. EnableCNSS = "Y"
  20. 1. Basic docfile. Run this on a FAT or NTFS4 volume (or with the
  21. above registry settings for docfile on NTFS5 drive) with
  22. basetsts.bat
  23. 2. Ntfs Structured Storage (nssfile). Run this suite on a local NTFS5
  24. volume with basetsts.bat with the Ntfs Structured Storage settings
  25. 3. Conversion between Ntfs Structured Storage and Basic Docfile.
  26. There are two methods to invoke this test mechanism.
  27. 1. Local machine. Set the following values in the registry
  28. under HKLM\Software\Microsoft\Ole
  29. EnableNtfsStructuredStorage = "YN"
  30. EnableCNSS = "Y"
  31. Then run the suite on a local NTFS5 volume with
  32. basetsts.bat
  33. 2. Distributed method, requiring two machines.
  34. Distributed Run
  35. ---------------
  36. This requires two machines, one is the server and the other the
  37. client. The server will be creating nssfiles, the client will be
  38. accessing these test files as docfiles - thus invoking conversion
  39. over the redirector. This method requires the use of rundrive and
  40. stgchk utilitys.
  41. For a distributed run of the base tests, you will need to use the
  42. rundrive utility, and also have stgchk available. To run:
  43. On the server, run 'dstginst.bat s' to register the rundrive utils,
  44. share a directory and prepare the distributed scripts.
  45. On the client, run 'dstginst.bat c <servername>' to register
  46. rundrive utils, connect to the server via net use, and finish
  47. preparing the distributed scripts.
  48. On the client, run dstgrun.bat to run the tests.
  49. All the logs should end up on the server machine.