mirror of
https://github.com/BurntSushi/jiff.git
synced 2025-12-23 08:47:45 +00:00
... so that we can run each piece in its own job in CI. This creates an obscene number of jobs, but I'm really hoping this cuts down on the total wall clock time.
17 lines
794 B
Bash
Executable file
17 lines
794 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")/.."
|
|
|
|
# This one is useful because sometimes the bundled time zone database can
|
|
# behave differently than the system time zone database depending on the
|
|
# inputs. For example, the bundled database uses as few transitions as possible
|
|
# (this is tzdb's "slim" data model) and thus relies more heavily on POSIX
|
|
# time zone strings. So if there's a bug in POSIX time zone handling, you're
|
|
# likely to see it with the bundled database while missing it completely with
|
|
# the system database.
|
|
echo "===== WITH ONLY THE BUNDLED TIME ZONE DATABASE ====="
|
|
cargo test --no-default-features --features std,tz-system,tzdb-bundle-always
|