lib/tests: use subflake to test callLocklessFlake
This commit is contained in:
parent
cc052779fb
commit
ec59145c3b
8
lib/tests/flakes/subflakeTest/flake.nix
Normal file
8
lib/tests/flakes/subflakeTest/flake.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
inputs = {
|
||||
subflake.url = "path:subflake";
|
||||
};
|
||||
outputs = { self, subflake }: {
|
||||
x = subflake;
|
||||
};
|
||||
}
|
5
lib/tests/flakes/subflakeTest/subflake/flake.nix
Normal file
5
lib/tests/flakes/subflakeTest/subflake/flake.nix
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
outputs = { self }: {
|
||||
y = 1;
|
||||
};
|
||||
}
|
@ -26,10 +26,10 @@ runTests {
|
||||
|
||||
testCallLocklessFlake = {
|
||||
expr = callLocklessFlake {
|
||||
path = ./..;
|
||||
inputs = {};
|
||||
path = ./flakes/subflakeTest;
|
||||
inputs = { subflake = ./flakes/subflakeTest/subflake; };
|
||||
};
|
||||
expected = { lib = import ./..; outPath = ./..; };
|
||||
expected = { x = ./flakes/subflakeTest/subflake; outPath = ./flakes/subflakeTest; };
|
||||
};
|
||||
|
||||
# TRIVIAL
|
||||
|
Loading…
Reference in New Issue
Block a user