Difference between revisions of "Windows package ifstest"

From OpenZFS on OS X
Jump to: navigation, search
(add small guide to package ifstest.exe)
 
(avoid crashing tests)
 
(5 intermediate revisions by one user not shown)
Line 3: Line 3:
 
https://docs.microsoft.com/en-us/windows-hardware/test/hlk/testref/14b230f3-7eee-437e-ab2f-375b200de6f3
 
https://docs.microsoft.com/en-us/windows-hardware/test/hlk/testref/14b230f3-7eee-437e-ab2f-375b200de6f3
  
Browsing around we find the Virtual Hardware Lab Kit
+
== Grab the Virtual Hardware Lab Kit ==
  
 
https://docs.microsoft.com/en-us/windows-hardware/test/hlk/
 
https://docs.microsoft.com/en-us/windows-hardware/test/hlk/
Line 16: Line 16:
 
mount the image as d:
 
mount the image as d:
  
 +
== Make a stand alone package ==
 +
Copy the tests to the target folder
  
 +
cp D:\Program Files (x86)\Windows Kits\10\Hardware Lab Kit\Tests\amd64\nttest\BASETEST\core_file_services <target>
  
 +
Copy the missing dll files to the ifs_test_kit folder
  
 +
cp D:\Program Files (x86)\Windows Kits\10\Hardware Lab Kit\Tests\amd64\nttest\BASETEST\core_file_services\Shared_tests\CiBValidationKit\Tests\ntlog.dll <target>\ifs_test_kit\
 +
cp D:\Program Files (x86)\Windows Kits\10\Hardware Lab Kit\Tests\amd64\nttest\BASETEST\core_file_services\shared_libs\fbslog\FbsLog.dll <target>\ifs_test_kit\
  
  
Make a stand alone package
+
Create new test script
Copy the tests to the target folder
+
  
cp D:\Program Files (x86)\Windows Kits\10\Hardware Lab Kit\Tests\amd64\nttest\BASETEST\core_file_services <target>
+
This assumes that the ZFS pool will be mounted at e
  
Copy the missing dll files to the ifs_test_kit folder
+
ifstestzfs.cmd
  
cp D:\Program Files (x86)\Windows Kits\10\Hardware Lab Kit\Tests\amd64\nttest\BASETEST\core_file_services\Shared_tests\CiBValidationKit\Tests\ntlog.dll <target>\ifs_test_kit\
+
REM Copy over ifsTestCleanup.cmd into the current user's startup group
 +
setlocal
 +
set TARGET_LOCATION="%USERPROFILE%\Start Menu\Programs\Startup"
 +
if not exist %TARGET_LOCATION%\ifsTestCleanup.cmd (
 +
copy .\ifsTestCleanup.cmd %TARGET_LOCATION%
 +
)
 +
endlocal
 +
 +
REM Delete old copies of intermediate log files if any exist.
 +
if exist openzfsResults.log del openzfsResults.log
 +
 +
 +
REM For NTFS volume:
 +
start /wait ifstest.exe -g Virus e: /n .\openzfsResults.log /N 356789AB /T /p /m /E -R /j /r c: -d \Ntfs -a \datacoh.exe /u ifstest /U *rw53w52
  
cp D:\Program Files (x86)\Windows Kits\10\Hardware Lab Kit\Tests\amd64\nttest\BASETEST\core_file_services\shared_libs\fbslog\FbsLog.dll <target>\ifs_test_kit\
 
  
  
 +
zip up
  
  
Create new test script
 
  
This assumes that the ZFS pool will be mounted at e
+
== Suite Names ==
 +
Virus??
  
ifstestzfs.cmd
 
  
REM Copy over ifsTestCleanup.cmd into the current user's startup group
+
ChangeJournal
setlocal
+
set TARGET_LOCATION="%USERPROFILE%\Start Menu\Programs\Startup"
+
if not exist %TARGET_LOCATION%\ifsTestCleanup.cmd (
+
copy .\ifsTestCleanup.cmd %TARGET_LOCATION%
+
)
+
endlocal
+
  
REM Delete old copies of intermediate log files if any exist.
+
ChangeNotification
if exist openzfsResults.log del openzfsResults.log
+
  
 +
CloseCleanupDelete
  
REM For NTFS volume:
+
DefragEnhancements
start /wait ifstest.exe -g Virus e: /n .\openzfsResults.log /N 356789AB /T /p /m /E -R /j /r c: -d \Ntfs -a \datacoh.exe /u ifstest /U *rw53w52
+
  
 +
DeviceControl
  
 +
DirectoryInformation
  
zip up
+
EaInformation
 +
 
 +
Encryption
 +
 
 +
FileInformation
 +
 
 +
FileLocking
 +
 
 +
FileSystemControlGeneral
 +
 
 +
FileSystemControlVolume
 +
 
 +
IfsTestRtl
 +
 
 +
MountPoints
 +
 
 +
ObjectId
 +
 
 +
OpenCreateGeneral
 +
 
 +
OpenCreateParameters
 +
 
 +
OpLocks
 +
 
 +
Quotas
 +
 
 +
ReadWrite
 +
 
 +
ReparsePoints
 +
 
 +
SectionsCaching
 +
 
 +
Security
 +
 
 +
SparseFiles
 +
 
 +
StreamEnhancements
 +
 
 +
VolumeInformation
 +
 
 +
 
 +
 
 +
-g ChangeJournal -g ChangeNotification -g CloseCleanupDelete -g DefragEnhancements -g DeviceControl -g DirectoryInformation -g EaInformation -g Encryption -g FileInformation -g FileLocking -g FileSystemControlGeneral -g FileSystemControlVolume -g IfsTestRtl -g MountPoints -g ObjectId -g OpenCreateGeneral -g OpenCreateParameters -g OpLocks -g Quotas -g ReadWrite -g ReparsePoints -g SectionsCaching -g Security -g SparseFiles -g StreamEnhancements -g VolumeInformation
 +
 
 +
== avoiding crashes ==
 +
These suites crash at the moment
 +
 
 +
-g DirectoryInformation -g EaInformation -g FileInformation -g MountPoints -g OpenCreateGeneral
 +
 
 +
so avoid them
 +
 
 +
start /wait ifstest.exe -g Virus -g DirectoryInformation -g EaInformation -g FileInformation -g MountPoints -g OpenCreateGeneral e: /n .\openzfsResults.log /N 356789AB /T /p /m /E -R /j /r c: -d \Ntfs -a \datacoh.exe /u ifstest /U *rw53w52

Latest revision as of 12:42, 20 April 2022

We want to run ifstest.exe

https://docs.microsoft.com/en-us/windows-hardware/test/hlk/testref/14b230f3-7eee-437e-ab2f-375b200de6f3

Grab the Virtual Hardware Lab Kit[edit]

https://docs.microsoft.com/en-us/windows-hardware/test/hlk/

https://www.microsoft.com/en-us/evalcenter/evaluate-virtual-hardware-lab-kit

Windows 11 Virtual HLK (VHLK) for Windows 11

2019DC-22000.1.co_release.210604-1628-HLK.vhdx

mount the image as d:

Make a stand alone package[edit]

Copy the tests to the target folder

cp D:\Program Files (x86)\Windows Kits\10\Hardware Lab Kit\Tests\amd64\nttest\BASETEST\core_file_services <target>

Copy the missing dll files to the ifs_test_kit folder

cp D:\Program Files (x86)\Windows Kits\10\Hardware Lab Kit\Tests\amd64\nttest\BASETEST\core_file_services\Shared_tests\CiBValidationKit\Tests\ntlog.dll <target>\ifs_test_kit\
cp D:\Program Files (x86)\Windows Kits\10\Hardware Lab Kit\Tests\amd64\nttest\BASETEST\core_file_services\shared_libs\fbslog\FbsLog.dll <target>\ifs_test_kit\


Create new test script

This assumes that the ZFS pool will be mounted at e

ifstestzfs.cmd

REM Copy over ifsTestCleanup.cmd into the current user's startup group
setlocal
set TARGET_LOCATION="%USERPROFILE%\Start Menu\Programs\Startup"
if not exist %TARGET_LOCATION%\ifsTestCleanup.cmd (
	copy .\ifsTestCleanup.cmd %TARGET_LOCATION%
)
endlocal

REM Delete old copies of intermediate log files if any exist.
if exist openzfsResults.log del openzfsResults.log


REM For NTFS volume:
start /wait ifstest.exe -g Virus e: /n .\openzfsResults.log /N 356789AB /T /p /m /E -R /j /r c: -d \Ntfs -a \datacoh.exe /u ifstest /U *rw53w52


zip up


Suite Names[edit]

Virus??


ChangeJournal

ChangeNotification

CloseCleanupDelete

DefragEnhancements

DeviceControl

DirectoryInformation

EaInformation

Encryption

FileInformation

FileLocking

FileSystemControlGeneral

FileSystemControlVolume

IfsTestRtl

MountPoints

ObjectId

OpenCreateGeneral

OpenCreateParameters

OpLocks

Quotas

ReadWrite

ReparsePoints

SectionsCaching

Security

SparseFiles

StreamEnhancements

VolumeInformation


-g ChangeJournal -g ChangeNotification -g CloseCleanupDelete -g DefragEnhancements -g DeviceControl -g DirectoryInformation -g EaInformation -g Encryption -g FileInformation -g FileLocking -g FileSystemControlGeneral -g FileSystemControlVolume -g IfsTestRtl -g MountPoints -g ObjectId -g OpenCreateGeneral -g OpenCreateParameters -g OpLocks -g Quotas -g ReadWrite -g ReparsePoints -g SectionsCaching -g Security -g SparseFiles -g StreamEnhancements -g VolumeInformation

avoiding crashes[edit]

These suites crash at the moment

-g DirectoryInformation -g EaInformation -g FileInformation -g MountPoints -g OpenCreateGeneral

so avoid them

start /wait ifstest.exe -g Virus -g DirectoryInformation -g EaInformation -g FileInformation -g MountPoints -g OpenCreateGeneral e: /n .\openzfsResults.log /N 356789AB /T /p /m /E -R /j /r c: -d \Ntfs -a \datacoh.exe /u ifstest /U *rw53w52