mirror of
https://github.com/logos-messaging/nim-chat-poc.git
synced 2026-02-27 09:23:08 +00:00
* Contract interface for bindings * Add errorType * Remove Identity files * Update Echo_bot * update cbindings * Add installation name * Update tests * bump libchat dep
22 lines
603 B
Nim
22 lines
603 B
Nim
# Smoke test: validates that the binary links all dependencies at runtime.
|
|
# No networking, no start(), no message exchange — just instantiation.
|
|
import results
|
|
|
|
import ../src/chat
|
|
|
|
proc main() =
|
|
try:
|
|
let waku = initWakuClient(DefaultConfig())
|
|
var client = newClient(waku).get()
|
|
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()
|