Skip to content

Commit 3005bd8

Browse files
authored
Merge pull request #178 from Alexhuszagh/datafiles
Migrate all benchmark data files to submodules.
2 parents f11fc84 + 478caac commit 3005bd8

File tree

29 files changed

+162
-271519
lines changed

29 files changed

+162
-271519
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "lexical-parse-float/etc/correctness/test-parse-golang/parse-number-fxx-test-data"]
22
path = lexical-parse-float/etc/correctness/test-parse-golang/parse-number-fxx-test-data
33
url = https://github.com/Alexhuszagh/parse-number-fxx-test-data
4+
[submodule "lexical-benchmark/data"]
5+
path = lexical-benchmark/data
6+
url = https://github.com/Alexhuszagh/rust-lexical-benchmark-data

ci/check.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ set -ex
55

66
# Change to our project home.
77
script_dir=$(dirname "${BASH_SOURCE[0]}")
8-
cd "$script_dir"/..
8+
script_home=$(realpath "${script_dir}")
9+
cd "${script_home}"/..
910

1011
scripts/check.sh
1112
RUSTFLAGS="--deny warnings" cargo +nightly build --features=lint

ci/comprehensive.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ script_home=$(realpath "${script_dir}")
1313
home=$(dirname "${script_home}")
1414
cd "${home}"
1515

16+
# Ensure we have all our testing data files
17+
git submodule update --init
18+
1619
run_tests() {
1720
# Test the parse-float correctness tests
1821
cd "${home}"

ci/miri.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ set -ex
66

77
# Change to our project home.
88
script_dir=$(dirname "${BASH_SOURCE[0]}")
9-
home=$(dirname "${script_dir}")
9+
script_home=$(realpath "${script_dir}")
10+
home=$(dirname "${script_home}")
1011
cd "${home}"
1112

1213
# Print our cargo version, for debugging.
1314
cargo --version
1415

16+
# Ensure we have all our testing data files
17+
git submodule update --init
18+
1519
# Test our Miri logic
1620
rustup component add --toolchain nightly miri &2 > /dev/null || true
1721

ci/test.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ set -ex
66

77
# Change to our project home.
88
script_dir=$(dirname "${BASH_SOURCE[0]}")
9-
home=$(dirname "${script_dir}")
9+
script_home=$(realpath "${script_dir}")
10+
home=$(dirname "${script_home}")
1011
cd "${home}"
1112

1213
# Print our cargo version, for debugging.
1314
cargo --version
1415

16+
# Ensure we have all our benchmark data files
17+
git submodule update --init lexical-benchmark/data
18+
1519
# Force default tests to disable default feature on NO_STD.
1620
if [ ! -z $NO_STD ]; then
1721
DEFAULT_FEATURES="--no-default-features"

lexical-benchmark/data

Submodule data added at c50f472

lexical-benchmark/data/README.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)