lib/tests: use subflake to test callLocklessFlake

This commit is contained in:
matthewcroughan 2022-04-12 20:38:55 +01:00
parent cc052779fb
commit ec59145c3b
3 changed files with 16 additions and 3 deletions

View File

@ -0,0 +1,8 @@
{
inputs = {
subflake.url = "path:subflake";
};
outputs = { self, subflake }: {
x = subflake;
};
}

View File

@ -0,0 +1,5 @@
{
outputs = { self }: {
y = 1;
};
}

View File

@ -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