mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
lnprototest: remove.
At this point it needs a complete rewrite to be useful, and it's just constraining development. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
d2e7831d87
commit
1093b43ccf
37
.github/workflows/prototest.yaml
vendored
37
.github/workflows/prototest.yaml
vendored
@ -1,37 +0,0 @@
|
|||||||
---
|
|
||||||
name: LN Proto Test
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- "master"
|
|
||||||
pull_request:
|
|
||||||
jobs:
|
|
||||||
proto-test:
|
|
||||||
name: Protocol Test Config
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
timeout-minutes: 120
|
|
||||||
strategy:
|
|
||||||
fail-fast: true
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- {compiler: clang, db: sqlite3}
|
|
||||||
- {compiler: gcc, db: postgres}
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Build and run
|
|
||||||
run: |
|
|
||||||
docker build -f contrib/docker/Dockerfile.ubuntu -t cln-ci-ubuntu .
|
|
||||||
docker run -e ARCH=${{ matrix.arch }} \
|
|
||||||
-e COMPILER=${{ matrix.compiler }} \
|
|
||||||
-e DB=${{ matrix.db }} \
|
|
||||||
-e NETWORK=${{ matrix.network }} \
|
|
||||||
-e TARGET_HOST=${{ matrix.TARGET_HOST }} \
|
|
||||||
-e VALGRIND=${{ matrix.valgrind }} \
|
|
||||||
-e PYTEST_PAR=2 \
|
|
||||||
-e PYTEST_OPTS="--timeout=300" \
|
|
||||||
-e TEST_CMD="make check-protos" \
|
|
||||||
-e TEST_GROUP=1 \
|
|
||||||
-e TEST_GROUP_COUNT=1 \
|
|
||||||
-e TIMEOUT=120 \
|
|
||||||
cln-ci-ubuntu
|
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -14,9 +14,6 @@
|
|||||||
[submodule "external/gheap"]
|
[submodule "external/gheap"]
|
||||||
path = external/gheap
|
path = external/gheap
|
||||||
url = https://github.com/valyala/gheap
|
url = https://github.com/valyala/gheap
|
||||||
[submodule "external/lnprototest"]
|
|
||||||
path = external/lnprototest
|
|
||||||
url = https://github.com/rustyrussell/lnprototest.git
|
|
||||||
[submodule "external/lowdown"]
|
[submodule "external/lowdown"]
|
||||||
path = external/lowdown
|
path = external/lowdown
|
||||||
url = https://github.com/kristapsdz/lowdown.git
|
url = https://github.com/kristapsdz/lowdown.git
|
||||||
|
11
Makefile
11
Makefile
@ -72,7 +72,7 @@ endif
|
|||||||
|
|
||||||
# (method=thread to support xdist)
|
# (method=thread to support xdist)
|
||||||
PYTEST_OPTS := -v -p no:logging $(PYTEST_OPTS)
|
PYTEST_OPTS := -v -p no:logging $(PYTEST_OPTS)
|
||||||
MY_CHECK_PYTHONPATH=$${PYTHONPATH}$${PYTHONPATH:+:}$(shell pwd)/contrib/pyln-client:$(shell pwd)/contrib/pyln-testing:$(shell pwd)/contrib/pyln-proto/:$(shell pwd)/external/lnprototest:$(shell pwd)/contrib/pyln-spec/bolt1:$(shell pwd)/contrib/pyln-spec/bolt2:$(shell pwd)/contrib/pyln-spec/bolt4:$(shell pwd)/contrib/pyln-spec/bolt7
|
MY_CHECK_PYTHONPATH=$${PYTHONPATH}$${PYTHONPATH:+:}$(shell pwd)/contrib/pyln-client:$(shell pwd)/contrib/pyln-testing:$(shell pwd)/contrib/pyln-proto/:$(shell pwd)/contrib/pyln-spec/bolt1:$(shell pwd)/contrib/pyln-spec/bolt2:$(shell pwd)/contrib/pyln-spec/bolt4:$(shell pwd)/contrib/pyln-spec/bolt7
|
||||||
# Collect generated python files to be excluded from lint checks
|
# Collect generated python files to be excluded from lint checks
|
||||||
PYTHON_GENERATED= \
|
PYTHON_GENERATED= \
|
||||||
contrib/pyln-grpc-proto/pyln/grpc/primitives_pb2.py \
|
contrib/pyln-grpc-proto/pyln/grpc/primitives_pb2.py \
|
||||||
@ -453,14 +453,7 @@ endif
|
|||||||
|
|
||||||
check-units:
|
check-units:
|
||||||
|
|
||||||
check: check-units installcheck check-protos pytest
|
check: check-units installcheck pytest
|
||||||
|
|
||||||
check-protos: $(ALL_PROGRAMS)
|
|
||||||
ifeq ($(PYTEST),)
|
|
||||||
@echo "py.test is required to run the protocol tests, please install using 'pip3 install -r requirements.txt', and rerun 'configure'."; false
|
|
||||||
else
|
|
||||||
@(cd external/lnprototest && PYTHONPATH=$(MY_CHECK_PYTHONPATH) LIGHTNING_SRC=../.. $(PYTEST) --runner lnprototest.clightning.Runner $(PYTEST_OPTS))
|
|
||||||
endif
|
|
||||||
|
|
||||||
pytest: $(ALL_PROGRAMS) $(DEFAULT_TARGETS) $(ALL_TEST_PROGRAMS) $(ALL_TEST_GEN)
|
pytest: $(ALL_PROGRAMS) $(DEFAULT_TARGETS) $(ALL_TEST_PROGRAMS) $(ALL_TEST_GEN)
|
||||||
ifeq ($(PYTEST),)
|
ifeq ($(PYTEST),)
|
||||||
|
3
external/Makefile
vendored
3
external/Makefile
vendored
@ -3,8 +3,7 @@ SUBMODULES = \
|
|||||||
external/libwally-core \
|
external/libwally-core \
|
||||||
external/gheap \
|
external/gheap \
|
||||||
external/jsmn \
|
external/jsmn \
|
||||||
external/libbacktrace \
|
external/libbacktrace
|
||||||
external/lnprototest
|
|
||||||
|
|
||||||
ifeq ($(HAVE_LOWDOWN),0)
|
ifeq ($(HAVE_LOWDOWN),0)
|
||||||
SUBMODULES += external/lowdown
|
SUBMODULES += external/lowdown
|
||||||
|
1
external/lnprototest
vendored
1
external/lnprototest
vendored
@ -1 +0,0 @@
|
|||||||
Subproject commit a8d4dcf6b859f3c11c92a917f7c48b2051dbb4c4
|
|
Loading…
Reference in New Issue
Block a user