jiff/scripts/test-various-feature-combos
Andrew Gallant fa82f28448 cargo: fix compilation when only tzdb-concatenated is enabled
The problem was an incorrect `cfg`. And, of course, that this feature
combination wasn't being tested. That has been fixed too.

Fixes #365
2025-05-07 19:03:26 -04:00

27 lines
821 B
Bash
Executable file

#!/bin/bash
set -e
# cd to the directory containing this crate's Cargo.toml so that we don't need
# to pass --manifest-path to every `cargo` command.
cd "$(dirname "$0")/.."
features=(
"alloc"
"alloc tzdb-bundle-always"
"alloc serde"
"std"
"std tzdb-bundle-platform tzdb-bundle-always"
"std tzdb-bundle-platform tzdb-bundle-always tzdb-zoneinfo"
"std tzdb-bundle-platform tzdb-zoneinfo"
"std tzdb-bundle-always tzdb-zoneinfo"
"std tzdb-bundle-always logging"
"std tzdb-bundle-always serde"
"std tzdb-concatenated"
)
for f in "${features[@]}"; do
echo "===== FEATURES: '$f' ====="
cargo build --no-default-features --features "$f"
cargo test --lib --no-default-features --features "$f"
cargo test --test integration --no-default-features --features "$f"
done