Skip to content

Commit 00216b0

Browse files
committed
ci: fix tests
1 parent 7584abf commit 00216b0

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

run-tests.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ do
99
esac
1010
done
1111

12-
CARGO_TARGET_DIR=test-target \
13-
# RUSTFLAGS="-Cinstrument-coverage -C link-arg=-Wl,--wrap=time" \
14-
# LLVM_PROFILE_FILE="default.profraw" \ # fixme this doesn't fix tests
15-
cargo build --release \
16-
&& cargo test --release --package tests "$whichtests" -- --nocapture -Z unstable-options --report-time && fullcoverage=10000
12+
#CARGO_TARGET_DIR=test-target RUSTFLAGS="-Cinstrument-coverage -C link-arg=-Wl,--wrap=time" cargo build --release \
13+
#&& cargo test --release --package tests "$whichtests" -- --nocapture -Z unstable-options --report-time && fullcoverage=10000
14+
CARGO_TARGET_DIR=test-target RUSTFLAGS="-Cinstrument-coverage -C link-arg=-Wl,--wrap=time" cargo build --release \
15+
&& LLVM_PROFILE_FILE="default.profraw" cargo test --release --package tests "$whichtests" -- --nocapture -Z unstable-options --report-time && fullcoverage=10000
1716

1817
if test "$fullcoverage"; then
1918
num_lines=100000

tests/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ f1_940, " -l 3 8 3 4 6 2 -seqfile ../seq.txt -randmove 3 -g ../board.txt -log ze
10291029
};
10301030
let res = snapshot_test_with_folder(BINARY_FOLDER, binary, arguments, Path::new(snapshot_test_dir), with_adjust,
10311031
interactive, coeffs_path_from_run_dir, book_path_from_run_dir,
1032-
"resources/book-tmp.bin", 15, &[], "../thor");
1032+
"resources/book-tmp.bin", 35, &[], "../thor");
10331033
assert!(res);
10341034
}
10351035

0 commit comments

Comments
 (0)