Eelco Dolstra
c5a4dfa660
nix flake {metadata,archive}: Fix chroot stores
...
Fixes
$ nix flake metadata --store /tmp/nix nixpkgs
error: path '/tmp/nix/nix/store/65xpqkz92d9j7k5ric4z8lzhiigxsfbg-source/flake.nix' is not in the Nix store
This has been broken since 598deb2b23
.
2024-09-09 15:41:38 +02:00
tomberek
1c5ad159d6
Merge pull request #10980 from kjeremy/flake-show-description
...
nix flake show: add the description if it exists
2024-08-18 16:31:44 -04:00
Robert Hensing
c458598647
Merge pull request #11297 from shivaraj-bh/flake-apps-description
...
`nix flake show`: Support `meta` attribute for `apps`
2024-08-17 13:12:01 +02:00
shivaraj-bh
2ab93fd5fd
nix flake check
: Add functional tests for apps and formatter
2024-08-17 15:50:06 +05:30
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
Jeremy Kolb
abbaba9122
Use the window size for the entire length
2024-08-08 14:47:57 -04:00
Jeremy Kolb
930818bb1d
Account for total length of 80
2024-08-05 11:02:56 -04:00
Jeremy Kolb
f22cf1fd38
Handle long strings, embedded new lines and empty descriptions
2024-08-05 11:02:55 -04:00
Jeremy Kolb
59b6aafadb
add tests
2024-08-05 11:02:55 -04:00
John Ericson
f4915af71c
Put flake functional tests in their own group
...
This is a nice thing to have, and it made it easier to work on the
Meson-ifcation of these functional tests too.
2024-07-24 22:31:37 -04:00
Eelco Dolstra
05751de32b
Merge pull request #10931 from hercules-ci/test-run-and-shell-envs
...
Test the `run` and `shell` envs for stray variables
2024-07-17 21:21:14 +02:00
Eelco Dolstra
1ff186fc6e
nix flake metadata: Show flake fingerprint
...
This is useful for testing/debugging and maybe for sharing eval caches
(since it tells you what file in ~/.cache/nix/eval-cache-v5 to copy).
2024-07-03 17:00:30 +02:00
Eelco Dolstra
6600b1c7e0
tests/functional/flakes/eval-cache.sh: Don't write a result symlink in the wrong location
2024-07-01 19:10:41 +02:00
Robert Hensing
fd94b74ee5
Fix #10947 ; don't cache disallowed IFD
2024-06-29 13:19:04 +02:00
Cole Helbling
9e9730ef0f
Test that commit-lock-file-summary and its alias work
2024-06-28 14:53:40 -07:00
Robert Hensing
648302b833
tests/functional: Enable more tests in NixOS VM
2024-06-20 14:54:11 +02: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
68b8a28bc4
tests/run.sh: Check that env is mostly unmodified
2024-06-17 17:03:58 +02:00
John Ericson
33241887d1
More quote coalescing
2024-06-12 17:47:54 -04:00
Cameron Dart
b764dd9aa4
housekeeping: shellcheck for tests/functional/flakes/unlocked-override.sh
2024-06-12 17:41:16 -04:00
Cameron Dart
e1ce349d05
housekeeping: shellcheck for tests/functional/flakes/search-root.sh
2024-06-12 17:41:16 -04:00
Cameron Dart
b9768b4872
housekeeping: shellcheck for tests/functional/flakes/mercurial.sh
2024-06-12 17:41:16 -04:00
Cameron Dart
c7b3468968
housekeeping: shellcheck for tests/functional/flakes/inputs.sh
2024-06-12 17:41:16 -04:00
Cameron Dart
d95adb531e
housekeeping: shellcheck for tests/functional/flakes/init.sh
2024-06-12 17:41:16 -04:00
Cameron Dart
71d5baca47
housekeeping: shellcheck for tests/functional/flakes/flake-in-submodule.sh
2024-06-12 17:41:16 -04:00
Cameron Dart
3b853e795b
housekeeping: shellcheck for tests/functional/flakes/circular.sh
2024-06-12 17:41:16 -04:00
Cameron Dart
ece86b7191
housekeeping: shellcheck for tests/functional/flakes/bundle.sh
2024-06-12 17:41:16 -04:00
Cameron Dart
ee57c610ae
housekeeping: shellcheck for tests/functional/flakes/build-paths.sh
2024-06-12 17:41:16 -04:00
Cameron Dart
d81fd4a1c3
housekeeping: shellcheck for tests/functional/flakes/absolute-attr-paths.sh
2024-06-12 17:41:16 -04:00
John Ericson
1e99f324d9
Fix shellcheck issue
...
8b86f415c1
was merged from a CI run that
predated the new linting.
2024-06-03 09:36:48 -04:00
Eelco Dolstra
ecfad6a828
Merge pull request #10564 from edolstra/remove-forceErrors
...
AttrCursor: Remove forceErrors
2024-06-03 15:30:01 +02:00
Jörg Thalheim
69c159811e
add regression test for nix edit
2024-05-31 12:58:47 +02:00
John Ericson
10f864c5ae
Ensure all functional scripts are (a) executable (b) have shebang
...
This is good for shebang, and also good for future build system
simplifications
2024-05-28 12:46:24 -04:00
Eelco Dolstra
8b86f415c1
Add test for the evaluation cache
2024-05-24 16:34:49 +02:00
Eelco Dolstra
9951e14ae0
Handle zip files containing symlinks
...
In streaming mode, libarchive doesn't handle symlinks in zip files
correctly. So write the entire file to disk so libarchive can access
it in random-access mode.
Fixes #10649 . This was broken in cabee98152
.
2024-05-09 19:33:09 +02:00
Eelco Dolstra
1f41682217
Update tests/functional/flakes/flakes.sh
...
Co-authored-by: John Ericson <git@JohnEricson.me>
2024-04-30 18:10:16 +02:00
Eelco Dolstra
f29a220b70
Test that the root of a tree produces /nix/store/<hash1>-<hash2>-source
2024-04-30 17:25:35 +02:00
Eelco Dolstra
503be57bbd
Test baseNameOf behaviour on the root of a flake
2024-04-30 15:43:33 +02:00
Eelco Dolstra
458441c637
Test dirOf behaviour on the root of a flake
2024-04-30 15:34:38 +02:00
Eelco Dolstra
737ce5e81f
Actually run the Mercurial tests
2024-04-08 15:21:57 +02:00
John Ericson
36d92dc80a
Merge pull request #10316 from dottharun/derivation-output-test
...
test: for derivation output selection with `.`
2024-04-03 10:48:04 -04:00
Tharun T
8d84de455e
outputSpecified doesnt exit in top attr-set
2024-04-03 08:26:42 +05:30
Tharun T
52359ca00a
move test to correct file
2024-03-28 02:20:33 +05:30
Cyclic4179
9f7b2b93ce
fixup! add flakes.sh test for shebang supported types of comments
2024-03-27 15:03:54 +01:00
Cyclic4179
6227cd06bd
add flakes.sh test for shebang supported types of comments
2024-03-27 14:55:02 +01:00
Tharun T
53c15336b0
derivation output selection test
2024-03-25 07:43:31 +05:30
Robert Hensing
73cf23275e
Merge pull request #10107 from tweag/repl-file-argument
...
Properly fail on flakerefs that don't point to a directory
2024-03-07 10:04:35 +01:00
Olmo Kramer
b1ad729add
Add test for nix flake update
with multiple inputs
2024-03-03 13:59:39 +01:00
Théophane Hufschmitt
11a1dcc43b
Properly fail on flakerefs that don't point to a directory
...
Directly fail if a flakeref points to something that isn't a directory
instead of falling back to the logic of trying to look up the hierarchy
to find a valid flake root.
Fix https://github.com/NixOS/nix/issues/9868
2024-03-02 10:24:20 +01:00
Eelco Dolstra
66bd1b0298
Merge remote-tracking branch 'origin/master' into pr-shell-env
2024-01-12 12:56:26 +01:00