2022-09-01 12:00:22 +00:00
|
|
|
import ../config.nims
|
2023-03-01 15:59:44 +00:00
|
|
|
import strutils, os
|
2022-09-01 12:00:22 +00:00
|
|
|
|
|
|
|
--threads:
|
|
|
|
on
|
2022-12-16 11:32:00 +00:00
|
|
|
--d:
|
|
|
|
metrics
|
|
|
|
--d:
|
|
|
|
withoutPCRE
|
2023-02-10 10:32:21 +00:00
|
|
|
--d:
|
|
|
|
libp2p_agents_metrics
|
|
|
|
--d:
|
|
|
|
libp2p_protobuf_metrics
|
|
|
|
--d:
|
|
|
|
libp2p_network_protocols_metrics
|
|
|
|
--d:
|
|
|
|
libp2p_mplex_metrics
|
2023-03-08 11:30:19 +00:00
|
|
|
--d:
|
|
|
|
unittestPrintTime
|
2023-03-01 15:59:44 +00:00
|
|
|
--skipParentCfg
|
2023-02-10 10:32:21 +00:00
|
|
|
|
|
|
|
# Only add chronicles param if the
|
|
|
|
# user didn't specify any
|
|
|
|
var hasChroniclesParam = false
|
2023-03-01 15:59:44 +00:00
|
|
|
for param in 0 ..< system.paramCount():
|
|
|
|
if "chronicles" in system.paramStr(param):
|
2023-02-10 10:32:21 +00:00
|
|
|
hasChroniclesParam = true
|
|
|
|
|
|
|
|
if hasChroniclesParam:
|
|
|
|
echo "Since you specified chronicles params, TRACE won't be tested!"
|
|
|
|
else:
|
2023-03-01 15:59:44 +00:00
|
|
|
let modulePath = currentSourcePath.parentDir / "stublogger"
|
|
|
|
switch("import", modulePath)
|
2023-02-10 10:32:21 +00:00
|
|
|
switch("define", "chronicles_sinks=textlines[stdout],json[dynamic]")
|
|
|
|
switch("define", "chronicles_log_level=TRACE")
|
|
|
|
switch("define", "chronicles_runtime_filtering=TRUE")
|