Skip to content

Commit

Permalink
lightning-loop: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nixbitcoin committed Jul 26, 2020
1 parent 007c362 commit 96b36a9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ env:
- PKG=electrs STABLE=1
- PKG=electrs STABLE=0
- PKG=liquid-swap STABLE=1
- PKG=lightning-loop STABLE=0
- PKG=nixops19_09 STABLE=1
script:
- printf '%s (%s)\n' "$NIX_PATH" "$VER"
Expand Down
6 changes: 6 additions & 0 deletions test/scenarios/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,9 @@
succeed("systemctl start lnd")
assert_matches("su operator -c 'lncli getinfo' | jq", '"version"')
assert_no_failure("lnd")

### Test loopd

succeed("systemctl start lightning-loop")
assert_matches("su operator -c 'loop --version'", "version")
assert_no_failure("lightning-loop")
6 changes: 6 additions & 0 deletions test/scenarios/withnetns.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,9 @@
succeed("systemctl start lnd")
assert_matches("su operator -c 'lncli getinfo' | jq", '"version"')
assert_no_failure("lnd")

### Test loopd

succeed("systemctl start lightning-loop")
assert_matches("su operator -c 'loop --version'", "version")
assert_no_failure("lightning-loop")
2 changes: 2 additions & 0 deletions test/test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ import ./make-test.nix rec {

services.lnd.enable = true;
systemd.services.lnd.wantedBy = mkForce [];
services.lightning-loop.enable = true;
systemd.services.lightning-loop.wantedBy = mkForce [];

services.electrs.enable = true;

Expand Down

0 comments on commit 96b36a9

Please sign in to comment.