2024-12-20 16:23:40 +11:00
|
|
|
# import ./integration/testcli
|
|
|
|
# import ./integration/testrestapi
|
|
|
|
# import ./integration/testupdownload
|
|
|
|
# import ./integration/testsales
|
|
|
|
# import ./integration/testpurchasing
|
|
|
|
# import ./integration/testblockexpiration
|
|
|
|
# import ./integration/testmarketplace
|
|
|
|
# import ./integration/testproofs
|
|
|
|
# import ./integration/testvalidator
|
|
|
|
# import ./integration/testecbug
|
|
|
|
|
|
|
|
import pkg/chronos
|
|
|
|
import pkg/codex/logutils
|
|
|
|
import ./integration/testmanager
|
2022-05-18 14:31:45 +02:00
|
|
|
|
2025-01-21 21:54:46 +01:00
|
|
|
{.warning[UnusedImport]: off.}
|
2024-12-20 16:23:40 +11:00
|
|
|
|
|
|
|
const TestConfigs =
|
|
|
|
@[
|
|
|
|
# IntegrationTestConfig(testFile: "./integration/testcli", startHardhat: true),
|
|
|
|
# IntegrationTestConfig(testFile: "./integration/testrestapi", startHardhat: true),
|
|
|
|
# IntegrationTestConfig(testFile: "./integration/testupdownload", startHardhat: true),
|
|
|
|
# IntegrationTestConfig(testFile: "./integration/testsales", startHardhat: true),
|
|
|
|
# IntegrationTestConfig(testFile: "./integration/testpurchasing", startHardhat: true),
|
|
|
|
# IntegrationTestConfig(testFile: "./integration/testblockexpiration", startHardhat: true),
|
|
|
|
IntegrationTestConfig(
|
|
|
|
name: "Basic Marketplace and payout tests",
|
|
|
|
testFile: "./integration/testmarketplace",
|
|
|
|
startHardhat: true,
|
|
|
|
),
|
|
|
|
# IntegrationTestConfig(testFile: "./integration/testproofs", startHardhat: true),
|
|
|
|
# IntegrationTestConfig(testFile: "./integration/testvalidator", startHardhat: true),
|
|
|
|
IntegrationTestConfig(
|
|
|
|
name: "Erasure Coding Bug",
|
|
|
|
testFile: "./integration/testecbug",
|
|
|
|
startHardhat: true,
|
|
|
|
)
|
|
|
|
]
|
|
|
|
|
|
|
|
proc run() {.async.} =
|
|
|
|
let manager = TestManager.new(
|
2025-01-10 23:22:34 +11:00
|
|
|
configs = TestConfigs,
|
|
|
|
debugTestHarness = true,
|
2025-01-13 14:38:26 +11:00
|
|
|
# Echos stderr if there's a test failure or error (error in running the test)
|
|
|
|
debugCodexNodes = true,
|
|
|
|
# Echos stdout from the Codex process (chronicles logs). If test uses a multinodesuite, requires CodexConfig.debug to be enabled
|
2025-01-10 23:22:34 +11:00
|
|
|
debugHardhat = false,
|
2024-12-20 16:23:40 +11:00
|
|
|
)
|
|
|
|
try:
|
|
|
|
trace "starting test manager"
|
|
|
|
await manager.start()
|
|
|
|
finally:
|
|
|
|
trace "stopping test manager"
|
|
|
|
await manager.stop()
|
|
|
|
|
|
|
|
waitFor run()
|