feat(users/Profpatsch/netencode-rs): run tests with testRustSimple
The rust tests are now automatically built and run if users.Profpatsch.netencode-rs is built without changing the content of its output. users.Profpatsch.netencode-rs-tests has been removed in favor of this, but can still be accessed as builtins.head users.Profpatsch.netencode.netencode-rs.drvDeps Change-Id: I25e8191f5b9efa08ace4a584a75978565c79d8d0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2530 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
This commit is contained in:
parent
beed354904
commit
f8c92f4118
1 changed files with 10 additions and 15 deletions
|
@ -6,20 +6,16 @@ let
|
|||
writers;
|
||||
};
|
||||
|
||||
netencode-rs-common = tests: imports.writers.rustSimpleLib {
|
||||
name = "netencode";
|
||||
dependencies = [
|
||||
depot.users.Profpatsch.rust-crates.nom
|
||||
depot.users.Profpatsch.execline.exec-helpers
|
||||
];
|
||||
buildTests = tests;
|
||||
release = false;
|
||||
verbose = true;
|
||||
} (builtins.readFile ./netencode.rs);
|
||||
|
||||
netencode-rs-tests = netencode-rs-common true;
|
||||
|
||||
netencode-rs = netencode-rs-common false;
|
||||
netencode-rs = imports.writers.testRustSimple
|
||||
(imports.writers.rustSimpleLib {
|
||||
name = "netencode";
|
||||
dependencies = [
|
||||
depot.users.Profpatsch.rust-crates.nom
|
||||
depot.users.Profpatsch.execline.exec-helpers
|
||||
];
|
||||
release = false;
|
||||
verbose = true;
|
||||
} (builtins.readFile ./netencode.rs));
|
||||
|
||||
gen = import ./gen.nix { inherit lib; };
|
||||
|
||||
|
@ -132,7 +128,6 @@ let
|
|||
in {
|
||||
inherit
|
||||
netencode-rs
|
||||
netencode-rs-tests
|
||||
netencode-mustache
|
||||
record-get
|
||||
record-splice-env
|
||||
|
|
Loading…
Reference in a new issue