!jtzdZrQSXtEpeGtzAn:nixos.org

Testing with Nix

89 Members
23 Servers

Load older messages


SenderMessageTime
10 Nov 2023
@raitobezarius:matrix.orgraitobezarius this #testing:nixos.org not #nix:nixos.org 12:04:03
@raitobezarius:matrix.orgraitobezarius * this is #testing:nixos.org not #nix:nixos.org 12:04:06
@vengmark2:matrix.orgl0b0
In reply to @raitobezarius:matrix.org
this is #testing:nixos.org not #nix:nixos.org
Yes, I'm doing this to test with Nix
20:02:38
@raitobezarius:matrix.orgraitobezariusyep but separate concern20:02:46
@vengmark2:matrix.orgl0b0Oh, OK.20:03:14
14 Nov 2023
@bendlas:matrix.orgbendlas joined the room.00:55:51
@bendlas:matrix.orgbendlas I'm interested in implementing a few new nixos tests for postgres, but I haven't gone much into the test suite so far yet. I got the impression that there is something more recent floating around than testing-python.nix. What's the latest on testing? What can/should I use for new tests, for this release already? 00:59:08
@bendlas:matrix.orgbendlasIs there a way to define tests as nixos modules?00:59:10
@vengmark2:matrix.orgl0b0
In reply to @bendlas:matrix.org
Is there a way to define tests as nixos modules?
Oh yes. Have a look at https://github.com/l0b0/nixpkgs/tree/master/nixos/tests
06:13:23
@bendlas:matrix.orgbendlas
In reply to @vengmark2:matrix.org
Oh yes. Have a look at https://github.com/l0b0/nixpkgs/tree/master/nixos/tests
I know that folder. Is there any particular test that you would like me to look at for an example?
12:58:21
@bendlas:matrix.orgbendlas or is your point that import ./make-test-python.nix already accepts a nixos module? 13:00:29
@raitobezarius:matrix.orgraitobezariusMake test Python takes a set of NixOS systems13:02:13
@raitobezarius:matrix.orgraitobezariusWhich can contain any NixOS modules13:02:21
@bendlas:matrix.orgbendlasand how about the tests themselves? say if I want to run the same test with many different parameter sets ... can I use module logic to generate the various instances?13:03:48
@raitobezarius:matrix.orgraitobezariusYou can just use a function to generate the Cartesian product of your variants13:04:15
@bendlas:matrix.orgbendlasAnd also to the second part of my question: Is make-test-python & friends the only game in town?13:04:20
@raitobezarius:matrix.orgraitobezariusYou don't need to use a nixos module for that13:04:21
@raitobezarius:matrix.orgraitobezariusWe have examples already of such tests13:04:27
@raitobezarius:matrix.orgraitobezariusYou just parametrize the test 13:04:39
@bendlas:matrix.orgbendlas
In reply to @raitobezarius:matrix.org
You don't need to use a nixos module for that
might have been convenient though ... but ok, I'm taking that as a "no"
13:05:56
15 Nov 2023
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.16:17:50
@grahamc:nixos.org@grahamc:nixos.org left the room.16:17:50
@qyliss:fairydust.space@qyliss:fairydust.space joined the room.17:26:47
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.18:12:39
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.18:12:39
19 Nov 2023
@pederbs:pvv.ntnu.nopbsds changed their display name from pbsds to pbsds (federation borken, may not see reply).03:35:39
@zxgu:matrix.orgZXGU joined the room.10:59:25
@pederbs:pvv.ntnu.nopbsds changed their display name from pbsds (federation borken, may not see reply) to pbsds.20:38:53
22 Nov 2023
@zarel_it:matrix.org@zarel_it:matrix.org joined the room.09:36:35
25 Nov 2023
@artturin:matrix.orgArtturin

Which one should be used in nixos/test/all-tests.nix

handleTest or runTest?

14:13:04

Show newer messages


Back to Room ListRoom Version: 9