-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.nix
28 lines (26 loc) · 1.1 KB
/
test.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ pkgs }:
let
nedryland = import ./default.nix;
examples = {
hello = import ./examples/hello/project.nix {
inherit pkgs nedryland;
};
documentation = import ./examples/documentation/project.nix {
inherit pkgs nedryland;
};
dependencies = import ./examples/dependencies/child/project.nix {
inherit pkgs nedryland;
};
};
tests = {
combinedDeployment = builtins.trace "🎪 Running combined deployment test." import ./test/deployment.nix examples.hello.matrix.combinedDeployment.deploy pkgs.lib.assertMsg;
sameWhenFiltered = builtins.trace "🎡 Running filter source tests." import ./test/filter-source.nix pkgs.lib.assertMsg examples.hello.matrix.sameThing1 examples.hello.matrix.sameThing2;
docsTest = builtins.trace "🦖 Running docs tests." import ./test/docs.nix pkgs examples.documentation.matrix;
componentFnsTest = builtins.trace "📦 Running componentFns tests." import ./test/components.nix pkgs.lib.assertMsg;
};
in
builtins.trace
"📠 Running tests for buildPlatform ${pkgs.system}"
(tests // {
all = builtins.attrValues tests;
})