Commit Graph

72 Commits

Author SHA1 Message Date
rogarb
730353966b tests(btrfs): update to fit new behaviour 2023-07-27 08:55:04 +00:00
lassulus
2800cf502a tests cli: use direct mode 2023-07-20 19:17:11 +02:00
lassulus
7e2a3475f0 tests lvm-raid: use grub as systemd-boot is broken with raid1 /boot 2023-07-20 19:03:26 +02:00
lassulus
bfc300b1c2 tests boot-raid1: use grub as systemd-boot is broken with raid1 /boot 2023-07-20 18:43:30 +02:00
lassulus
4df1400b38 makeDiskoTest: remove deprecated grub-devices 2023-07-20 18:31:53 +02:00
lassulus
5ad79f43df add legacy-table test & example 2023-07-19 19:07:40 +00:00
lassulus
715c211dd7 testLib.makeDiskoTest: split extraConfig into nixos-config, extraSystemConfig & extraInstallerConfig 2023-07-19 19:07:40 +00:00
lassulus
056637d3c9 move tests/lib.nix into diskoLib.testLib 2023-07-19 19:07:40 +00:00
lassulus
cd38be93db tests: refactor into testlib; change config devices via fold 2023-07-19 19:07:40 +00:00
arch
7eb0940839 add additionalKeyFiles option to luks 2023-07-14 08:51:17 +00:00
lassulus
c5a31c351e tests zfs: don't read key from prompt 2023-07-11 09:29:28 +02:00
lassulus
b22ebd5ecd tests: get rid of OCR, generate keyFile in preDevice 2023-07-11 09:12:45 +02:00
Jörg Thalheim
1cd619f26f stop vendoring bcachefs
the bcachefs linux fork in nixpkgs is in better shape these days
2023-07-05 09:48:02 +02:00
lassulus
93632ac0ae tests: use diskoScript output 2023-06-16 21:11:44 +02:00
lassulus
6e01bdc086 tests: use module mode by default, export installed-system 2023-06-16 21:11:44 +02:00
Jörg Thalheim
a8d85d9f89 apply deadnix 2023-06-06 13:32:47 +02:00
lassulus
7be0f0cab5 btrfs: create all subvolumes 2023-06-04 08:58:37 +02:00
lassulus
28d4e71950 cli: consume diskoConfigurations or nixosConfigurations disko configs 2023-05-21 14:04:34 +02:00
lassulus
0e942c56d7 tests: add lvm-sizes-sort test 2023-05-15 17:46:04 +02:00
phaer
9da50f9b9f zfs: add tests for hooks
Note that we currently need to hardcode the pool name as it isn't
exposed correctly for the subshells atm.
2023-04-10 22:52:52 +02:00
lassulus
7207e54351 tests: read serial instead of OCR for crypto tests 2023-04-06 08:56:55 +02:00
lassulus
769bde0834 turn disk configs into valid nixos configuration 2023-04-06 08:56:55 +02:00
bors[bot]
07f9727ce6
Merge #154
154: tests: adjust wait_for_text calls to work for systemd-initrd or old stage-1 r=Mic92 a=lilyinstarlight



Co-authored-by: Lily Foster <lily@lily.flowers>
2023-02-21 19:24:05 +00:00
Lily Foster
00a2e2c438
tests: adjust wait_for_text calls to work for systemd-initrd or old stage-1 2023-02-21 11:33:21 -05:00
Lily Foster
1dd1ca3b51
tests: add test names 2023-02-21 11:19:39 -05:00
Lily Foster
0accdf4e20 types,module,tests: run shellcheck on scripts before running them in NixOS tests 2023-02-14 09:07:13 +01:00
Chris Scutcher
ff5127ea0a
style: Re-apply style normalisation
Originally this was manually applied with;

```sh
nixpkgs-fmt **.nix && statix fix
```

but I overlooked the fact that `**.nix` would only expand to files in
the root (I should have used `**/*.nix`).

Previous commit adds `nix fmt` support which passes `.` to `nixpkgs-fmt`
(if no other path is explicitly specified when running `nix fmt`).

This commit includes the changes made by running `nix fmt`.
2023-02-07 15:56:08 +00:00
Chris Scutcher
4ba8181319
style: Disable inherit pattern check in statix
As discussed in [this
comment](https://github.com/nix-community/disko/pull/143#discussion_r1097912402),
as a blanket rule converting everything possible to `inherit` like
statements can hurt readability.

Add config file for statix to disable these checks and fixes, then rerun
the autofix with these options.
2023-02-07 15:37:12 +00:00
Chris Scutcher
08435eec4b
style: Apply nixpkgs-fmt and fix
Apply standard formatting and some statix conventions using;

```sh
nixpkgs-fmt **.nix && statix fix .
```

With the intent of making contribution a bit easier and reducing mental
load in hand formatting (in the same vein as [black]).

[black]: https://github.com/psf/black#the-uncompromising-code-formatter
2023-02-06 14:24:34 +00:00
Ilan Joselevich
3e0b4ddd3b
{example,tests}: add hybrid-tmpfs-on-root 2023-02-02 21:28:36 +02:00
Jörg Thalheim
d23fcb611e add test for hybrid configuration 2023-02-02 14:49:20 +01:00
Jörg Thalheim
eca1957835 vendorize bcachefs kernel 2023-01-23 10:56:51 +01:00
Jörg Thalheim
eca7cb9132 bcachefs support 2023-01-04 09:57:53 +01:00
lassulus
33f93c658e tests zfs: add crypted 2022-12-26 21:13:34 +01:00
lassulus
a3e511d3c8 tests: change passphrase to secretsecret
this is needed for zfs
2022-12-26 21:13:34 +01:00
lassulus
17da9b0708 init disk-deactivate for cleaning up the disk 2022-12-24 20:53:56 +01:00
lassulus
4ce2aa4845 tests swap: add jq to system 2022-12-24 12:13:04 +01:00
Jörg Thalheim
9e2c9d06f5 expose disko for non x86 2022-12-09 14:34:12 +01:00
lassulus
ff7fa87600 add nodev support (for tmpfs, ramfs, nfs) 2022-12-04 12:41:46 +01:00
lassulus
dfb7bd89e1 tests swap: get jq from systemPackages 2022-12-02 12:54:42 +01:00
David Arnold
efc80d7d89 types: init swap 2022-12-02 08:09:37 +01:00
lassulus
0f21bc31fe tests module: test system.build output instead of systemPackages 2022-12-01 20:11:22 +01:00
Jörg Thalheim
67f991e2bc drop environment.systemPackages
Those packages are only used for installation and are not used
afterwards. system.build outputs can be used to get them in an installer
included.
2022-11-29 15:00:25 +01:00
lassulus
417ad31ca5 types: fix negative relative disk size 2022-11-25 08:38:47 +01:00
lassulus
d61fd1522b add regression test for #52 2022-11-10 09:46:55 +01:00
lassulus
c5973aed4e tests: add testBoot parameter to disable boot tests 2022-11-10 09:46:06 +01:00
lassulus
fec0b14fb5 add tests for module and cli 2022-11-01 20:05:10 +01:00
lassulus
c777d1ca4f tests: add simple-efi 2022-10-23 12:29:13 +02:00
lassulus
8666475b74 tests: pass lib to examples 2022-10-23 11:34:39 +02:00
lassulus
9f7f23abdb add nixos tests for disko.config, extend/fix existing tests 2022-10-02 16:41:02 +02:00