mirror of
https://github.com/status-im/nim-eth2-scenarios.git
synced 2025-02-26 13:05:15 +00:00
* Delete eth2.0-spec-tests submodule * Delete old conversion procs - no reason to regenerate the json-tests folders * yam to json conversion is unneeded * Introduce a test vector download scripts * update readme * Update readme about LFS
27 lines
647 B
Bash
27 lines
647 B
Bash
#!/bin/bash
|
|
|
|
dl_version() {
|
|
[[ -z "$1" ]] && { echo "usage: dl_version() vX.Y.Z"; exit 1; }
|
|
|
|
[[ -d "tarballs/$1" ]] || {
|
|
mkdir -p "tarballs/$1"
|
|
pushd "tarballs/$1"
|
|
curl -L --remote-name-all "https://github.com/ethereum/eth2.0-spec-tests/releases/download/$1/{general,minimal,mainnet}.tar.gz"
|
|
popd
|
|
}
|
|
}
|
|
|
|
unpack_version() {
|
|
[[ -z "$1" ]] && { echo "usage: unpack_version() vX.Y.Z"; exit 1; }
|
|
|
|
[[ -d "tests-$1" ]] || {
|
|
cat "tarballs/$1"/{general,minimal,mainnet}.tar.gz | tar --one-top-level="tests-$1" --strip-components 1 -xvzf - -i
|
|
}
|
|
}
|
|
|
|
dl_version v0.8.3
|
|
dl_version v0.9.0
|
|
|
|
unpack_version v0.8.3
|
|
unpack_version v0.9.0
|