diff --git a/.travis.yml b/.travis.yml index 1942ce7..6fb6f38 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" diff --git a/test/scenarios/default.py b/test/scenarios/default.py index 0d6c4c3..c128410 100644 --- a/test/scenarios/default.py +++ b/test/scenarios/default.py @@ -79,3 +79,13 @@ succeed("systemctl stop nanopos lightning-charge spark-wallet clightning") 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") +# Check that lightning-loop fails with the right error, making sure +# lightning-loop can connect to lnd +machine.wait_until_succeeds( + log_has_string("lightning-loop", "chain notifier RPC isstill in the process of starting") +) diff --git a/test/scenarios/withnetns.py b/test/scenarios/withnetns.py index d07480b..e33472a 100644 --- a/test/scenarios/withnetns.py +++ b/test/scenarios/withnetns.py @@ -141,3 +141,13 @@ succeed("systemctl stop nanopos lightning-charge spark-wallet clightning") 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") +# Check that lightning-loop fails with the right error, making sure +# lightning-loop can connect to lnd +machine.wait_until_succeeds( + log_has_string("lightning-loop", "chain notifier RPC isstill in the process of starting") +) diff --git a/test/test.nix b/test/test.nix index 6f64ae8..640820c 100644 --- a/test/test.nix +++ b/test/test.nix @@ -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;