Skip to content

Commit 5f2cf8d

Browse files
committed
See if zlib-ng actually works without memory errors in the flate2 test-suite
1 parent 9630a7f commit 5f2cf8d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

ci/test.bash

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,32 @@ mv Cargo-zng.toml Cargo.toml
3939
mv systest/Cargo-zng.toml systest/Cargo.toml
4040
$CROSS test --target $TARGET_TRIPLE
4141
$CROSS run --target $TARGET_TRIPLE --manifest-path systest/Cargo.toml
42+
43+
echo === flate2 validation ===
44+
git clone https://github.com/rust-lang/flate2-rs flate2
45+
git worktree add flate2/libz-sys
46+
git worktree add flate2/libz-ng-sys
47+
48+
cd flate2
49+
(cd libz-sys
50+
git submodule update --init
51+
)
52+
(cd libz-ng-sys
53+
git submodule update --init
54+
mv systest/Cargo-zng.toml systest/Cargo.toml
55+
mv Cargo-zng.toml Cargo.toml
56+
)
57+
58+
echo "[workspace]" >> Cargo.toml
59+
mkdir .cargo
60+
cat <<EOF >.cargo/config.toml
61+
[patch."crates-io"]
62+
libz-sys = { path = "./libz-sys" }
63+
libz-ng-sys = { path = "./libz-ng-sys" }
64+
EOF
65+
66+
set -x
67+
$CROSS test --features zlib --target $TARGET_TRIPLE
68+
$CROSS test --features zlib-default --no-default-features --target $TARGET_TRIPLE
69+
$CROSS test --features zlib-ng --no-default-features --target $TARGET_TRIPLE
70+
$CROSS test --features zlib-ng-compat --no-default-features --target $TARGET_TRIPLE

0 commit comments

Comments
 (0)