From 2f0dc81a765558142dd4381bd7d8370b47b437d9 Mon Sep 17 00:00:00 2001 From: Jun Kimura Date: Fri, 13 Sep 2024 11:38:07 +0900 Subject: [PATCH] add `rm-oz-upgrades` target Signed-off-by: Jun Kimura --- Makefile | 6 +++++- tests/e2e/chains/ethereum/Makefile | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9b910c5..6e59c69 100644 --- a/Makefile +++ b/Makefile @@ -165,5 +165,9 @@ build-images: $(MAKE) -C ./tests/e2e/chains/ethereum build-images .PHONY: e2e-test -e2e-test: $(LCP_BIN) $(Signed_RustEnclave_Name) yrly +e2e-test: e2e-clean $(LCP_BIN) $(Signed_RustEnclave_Name) yrly LCP_BIN=$(LCP_BIN) ./tests/e2e/scripts/run_e2e_test.sh + +.PHONY: e2e-clean +e2e-clean: + $(MAKE) -C ./tests/e2e/chains/ethereum rm-oz-upgrades diff --git a/tests/e2e/chains/ethereum/Makefile b/tests/e2e/chains/ethereum/Makefile index c3b54be..a6c6fb4 100644 --- a/tests/e2e/chains/ethereum/Makefile +++ b/tests/e2e/chains/ethereum/Makefile @@ -134,6 +134,10 @@ dep: clean: $(DOCKER_COMPOSE) run contracts sh -c '$(HARDHAT) clean && rm -rf node_modules && rm -f package-lock.json' +.PHONY: rm-oz-upgrades +rm-oz-upgrades: + $(DOCKER_COMPOSE) run contracts sh -c 'rm -rf .openzeppelin' + .PHONY: extract-abi extract-abi: ./scripts/extract-abi.sh