mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-28 23:10:54 +00:00
deploy: d05692587dfd0b33373da205c42ea29c2104b581
This commit is contained in:
parent
5b017cbbf8
commit
272a7a9325
@ -1 +1 @@
|
|||||||
1612775840
|
1612793974
|
@ -13,3 +13,7 @@ import
|
|||||||
./v2/test_peer_manager,
|
./v2/test_peer_manager,
|
||||||
./v2/test_web3, # TODO remove it when rln-relay tests get finalized
|
./v2/test_web3, # TODO remove it when rln-relay tests get finalized
|
||||||
./v2/test_waku_rln_relay
|
./v2/test_waku_rln_relay
|
||||||
|
|
||||||
|
# TODO Only enable this once swap module is integrated more nicely as a dependency, i.e. as submodule with CI etc
|
||||||
|
# For PoC execute it manually and run separate module here: https://github.com/vacp2p/swap-contracts-module
|
||||||
|
# ./v2/test_waku_swap_contracts
|
||||||
|
27
tests/v2/test_waku_swap_contracts.nim
Normal file
27
tests/v2/test_waku_swap_contracts.nim
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# Tests of Swap contracts via external module
|
||||||
|
#
|
||||||
|
import
|
||||||
|
std/[unittest, options, tables, sets, osproc, strutils, strformat],
|
||||||
|
../test_helpers, ./utils
|
||||||
|
|
||||||
|
procSuite "Basic balance test":
|
||||||
|
test "Get pwd of swap module":
|
||||||
|
let (output, errC) = osproc.execCmdEx("(cd ../swap-contracts-module && pwd)")
|
||||||
|
echo output
|
||||||
|
|
||||||
|
check:
|
||||||
|
contains(output, "swap-contracts-module")
|
||||||
|
|
||||||
|
test "Get balance from running node":
|
||||||
|
# NOTE: This corresponds to the first default account in Hardhat
|
||||||
|
let taskString = "npx hardhat balance --account 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
|
||||||
|
let cmdString = "cd ../swap-contracts-module; " & &"{taskString}"
|
||||||
|
echo cmdString
|
||||||
|
let (output, errC) = osproc.execCmdEx(cmdString)
|
||||||
|
echo output
|
||||||
|
|
||||||
|
check:
|
||||||
|
contains(output, "ETH")
|
||||||
|
|
||||||
|
# TODO Setup more tasks in Swap module for e2e PoC
|
||||||
|
# TODO Use basic JSON interface instead of strings for basic IO
|
@ -841,7 +841,7 @@ configure:12482: $? = 0
|
|||||||
configure:12482: result: yes
|
configure:12482: result: yes
|
||||||
configure:12499: checking for getexecname
|
configure:12499: checking for getexecname
|
||||||
configure:12499: gcc -o conftest -g -O3 -std=gnu11 -pipe -Wall -Wextra -fPIC conftest.c >&5
|
configure:12499: gcc -o conftest -g -O3 -std=gnu11 -pipe -Wall -Wextra -fPIC conftest.c >&5
|
||||||
/tmp/cc3MtpPn.o: In function `main':
|
/tmp/cc1BSAc8.o: In function `main':
|
||||||
/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/conftest.c:73: undefined reference to `getexecname'
|
/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/conftest.c:73: undefined reference to `getexecname'
|
||||||
collect2: error: ld returned 1 exit status
|
collect2: error: ld returned 1 exit status
|
||||||
configure:12499: $? = 1
|
configure:12499: $? = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user