2019-10-22 03:35:35 +00:00
|
|
|
# Bump the test tag here and in .gitlab-ci.yml and CI will take care of updating the cached tarballs
|
2019-11-21 00:47:30 +00:00
|
|
|
TESTS_TAG := v0.9.1
|
2019-10-02 01:04:56 +00:00
|
|
|
TESTS = general minimal mainnet
|
2019-10-22 03:35:35 +00:00
|
|
|
TARBALLS = $(patsubst %,%-$(TESTS_TAG).tar.gz,$(TESTS))
|
2019-10-02 01:04:56 +00:00
|
|
|
|
|
|
|
REPO_NAME := eth2.0-spec-tests
|
|
|
|
OUTPUT_DIR := ./$(REPO_NAME)
|
|
|
|
|
|
|
|
BASE_URL := https://github.com/ethereum/$(REPO_NAME)/releases/download/$(TESTS_TAG)
|
|
|
|
|
2019-10-22 03:35:35 +00:00
|
|
|
$(OUTPUT_DIR): $(TARBALLS)
|
2019-10-02 01:04:56 +00:00
|
|
|
mkdir $(OUTPUT_DIR)
|
2019-10-22 03:35:35 +00:00
|
|
|
for test_tarball in $^; do \
|
|
|
|
tar -xzf $$test_tarball -C $(OUTPUT_DIR);\
|
2019-10-02 01:04:56 +00:00
|
|
|
done
|
|
|
|
|
2019-10-22 03:35:35 +00:00
|
|
|
%-$(TESTS_TAG).tar.gz:
|
|
|
|
wget $(BASE_URL)/$*.tar.gz -O $@
|
|
|
|
|
|
|
|
clean-test-files:
|
|
|
|
rm -rf $(OUTPUT_DIR)
|
|
|
|
|
|
|
|
clean-archives:
|
|
|
|
rm -f $(TARBALLS)
|
|
|
|
|
|
|
|
clean: clean-test-files clean-archives
|
|
|
|
|
|
|
|
.PHONY: clean clean-archives clean-test-files
|