!jtzdZrQSXtEpeGtzAn:nixos.org

Testing with Nix

85 Members
23 Servers

Load older messages


SenderMessageTime
14 Nov 2023
@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
@artturin:matrix.orgArtturin I suppose runTest when the file has only one test 14:13:39
@nikstur:matrix.orgniksturrunTest uses the read-only pkgs set so is generally a little faster21:23:54
1 Dec 2023
@artturin:matrix.orgArtturinhttps://www.phoronix.com/news/xwayland-run06:38:05
4 Dec 2023
@philiptaron:matrix.org@philiptaron:matrix.org joined the room.20:59:56
5 Dec 2023
@federicodschonborn:matrix.org@federicodschonborn:matrix.org changed their profile picture.00:38:58
9 Dec 2023
* @lewo:matrix.orglewo is trying to find which subtest is failing with a log stream of 10msg/sec :(16:32:21
15 Dec 2023
@me:indeednotjames.com@me:indeednotjames.com joined the room.18:24:11
@me:indeednotjames.com@me:indeednotjames.comdo we have a set of images and other media files in nixpkgs for use in VM tests?18:26:44
@raitobezarius:matrix.orgraitobezariusI am not aware of any beyond classical images coming from existing DE19:41:15
@ultra:beeper.comAlex S changed their profile picture.21:02:38
17 Dec 2023
@djrollins:matrix.orgdeej joined the room.12:27:05
@djrollins:matrix.orgdeej

Hello folks,

I was looking for a bit of guidance on a use case for the Nix integration testing library.

I have a project which connects to different Linux boxes and does some discovery of about the system and performs some tasks (think something like Ansible).

I've really liked using the Nix integration testing library for testing applications on NixOS, however in this project I need to be able to test against many different distro types (Ubuntu, Arch, etc). So, it would be great if I could define some VMs with Vagrantfiles and use those as definitions for nodes in a .nix test file.

All documentation around the integration testing library (understandably) focuses on NixOS VMs. So my first questions before I go too far down this rabbit hole are:

  1. Is this even remotely feasible or is the integration testing tool intrinsically tied to NixOS?
  2. If it is feasible, can anyone suggest some example tests or documentation that might point me in the direction of achieving my goal?
12:27:43

Show newer messages


Back to Room ListRoom Version: 9