Farid Zakaria
f394390492
shellcheck fix: tests/functional/local-overlay-store/add-lower-inner.sh
2025-09-28 20:40:08 -07:00
Farid Zakaria
8f0d9412ba
shellcheck fix: tests/functional/local-overlay-store/bad-uris.sh
2025-09-28 20:39:40 -07:00
Farid Zakaria
8f14301533
shellcheck fix: tests/functional/local-overlay-store/build-inner.sh
2025-09-28 20:38:46 -07:00
Farid Zakaria
6cae8da29d
shellcheck fix: tests/functional/local-overlay-store/check-post-init.sh
2025-09-28 20:37:23 -07:00
Farid Zakaria
bb97f4b07a
shellcheck fix: tests/functional/local-overlay-store/common.sh
2025-09-28 20:35:47 -07:00
Farid Zakaria
20665e1c3d
shellcheck fix: tests/functional/local-overlay-store/delete-duplicate-inner.sh
2025-09-28 20:32:49 -07:00
Farid Zakaria
326d626ad7
shellcheck fix: tests/functional/local-overlay-store/delete-refs-inner.sh
2025-09-28 20:32:12 -07:00
Farid Zakaria
62b36eba11
shellcheck fix: tests/functional/local-overlay-store/gc-inner.sh
2025-09-28 20:31:09 -07:00
Farid Zakaria
675179a510
shellcheck fix: tests/functional/local-overlay-store/gc.sh
2025-09-28 20:30:02 -07:00
Farid Zakaria
283a9c4c5a
shellcheck fix: tests/functional/local-overlay-store/optimise-inner.sh
2025-09-28 20:29:35 -07:00
Farid Zakaria
dbb53de9d3
shellcheck fix: tests/functional/local-overlay-store/redundant-add.sh
2025-09-28 20:28:18 -07:00
Farid Zakaria
0c50d5b25a
shellcheck fix: tests/functional/local-overlay-store/redundant-add-inner.sh
2025-09-28 20:27:21 -07:00
Farid Zakaria
e896bf1cb1
shellcheck fix: tests/functional/local-overlay-store/stale-file-handle.sh
2025-09-28 20:24:09 -07:00
Farid Zakaria
3a1ba8e41e
shellcheck fix: tests/functional/local-overlay-store/verify-inner.sh
2025-09-28 20:23:19 -07:00
Farid Zakaria
76c9d3885c
shellcheck fix: tests/functional/local-overlay-store/verify.sh
2025-09-28 20:22:55 -07:00
Sergei Zimmerman
385e2c3542
meson: Apply formatting universally
...
Now that we have applied the [1] patch, the diff is much
nicer and less noisy.
[1]: https://www.github.com/mesonbuild/meson/pull/14861
2025-08-07 02:58:29 +03:00
Jörg Thalheim
da7f7ba810
functional-tests: skip tests if the kernel restricts unprivileged user namespaces
...
Update tests/functional/common/functions.sh
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2024-12-15 16:07:27 +01:00
Eelco Dolstra
f29e7867a9
Revert "Merge pull request #11826 from DeterminateSystems/revert-11804"
...
This reverts commit aeffdeffc8 , reversing
changes made to 723fdeb4f1 .
2024-11-11 15:21:34 +01:00
Eelco Dolstra
67d231c046
Revert "Merge pull request #11804 from obsidiansystems/remove-old-make"
...
This reverts commit 619eeb658a , reversing
changes made to 1af94bf471 .
2024-11-07 13:46:37 +01:00
John Ericson
e70c9bb06a
Remove old build system
2024-11-06 16:09:18 -05:00
John Ericson
9d2ed0a7d3
No longer copy functional tests to the build dir
...
This should make `_NIX_TEST_ACCEPT=1` work again, fixing #11369 .
Progress on #2503
2024-11-03 16:42:38 -05:00
Eelco Dolstra
9243457cb2
Fix umount failure
...
Fixes
```
umount: /tmp/nix-shell.i3xRwX/nix-test/local-overlay-store/delete-refs/stores/merged-store/nix/store: filesystem was unmounted, but failed to update userspace mount table.
make: *** [mk/lib.mk:93: tests/functional/local-overlay-store/delete-refs.sh.test] Error 16
```
in a dev shell.
Note: this previously worked before we didn't have umount in the dev
shell, so we got /run/wrappers/bin/umount.
2024-08-19 17:07:22 +02:00
John Ericson
34fe2478a2
Build Functional tests with Meson
...
Co-Authored-By: Qyriad <qyriad@qyriad.me>
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2024-08-14 15:35:40 -04:00
Robert Hensing
8557d79650
tests/functional: Skip tests that don't work in NixOS environment yet
2024-06-20 14:54:11 +02:00
Robert Hensing
439022c5ac
tests: Add hydraJobs.tests.functional_*
2024-06-20 14:54:11 +02:00
John Ericson
d8ae28617d
Try to fix quotes that don't go to end with sed
2024-06-12 17:41:16 -04:00
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
John Ericson
bd7c26bc7b
Add comment explaining LIBMOUNT_FORCE_MOUNT2=always
2024-04-07 21:55:19 -04:00
cidkidnix
e73dc0e938
Use LIBMOUNT_FORCE_MOUNT2=always to workaround new mount API issues
2024-04-05 16:43:14 -05:00
John Ericson
9b506ff0c1
Activate hermetic.nix variation only for new layered store tests
2024-02-29 10:06:53 -05:00
John Ericson
eae2717e00
tests: Use cp -ar instead of tar-untar pipe
2023-12-11 13:56:18 -05:00
John Ericson
8d0a03b5a2
Fix tests after last rename (path -> pathInLowerStore)
2023-12-11 13:48:42 -05:00
John Ericson
c90e46d3f0
Update tests/functional/local-overlay-store/common.sh
...
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
2023-12-11 13:45:46 -05:00
John Ericson
c93f78f6fa
Fix test a bit from previous commit
2023-12-11 13:36:53 -05:00
John Ericson
6bb13358e6
Update tests/functional/local-overlay-store/redundant-add-inner.sh
...
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
2023-12-11 13:34:09 -05:00
John Ericson
bf0bf3d1be
local-overlay store tests: storeDirs -> setupStoreDirs
...
Co-Authored-By: Théophane Hufschmitt <theophane.hufschmitt@tweag.io>
2023-12-11 13:30:40 -05:00
John Ericson
250c3541bb
Use local-overlay:// not local-overlay for store URL
...
This is a bit uglier, but allows us to avoid an ad-hoc special case in
`store-api.cc`.
2023-10-25 15:29:11 -04:00
John Ericson
5c1cb0b696
Merge remote-tracking branch 'upstream/master' into overlayfs-store
2023-10-23 13:13:37 -04:00