2026-02-13 20:44:50 +01:00
|
|
|
# Smoke test: validates that the binary links all dependencies at runtime.
|
|
|
|
|
# No networking, no start(), no message exchange — just instantiation.
|
2026-02-22 17:51:59 -08:00
|
|
|
import results
|
2026-02-13 20:44:50 +01:00
|
|
|
|
|
|
|
|
import ../src/chat
|
|
|
|
|
|
|
|
|
|
proc main() =
|
|
|
|
|
try:
|
|
|
|
|
let waku = initWakuClient(DefaultConfig())
|
2026-02-22 17:51:59 -08:00
|
|
|
var client = newClient(waku).get()
|
2026-02-13 20:44:50 +01:00
|
|
|
if client.isNil:
|
|
|
|
|
raise newException(CatchableError, "newClient returned nil")
|
|
|
|
|
let id = client.getId()
|
|
|
|
|
echo "smoke_test: OK (client id: " & id & ")"
|
|
|
|
|
quit(QuitSuccess)
|
|
|
|
|
except CatchableError as e:
|
|
|
|
|
echo "smoke_test: FAILED — " & e.msg
|
|
|
|
|
quit(QuitFailure)
|
|
|
|
|
|
|
|
|
|
when isMainModule:
|
|
|
|
|
main()
|