File tree Expand file tree Collapse file tree 14 files changed +40
-20
lines changed
Expand file tree Collapse file tree 14 files changed +40
-20
lines changed Original file line number Diff line number Diff line change 55
66# Change to our project home.
77script_dir=$( dirname " ${BASH_SOURCE[0]} " )
8- cd " $script_dir " /..
8+ script_home=$( realpath " ${script_dir} " )
9+ cd " ${script_home} " /..
910
1011scripts/check.sh
1112RUSTFLAGS=" --deny warnings" cargo +nightly build --features=lint
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ script_home=$(realpath "${script_dir}")
1313home=$( dirname " ${script_home} " )
1414cd " ${home} "
1515
16+ # Ensure we have all our testing data files
17+ git submodule update --init
18+
1619run_tests () {
1720 # Test the parse-float correctness tests
1821 cd " ${home} "
Original file line number Diff line number Diff line change @@ -6,12 +6,16 @@ set -ex
66
77# Change to our project home.
88script_dir=$( dirname " ${BASH_SOURCE[0]} " )
9- home=$( dirname " ${script_dir} " )
9+ script_home=$( realpath " ${script_dir} " )
10+ home=$( dirname " ${script_home} " )
1011cd " ${home} "
1112
1213# Print our cargo version, for debugging.
1314cargo --version
1415
16+ # Ensure we have all our testing data files
17+ git submodule update --init
18+
1519# Test our Miri logic
1620rustup component add --toolchain nightly miri & 2 > /dev/null || true
1721
Original file line number Diff line number Diff line change @@ -6,12 +6,16 @@ set -ex
66
77# Change to our project home.
88script_dir=$( dirname " ${BASH_SOURCE[0]} " )
9- home=$( dirname " ${script_dir} " )
9+ script_home=$( realpath " ${script_dir} " )
10+ home=$( dirname " ${script_home} " )
1011cd " ${home} "
1112
1213# Print our cargo version, for debugging.
1314cargo --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.
1620if [ ! -z $NO_STD ]; then
1721 DEFAULT_FEATURES=" --no-default-features"
Original file line number Diff line number Diff line change 55
66# Change to our project home.
77script_dir=$( dirname " ${BASH_SOURCE[0]} " )
8- cd " $script_dir " /../lexical-asm
8+ cd " ${ script_dir} " /../lexical-asm
99
1010export RUSTFLAGS=" --emit asm -C llvm-args=-x86-asm-syntax=intel"
1111cargo +nightly build --release " $@ "
Original file line number Diff line number Diff line change 44set -ex
55
66# Change to our project home.
7- script_dir=` dirname " ${BASH_SOURCE[0]} " `
8- cd " $script_dir " /../lexical-benchmark
7+ script_dir=$( dirname " ${BASH_SOURCE[0]} " )
8+ cd " ${ script_dir} " /../lexical-benchmark
99
1010cargo test --bench ' *'
Original file line number Diff line number Diff line change 55
66# Change to our project home.
77script_dir=$( dirname " ${BASH_SOURCE[0]} " )
8- cd " $script_dir " /..
8+ script_home=$( realpath " ${script_dir} " )
9+ cd " ${script_home} " /..
910
1011# Make sure we error on warnings, and don't format in-place.
1112
Original file line number Diff line number Diff line change 1111set -e
1212
1313# Change to our project home.
14- script_dir=` dirname " ${BASH_SOURCE[0]} " `
15- cd " $script_dir " /..
14+ script_dir=$( dirname " ${BASH_SOURCE[0]} " )
15+ script_home=$( realpath " ${script_dir} " )
16+ cd " ${script_home} " /..
1617
1718cargo +nightly tarpaulin
Original file line number Diff line number Diff line change 44set -e
55
66# Change to our project home.
7- script_dir=` dirname " ${BASH_SOURCE[0]} " `
8- cd " $script_dir " /..
7+ script_dir=$( dirname " ${BASH_SOURCE[0]} " )
8+ script_home=$( realpath " ${script_dir} " )
9+ cd " ${script_home} " /..
910
1011cargo +nightly fmt
1112
Original file line number Diff line number Diff line change 44set -e
55
66# Change to our project home.
7- script_dir=` dirname " ${BASH_SOURCE[0]} " `
8- cd " $script_dir " /..
7+ script_dir=$( dirname " ${BASH_SOURCE[0]} " )
8+ script_home=$( realpath " ${script_dir} " )
9+ cd " ${script_home} " /..
910
1011cargo +nightly fuzz run " $@ "
You can’t perform that action at this time.
0 commit comments