From 9eb8ef9b13641ee57442efd6ce3eeb1eef567765 Mon Sep 17 00:00:00 2001 From: Mauro Lacy Date: Fri, 13 Dec 2024 11:48:51 +0100 Subject: [PATCH] Improve e2e test Makefile targets --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 190a9e9..f210b32 100644 --- a/Makefile +++ b/Makefile @@ -27,10 +27,16 @@ test-all: test test: $(MAKE) -C demo test $(MAKE) -C x test - $(MAKE) -C tests/e2e/ test -test-e2e: +test-e2e: build-docker-e2e test-e2e-cache + +test-e2e-cache: $(MAKE) -C tests/e2e/ test + $(MAKE) test-e2e-bcd-consumer-integration + +clean-e2e: + docker container rm -f $(shell docker container ls -a -q) || true + docker network prune -f || true ############################################################################### ### Linting ### @@ -83,6 +89,8 @@ proto-lint: ### Integration e2e ### ############################################################################### +build-docker-e2e: build-ibcsim-bcd build-babylond + build-ibcsim-bcd: $(MAKE) -C contrib/images ibcsim-bcd @@ -95,4 +103,4 @@ start-bcd-consumer-integration: test-e2e-bcd-consumer-integration: start-bcd-consumer-integration @cd tests/e2e @go test -run TestBCDConsumerIntegrationTestSuite -mod=readonly -timeout=60m -v github.com/babylonlabs-io/babylon-sdk/tests/e2e --tags=e2e - @cd - + @cd -