v / .github / workflows / download_full_toml_test_suites.sh
20 lines · 14 sloc · 1.24 KB · fe6162e94dcb8669f7512edd5d39da10a3cc6c5b
Raw
1#!/usr/bin/env bash
2
3set -ex
4
5rm -rf vlib/toml/tests/testdata/iarna vlib/toml/tests/testdata/toml_rs vlib/toml/tests/testdata/toml_lang vlib/toml/tests/testdata/large_toml_file_test.toml
6
7./v retry -- ./v download -o vlib/toml/tests/testdata/large_toml_file_test.toml https://gist.githubusercontent.com/Larpon/89b0e3d94c6903851ff15559e5df7a05/raw/62a1f87a4e37bf157f2e0bfb32d85d840c98e422/large_toml_file_test.toml
8
9./v retry -- git clone -n https://github.com/iarna/toml-spec-tests.git vlib/toml/tests/testdata/iarna
10git -C vlib/toml/tests/testdata/iarna checkout 1880b1a
11
12./v retry -- git clone -n https://github.com/toml-lang/toml-test.git vlib/toml/tests/testdata/toml_lang
13git -C vlib/toml/tests/testdata/toml_lang checkout 229ce2e
14
15# A few history notes of toml-rs (previously alexcrichton):
16# commit 7f5472c the test-suite dir moves to the crates/ sub-directory
17# commit 8461f7c *a lot* of test files are removed in *hope* that they are covered by the compliance test suite (assumed to be BurntSushi/toml-test, later toml-lang/toml-test)
18# commit 9bd454c the last known good commit we can test against
19./v retry -- git clone -n https://github.com/toml-rs/toml.git vlib/toml/tests/testdata/toml_rs
20git -C vlib/toml/tests/testdata/toml_rs reset --hard 9bd454c
21