diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-06-05 13:12:17 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2023-06-05 13:14:05 +0200 |
commit | c6933d5e516ef2bf7e0254d83771dd185b899b11 (patch) | |
tree | 8b02cbf5f77724961b4a8f9816fbb934f8e78076 /tests | |
parent | Flake: Add nixtest (diff) | |
download | nixos-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.nix | 9 | ||||
-rw-r--r-- | tests/testing_test.nix | 14 |
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; - } -] |