naersk/test
2024-05-30 13:12:19 +02:00
..
fast Test OpenSSL as a dependency 2024-05-30 13:12:19 +02:00
slow Fix .cargo-home/config warning on nightly, bump probe-rs 2024-04-19 11:58:44 +02:00
default.nix Use TOML serializer from nixpkgs 2023-08-16 11:32:57 +02:00
README.md refactor: Refactor tests into separate files 2022-05-03 12:41:13 +02:00

Tests

This directory contains a handful of naersk's tests; you can run them locally with:

# First, you have to be in the naersk's top-level directory:
$ cd ..

# Then:
$ ./script/test

Caveats

Dynamically-built Git repositories

Some tests (their READMEs will tell you which ones) utilize dynamically-built Git repositories (i.e. repositories built ad hoc during the testing through pkgs.runCommand).

Those tests' Cargo.toml and Cargo.lock contain variables (e.g. $depPath, $depRev etc.) that are substituted through our Nix code before the test is run.

Because of that, it's not possible to execute those tests via cargo test (for whatever the reason you'd like to).