summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--release.nix4
-rw-r--r--tests/common.nix7
2 files changed, 11 insertions, 0 deletions
diff --git a/release.nix b/release.nix
index 29a2eae..8a6b157 100644
--- a/release.nix
+++ b/release.nix
@@ -3,5 +3,9 @@
{
containerTarball = (import <nixpkgs/nixos/release.nix> {})
.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 <nixpkgs/nixos/tests/make-test.nix> ( { pkgs, ... }: {
+ machine = import ../config/common.nix;
+ testScript = ''
+ $machine->waitForUnit("default.target");
+ $machine->succeed("uname") =~ /Linux/;
+ '';
+})