Commits on Source (4)
-
Since we'll be using edition = "2021", and we have a virtual workspace[^1], we need to specify the manifest resolver[^2]. Otherwise, cargo emits the following warning: warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions See release note[^3] for details on how this resolver changes the way features are selected for packages inside the workspace. [^1]: https://doc.rust-lang.org/cargo/reference/workspaces.html#virtual-workspace [^2]: https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html [^3]: https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#cargos-new-feature-resolver
7e6f5783 -
Cargo can output the test results as JSON when running with unstable options. This script provides an automake test driver[^1] to run the tests and gather the results in the automake test suite. [^1]: https://www.gnu.org/software/automake/manual/html_node/Overview-of-Custom-Test-Drivers-Support.html
7afc811f -
TEST_EXTENSIONS might be setup from different makefiles included, so it must be defined first.
a29952aa -
Tests are sufficiently integrated into the automake test suite, and only a few features are missing: - Handling skipping and xfailing for rust tests. - Reporting tests by category (lib, doctest, etc) and being able to disable a category, there's currently not enough test to justify this right now. - Handling the incremental building of tests, which currently seems to be triggered everytime.
97e8fd1e
Showing
- Makefile.am 1 addition, 0 deletionsMakefile.am
- buildsystem/cargo-test.py 93 additions, 0 deletionsbuildsystem/cargo-test.py
- src/Makefile.am 3 additions, 0 deletionssrc/Makefile.am
- src/rust/Cargo.toml 1 addition, 0 deletionssrc/rust/Cargo.toml
- src/rust/Makefile.am 15 additions, 0 deletionssrc/rust/Makefile.am
buildsystem/cargo-test.py
0 → 100755
src/rust/Makefile.am
0 → 100644