|
@@ -50,6 +50,11 @@ if ($env:BUILD_TAG -match "-WoW") { $env:LCOW_MODE="" }
|
|
#
|
|
#
|
|
# DOCKER_DUT_DEBUG if defined starts the daemon under test in debug mode.
|
|
# DOCKER_DUT_DEBUG if defined starts the daemon under test in debug mode.
|
|
#
|
|
#
|
|
|
|
+# DOCKER_STORAGE_OPTS comma-separated list of optional storage driver options for the daemon under test
|
|
|
|
+# examples:
|
|
|
|
+# DOCKER_STORAGE_OPTS="size=40G"
|
|
|
|
+# DOCKER_STORAGE_OPTS="lcow.globalmode=false,lcow.kernel=kernel.efi"
|
|
|
|
+#
|
|
# SKIP_VALIDATION_TESTS if defined skips the validation tests
|
|
# SKIP_VALIDATION_TESTS if defined skips the validation tests
|
|
#
|
|
#
|
|
# SKIP_UNIT_TESTS if defined skips the unit tests
|
|
# SKIP_UNIT_TESTS if defined skips the unit tests
|
|
@@ -580,6 +585,15 @@ Try {
|
|
$dutArgs += "--exec-opt isolation=hyperv"
|
|
$dutArgs += "--exec-opt isolation=hyperv"
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ # Arguments: Allow setting optional storage-driver options
|
|
|
|
+ # example usage: DOCKER_STORAGE_OPTS="lcow.globalmode=false,lcow.kernel=kernel.efi"
|
|
|
|
+ if (-not ("$env:DOCKER_STORAGE_OPTS" -eq "")) {
|
|
|
|
+ Write-Host -ForegroundColor Green "INFO: Running the daemon under test with storage-driver options ${env:DOCKER_STORAGE_OPTS}"
|
|
|
|
+ $env:DOCKER_STORAGE_OPTS.Split(",") | ForEach {
|
|
|
|
+ $dutArgs += "--storage-opt $_"
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
# Start the daemon under test, ensuring everything is redirected to folders under $TEMP.
|
|
# Start the daemon under test, ensuring everything is redirected to folders under $TEMP.
|
|
# Important - we launch the -$COMMITHASH version so that we can kill it without
|
|
# Important - we launch the -$COMMITHASH version so that we can kill it without
|
|
# killing the control daemon.
|
|
# killing the control daemon.
|