Skip to content

Commit

Permalink
Added scripts/{run-all-tests,run-one-test}.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksedgwic committed May 4, 2020
1 parent a9dced1 commit edbb2cc
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contrib/remote_hsmd/NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ Building
./configure --enable-developer
make

Dependencies

sudo dnf install libsecp256k1-devel

pip3 install --user base58
pip3 install --user bitstring
pip3 install --user secp256k1

Run all of the integration tests:
```
SUBDAEMON='hsmd:remote_hsmd' \
Expand Down
9 changes: 9 additions & 0 deletions contrib/remote_hsmd/scripts/run-all-tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/sh

SUBDAEMON='hsmd:remote_hsmd' \
make \
PYTEST_PAR=1 \
DEVELOPER=1 \
VALGRIND=0 \
pytest \
|& tee log
21 changes: 21 additions & 0 deletions contrib/remote_hsmd/scripts/run-one-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/sh

THETEST=$1

export PYTHONPATH=\
`pwd`/hsmd:\
`pwd`/contrib/pylightning:\
`pwd`/contrib/pyln-proto:\
`pwd`/contrib/pyln-testing:\
`pwd`/contrib/pyln-client:\
$PYTHONPATH

TEST_DEBUG=1 \
DEVELOPER=1 \
VALGRIND=0 \
SLOW_MACHINE=1 \
SUBDAEMON='hsmd:remote_hsmd' \
pytest \
$THETEST \
-v --timeout=550 --timeout_method=thread -x -s \
|& tee log

0 comments on commit edbb2cc

Please sign in to comment.