about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2023-06-05 13:12:17 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2023-06-05 13:14:05 +0200
commitc6933d5e516ef2bf7e0254d83771dd185b899b11 (patch)
tree8b02cbf5f77724961b4a8f9816fbb934f8e78076 /tests
parentFlake: Add nixtest (diff)
downloadnixos-config-c6933d5e516ef2bf7e0254d83771dd185b899b11.tar.gz
nixos-config-c6933d5e516ef2bf7e0254d83771dd185b899b11.tar.bz2
nixos-config-c6933d5e516ef2bf7e0254d83771dd185b899b11.zip
Tests: Add initial flake test
Diffstat (limited to 'tests')
-rw-r--r--tests/flake_test.nix9
-rw-r--r--tests/testing_test.nix14
2 files changed, 9 insertions, 14 deletions
diff --git a/tests/flake_test.nix b/tests/flake_test.nix
new file mode 100644
index 0000000..65f57eb
--- /dev/null
+++ b/tests/flake_test.nix
@@ -0,0 +1,9 @@
+let
+  flake = import ../flake.nix;
+in [
+  {
+    name = "home-manger should follow nixpkgs";
+    actual = flake.inputs.home-manager.inputs.nixpkgs.follows;
+    expected = "nixpkgs";
+  }
+]
diff --git a/tests/testing_test.nix b/tests/testing_test.nix
deleted file mode 100644
index b977fc0..0000000
--- a/tests/testing_test.nix
+++ /dev/null
@@ -1,14 +0,0 @@
-let
-  lib = import ./lib.nix;
-in [
-  {
-    name = "Test function concatenate";
-    actual = lib.concatenate "a" "b";
-    expected = "ab";
-  }
-  {
-    name = "Test function add";
-    actual = lib.add 1 2;
-    expected = 3;
-  }
-]