From 8666475b74ecd15bcf546f554c0587f496cd9c8f Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 21 Oct 2022 14:43:55 +0200 Subject: tests: pass lib to examples --- tests/with-lib.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/with-lib.nix (limited to 'tests/with-lib.nix') diff --git a/tests/with-lib.nix b/tests/with-lib.nix new file mode 100644 index 0000000..e94cf00 --- /dev/null +++ b/tests/with-lib.nix @@ -0,0 +1,11 @@ +{ pkgs ? (import { }) +, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest +}: +makeDiskoTest { + disko-config = import ../example/with-lib.nix; + extraTestScript = '' + machine.succeed("mountpoint /"); + ''; + efi = false; + grub-devices = [ "/dev/vdb" ]; +} -- cgit v1.2.3