From 90172f49f859d84d1452d948aaed97acdb0e4c38 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sat, 13 May 2017 11:21:28 -0400 Subject: Add nixos test for basic config. --- release.nix | 4 ++++ tests/common.nix | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/common.nix diff --git a/release.nix b/release.nix index 29a2eae..8a6b157 100644 --- a/release.nix +++ b/release.nix @@ -3,5 +3,9 @@ { containerTarball = (import {}) .containerTarball.x86_64-linux; + + tests = { + common = import tests/common.nix; + }; } diff --git a/tests/common.nix b/tests/common.nix new file mode 100644 index 0000000..bf376e5 --- /dev/null +++ b/tests/common.nix @@ -0,0 +1,7 @@ +import ( { pkgs, ... }: { + machine = import ../config/common.nix; + testScript = '' + $machine->waitForUnit("default.target"); + $machine->succeed("uname") =~ /Linux/; + ''; +}) -- cgit v1.2.3