diff options
author | sterni <sternenseemann@systemli.org> | 2021-02-14T11·52+0100 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2021-02-14T12·40+0000 |
commit | f8c92f41184aef0783269cd535282c422e5bd919 (patch) | |
tree | e4237717f2f8978fb8fc3546b0e345d430acbfc4 /users/Profpatsch/netencode | |
parent | beed354904133f5ea823df92d6a0e52c2fb48e3b (diff) |
feat(users/Profpatsch/netencode-rs): run tests with testRustSimple r/2216
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>
Diffstat (limited to 'users/Profpatsch/netencode')
-rw-r--r-- | users/Profpatsch/netencode/default.nix | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/users/Profpatsch/netencode/default.nix b/users/Profpatsch/netencode/default.nix index 95d05a6ac7f5..52e51e2d6181 100644 --- a/users/Profpatsch/netencode/default.nix +++ b/users/Profpatsch/netencode/default.nix @@ -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 |