mirror of
https://github.com/status-im/nim-codex.git
synced 2025-02-08 00:44:53 +00:00
b959334f9d
# Conflicts: # tests/testIntegration.nim
56 lines
1.9 KiB
Nim
56 lines
1.9 KiB
Nim
# 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
|
|
|
|
{.warning[UnusedImport]: off.}
|
|
|
|
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(
|
|
configs = TestConfigs,
|
|
debugTestHarness = true,
|
|
debugCodexNodes = false,
|
|
# requires CodexConfig.debug to be enabled in the test file (on the marketplacesuite)
|
|
debugHardhat = false,
|
|
)
|
|
try:
|
|
trace "starting test manager"
|
|
await manager.start()
|
|
finally:
|
|
trace "stopping test manager"
|
|
await manager.stop()
|
|
|
|
waitFor run()
|