cargo-nextest is a next-generation test runner for Rust.
Build of this tool on OpenBSD-stable (current version = 7.6) and publication of a release synced with official release of cargo-nextest.
For some Rust projects, regression tests are runned with cargo-nextest
instead
of cargo test
. For example, the uutils/coreutils project uses
cargo-nextest to run their tests in GitHub workflows.
cargo-nextest releases are not available on OpenBSD (see https://nexte.st/book/pre-built-binaries.html) and this tool is neither available in OpenBSD-stable ports tree.
As a temporary solution, this repository allows to build cargo-nextest on OpenBSD-stable version and publish "official" releases synced with cargo-nextest releases.
Install requirements to run build script:
- Bash shell
- Curl to download sources
- Rust compiler (with cargo) : version 1.81.0 on OpenBSD 7.6
- zstd library
$ pkg_add -v bash curl rust zstd
Build cargo-nextest
for an official release (NEXTEST_VERSION
) on
OpenBSD-stable (current version = 7.6) with build.sh
script:
$ ./build.sh <NEXTEST_VERSION>
By default, build is done in /tmp/cargo-nextest-build-<NEXTEST_VERSION>
directory (variable WRKDIR
defined in build.sh
).
When a new release of cargo-nextest is published:
- Run
build.sh
on a local OpenBSD-stable host to check if the build is OK for this new version. - Update
NEXTEST_VERSION
in "Build" workflow (.github/workflows/build.yml
) and run it manually to check if the build is OK on GitHub. - Tag the repository with the new version (tag =
major.minor.patch
without a precedingv
) => the workflow "Build and publish" will build and publish the new release.