mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-26 22:26:44 +00:00
686b605112
## Proposed Changes * Pretty-print the EIP-3076 tests to match https://github.com/eth2-clients/slashing-protection-interchange-tests/pull/4 * Move the `curl` invocation that downloads the tests to the test executor, removing the build script (closes #1982)
29 lines
676 B
Makefile
29 lines
676 B
Makefile
TESTS_TAG := f495032df9c26c678536cd2b7854e836ea94c217
|
|
GENERATE_DIR := generated-tests
|
|
OUTPUT_DIR := interchange-tests
|
|
TARBALL := $(OUTPUT_DIR)-$(TESTS_TAG).tar.gz
|
|
ARCHIVE_URL := https://github.com/eth2-clients/slashing-protection-interchange-tests/tarball/$(TESTS_TAG)
|
|
|
|
$(OUTPUT_DIR): $(TARBALL)
|
|
rm -rf $@
|
|
mkdir $@
|
|
tar --strip-components=1 -xzf $^ -C $@
|
|
|
|
$(TARBALL):
|
|
curl --fail -L -o $@ $(ARCHIVE_URL)
|
|
|
|
clean-test-files:
|
|
rm -rf $(OUTPUT_DIR)
|
|
|
|
clean-archives:
|
|
rm -f $(TARBALL)
|
|
|
|
generate:
|
|
rm -rf $(GENERATE_DIR)
|
|
cargo run --release --bin test_generator -- $(GENERATE_DIR)
|
|
|
|
clean: clean-test-files clean-archives
|
|
|
|
.PHONY: clean clean-archives clean-test-files generate
|
|
|