nim-eth2-scenarios/README.md

38 lines
1.1 KiB
Markdown
Raw Normal View History

2019-04-05 09:11:18 +00:00
# nim-eth2-official-tests
2019-04-05 09:38:49 +00:00
This repo used to reformat the official Ethereum 2 tests to a format suitable for [Nimbus](https://github.com/status-im/nimbus)/[nim-beacon-chain](https://github.com/status-im/nim-beacon-chain).
Currently it is used for:
- Having multiple test vectors versions side-by-side for progressive update between spec versions
- SSZ test vectors are still using a json format from 0.8.1.
- SSZ test vectors in json requires LFS
2019-04-05 09:38:49 +00:00
2019-04-30 12:44:01 +00:00
## Cloning the repo
### Git LFS (Large File Storage)
2019-04-30 12:44:01 +00:00
You need git-lfs installed to clone the JSON test vectors
2019-04-30 12:44:01 +00:00
```
git lfs install
```
Afterwards any `git clone` will also do the required `git lfs pull` implicitly
2019-04-30 12:44:01 +00:00
It you do not want to download the LFS files, exporting the following variable before `git clone`:
```
export GIT_LFS_SKIP_SMUDGE=1
```
2019-04-05 09:38:49 +00:00
### Cloning and downloading the official test vectors
After cloning the repo, you will need to download the official test vectors.
This is done via the `download_test_vectors.sh` script.
```bash
git clone https://github.com/status-im/nim-eth2-official-tests
cd nim-eth2-official-tests
2019-06-26 13:43:19 +00:00
# Download versioned test vectors
sh download_test_vectors.sh
```