tvl-depot/users/Profpatsch
sterni beed354904 feat(users/Profpatsch/writers): testRustSimple to test rust crates
testRustSimple is intended to wrap rustSimpleLib and rustSimpleBin and
theoretically pkgs.buildRustCrate with { buildTests = false; } while
building and running their tests, making them fail if the tests don't
succeed.

This is implemented using nix.drvSeqL which is a perfect fit here:

* { buildTests = true; } only returns an output with the test binaries
  and does not actually run the tests. With drvSeqL we can easily wrap
  this derivation.
* { buildTests = true } doesn't contain anything other derivations want
  to depend on, so it is an derivation output we don't want to have.
  drvSeqL hides the tests derivation away and only requires us to build
  it once.
* Usually drvSeqL has the issue that tests (or advantage) are not rebuilt
  if the test derivation changes. This is no question in this case as
  due to the embedded nature of Rust's test, both the derivation with
  and without tests change anyways regardless of which part was changed.

Future work: Allow injecting other tests?

Change-Id: If6ecfb3a360ce059320dbb05642b391b617aede7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2529
Tested-by: BuildkiteCI
Reviewed-by: Profpatsch <mail@profpatsch.de>
2021-02-14 12:40:06 +00:00
..
arglib fix(users/Profpatsch/arglib): remove env var after read 2021-02-13 20:00:23 +00:00
emacs-tree-sitter-move feat(emacs-tree-sitter-move): shell and json test files 2021-01-01 22:40:38 +00:00
execline feat(users/Profpatsch/execline/exec_helpers): add args() 2021-02-13 20:00:23 +00:00
netencode fix(users/Profpatsch/netencode/gen/dwim): support derivations 2021-02-13 20:00:23 +00:00
netstring feat(users/Profpatsch/netencode): rename spec -> README 2021-01-23 15:37:26 +00:00
nixpkgs-rewriter feat(users/Profpatsch): add script for randomly evaling nixpkgs 2021-01-11 08:58:57 +00:00
writers feat(users/Profpatsch/writers): testRustSimple to test rust crates 2021-02-14 12:40:06 +00:00
lib.nix fix(users/Profpatsch/lib/eprintenv): don’t crash when env is missing 2021-02-13 20:00:23 +00:00
OWNERS feat(users/Profpatsch): add sterni to my user dir OWNERS 2021-02-09 20:46:30 +00:00
read-http.nix feat(users/Profpatsch/{netencode,http-parse}): use HashMap 2021-02-06 21:38:57 +00:00
read-http.rs feat(users/Profpatsch/execline/exec_helpers): add no_args() 2021-02-13 20:00:23 +00:00
rust-crates.nix chore(users/Profpatsch/netencode): move nom dependencies to pkgset 2021-02-13 20:00:23 +00:00
tree-sitter.nix feat(users/Profpatsch/netstring): add rust to_netstring 2021-01-23 15:33:50 +00:00