2025-06-23 13:18:59 +02:00
|
|
|
import std/os
|
2025-06-25 10:56:16 +02:00
|
|
|
import std/strutils
|
2025-06-23 13:18:59 +02:00
|
|
|
import ./imports
|
|
|
|
|
|
2025-06-25 10:56:16 +02:00
|
|
|
## Limit which integration tests to run by setting the
|
|
|
|
|
## environment variable during compilation. For example:
|
2026-02-19 15:59:15 +11:00
|
|
|
## STORAGE_INTEGRATION_TEST_INCLUDES="testFoo.nim,testBar.nim"
|
|
|
|
|
const includes = getEnv("STORAGE_INTEGRATION_TEST_INCLUDES")
|
2025-06-25 10:56:16 +02:00
|
|
|
|
|
|
|
|
when includes != "":
|
|
|
|
|
# import only the specified tests
|
|
|
|
|
importAll(includes.split(","))
|
|
|
|
|
else:
|
2026-06-12 19:27:16 +04:00
|
|
|
# all tests in integration/, except the nat/ real-topology scenarios, which
|
|
|
|
|
# need podman + the storage-nat image and run via testNatIntegration instead
|
2026-06-12 19:59:28 +04:00
|
|
|
importTests(currentSourcePath().parentDir() / "integration", "/nat/")
|
2022-05-18 14:31:45 +02:00
|
|
|
|
2023-03-09 12:23:45 +01:00
|
|
|
{.warning[UnusedImport]: off.}
|