1 $ProgressPreference = "SilentlyContinue"
2 $ErrorActionPreference = "Stop"
4 $scriptLocation = [System.IO.Path]::GetDirectoryName(
5 $myInvocation.MyCommand.Definition)
7 $testRbdWnbd = "$scriptLocation/test_rbd_wnbd.py"
10 # Powershell doesn't check the command exit code, we'll need to
11 # do it ourselves. Also, in case of native commands, it treats stderr
12 # output as an exception, which is why we'll have to capture it.
15 throw "Command failed: $args"
19 safe_exec python.exe $testRbdWnbd --test-name RbdTest --iterations 100
20 safe_exec python.exe $testRbdWnbd --test-name RbdFioTest --iterations 100
21 safe_exec python.exe $testRbdWnbd --test-name RbdStampTest --iterations 100
23 # It can take a while to setup the partition (~10s), we'll use fewer iterations.
24 safe_exec python.exe $testRbdWnbd --test-name RbdFsTest --iterations 4
25 safe_exec python.exe $testRbdWnbd --test-name RbdFsFioTest --iterations 4
26 safe_exec python.exe $testRbdWnbd --test-name RbdFsStampTest --iterations 4
28 # The live resize feature is not available in Quincy. Uncomment the following if
30 # safe_exec python.exe $testRbdWnbd `
31 # --test-name RbdResizeFioTest --image-size-mb 64