From ef6f2c07323eb37dbdb5dfa2dd6e4f6b8b9e8c00 Mon Sep 17 00:00:00 2001 From: chonghe Date: Mon, 17 Jul 2023 09:20:23 +0800 Subject: [PATCH] update Makefile --- Makefile | 6 +++++- scripts/cli.sh | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8f744e03c5..02718e0f89 100644 --- a/Makefile +++ b/Makefile @@ -185,8 +185,12 @@ test-exec-engine: # test vectors. test: test-release +# Run bash script to output cli.txt +cli: + /home/hi/cli/lighthouse/scripts/cli.sh # Runs the entire test suite, downloading test vectors if required. -test-full: cargo-fmt test-release test-debug test-ef test-exec-engine +test-full: cargo-fmt test-release test-debug test-ef test-exec-engine cli + # Lints the code for bad style and potentially unsafe arithmetic using Clippy. # Clippy lints are opt-in per-crate for now. By default, everything is allowed except for performance and correctness lints. diff --git a/scripts/cli.sh b/scripts/cli.sh index 95f4421484..b7b001c3b5 100644 --- a/scripts/cli.sh +++ b/scripts/cli.sh @@ -8,6 +8,7 @@ read -p "Enter Lighthouse version: " version binary="curl -LO https://github.com/sigp/lighthouse/releases/download/v$version/lighthouse-v$version-x86_64-unknown-linux-gnu.tar.gz" #download the binary to the present working directory +cd /home/hi/cli/lighthouse/scripts $binary #extract