nix-super/doc/manual/src
Valentin Gagarin 33ca905cdb tests: simplify initialisation and wiring
pararameterisation is not actually needed the way things are currently
set up, and it confused me when trying to understand what the code does.

all but one test sources vars-and-functions.sh, which nominally only
defines variables, but in practice is always coupled with the actual
initialisation. while the cleaner way of making this more legible would
be to source variables and initialisation separately, this would produce
a huge diff.

the change requires a few small fixes to keep the tests working:

- only create test home directory during initialisation

  that vars-and-functions.sh wrote to the file system seems not write

- fix creation of the test directory

  due to statefulness, the test home directory was implicitly creating
  the test root, too. decoupling that made it apparent that this was
  probably not intentional, and certainly confusing.

- only source vars-and-functions.sh if init.sh is not needed

  there is one test case that only needs a helper function but no
  initialisation side effects

- remove some unnecessary cleanups and split parts of re-used test code

  there were confusing bits in how initialisation code was repurposed,
  which break if trying to refactor the outer layers naively...
2024-05-13 15:19:49 +02:00
..
advanced-topics Update distibuted-builds.md not to use nix-store info 2024-04-30 17:08:04 +02:00
architecture docs: Refer to the glossary with @docroot@ instead of .. 2024-04-12 11:46:47 -04:00
command-ref Support unit prefixes in configuration settings 2024-05-08 21:11:09 +02:00
contributing tests: simplify initialisation and wiring 2024-05-13 15:19:49 +02:00
figures Move figures 2020-07-24 12:58:31 +02:00
installation Honor the same set of proxy environment variables (#10611) 2024-05-06 15:39:22 -04:00
language Document string context (#8595) 2024-05-08 23:14:00 +02:00
package-management Avoid <name>/<name> in documentation URLs 2023-11-30 09:37:32 -05:00
protocols Fix another typo 2024-04-16 17:43:17 +02:00
release-notes Typo 2024-04-23 10:21:45 +02:00
store Fix store-path.md (#10457) 2024-04-10 21:11:57 +00:00
_redirects move JSON section into Formats and Protocols 2024-02-08 09:13:58 +01:00
c-api.md doc/manual: Add C API to menu 2024-04-24 20:04:18 +02:00
favicon.png show Nix logo in the manual (#9870) 2024-04-03 14:22:47 +00:00
favicon.svg show Nix logo in the manual (#9870) 2024-04-03 14:22:47 +00:00
glossary.md Document string context (#8595) 2024-05-08 23:14:00 +02:00
introduction.md Convert short nix options to long ones 2023-05-17 08:10:30 +01:00
quick-start.md Make search.nixos.org link in quick start clickable 2024-03-06 21:55:02 +00:00
SUMMARY.md.in Document string context (#8595) 2024-05-08 23:14:00 +02:00