Skip to content

Commit

Permalink
nix: Run some unit tests in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <nick@nickspinale.com>
  • Loading branch information
nspin committed May 29, 2024
1 parent 5c2626a commit 8be8c74
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions hacking/nix/scope/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,21 @@ superCallPackage ../rust-utils {} self //
shellForMakefile = callPackage ./shell-for-makefile.nix {};
shellForHacking = callPackage ./shell-for-hacking.nix {};

### unit tests

someUnitTests = buildCratesInLayers {
name = "some-unit-tests";
test = true;
rootCrates = with crates; [
sel4-bitfield-ops
sel4-kernel-loader-embed-page-tables
sel4-backtrace-types
];
features = [
"sel4-backtrace-types/full"
];
};

### kernel

mkSeL4 = callPackage ./sel4 {};
Expand Down
2 changes: 2 additions & 0 deletions hacking/nix/top-level/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ in {
map (instance: instance.links) world.instances.all
))

pkgs.build.this.someUnitTests

someConfigurationBuildTests

sel4testInstancesList
Expand Down

0 comments on commit 8be8c74

Please sign in to comment.