]> git.proxmox.com Git - ceph.git/blob - ceph/qa/workunits/windows/run-tests.ps1
import ceph quincy 17.2.6
[ceph.git] / ceph / qa / workunits / windows / run-tests.ps1
1 $ProgressPreference = "SilentlyContinue"
2 $ErrorActionPreference = "Stop"
3
4 $scriptLocation = [System.IO.Path]::GetDirectoryName(
5 $myInvocation.MyCommand.Definition)
6
7 $testRbdWnbd = "$scriptLocation/test_rbd_wnbd.py"
8
9 function safe_exec() {
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.
13 cmd /c "$args 2>&1"
14 if ($LASTEXITCODE) {
15 throw "Command failed: $args"
16 }
17 }
18
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
22
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
27
28 # The live resize feature is not available in Quincy. Uncomment the following if
29 # it gets backported.
30 # safe_exec python.exe $testRbdWnbd `
31 # --test-name RbdResizeFioTest --image-size-mb 64