summaryrefslogtreecommitdiff
path: root/pkgs/test (follow)
Commit message (Expand)AuthorAgeFilesLines
* Merge master into staging-nextnixpkgs-ci[bot]2026-01-183-2/+10
|\
| * tests: migrate some tests from all-packages (#435000)Wolfgang Walther2026-01-182-0/+4
| |\
| | * tests.stdenv: migrate tests-stdenv-gcc-stageCompare from all-packagesjopejoe12026-01-161-0/+2
| | * tests: migrate home-assistant-component-tests from all-packagesjopejoe12026-01-161-0/+2
| * | teams/mercury: handle team with external membership (#478845)Wolfgang Walther2026-01-181-2/+6
| |\ \ | | |/ | |/|
| | * teams/mercury: dropWolfgang Walther2026-01-181-2/+6
* | | Merge master into staging-nextnixpkgs-ci[bot]2026-01-121-0/+2
|\| |
| * | release.nix: move lib-tests into regular nixpkgs tests attrs set (#471130)Wolfgang Walther2026-01-111-0/+2
| |\ \
| | * | release.nix: move lib-tests into regular nixpkgs tests attrs set•••this makes it get tested on all of our supported platforms jopejoe12025-12-151-0/+2
* | | | Merge remote-tracking branch 'origin/staging-next' into stagingK9002026-01-112-0/+38
|\| | |
| * | | haskellPackages.buildFromCabalSdist: respect patches (#474754)Robert Hensing2026-01-112-0/+38
| |\ \ \ | | |_|/ | |/| |
| | * | haskell.lib.buildFromSdist: add test, fix double-patch•••Same issue as buildFromCabalSdist: sdistTarball applies patches via overrideDerivation, but the patches attribute remained, causing patchPhase to apply them again. Robert Hensing2025-12-281-0/+13
| | * | haskellPackages.buildFromCabalSdist: add test, fix double-patch•••srcOnly applies patches, but the resulting derivation still had the patches attribute, causing patchPhase to apply them again. Clear patches after srcOnly to prevent double-application. Robert Hensing2025-12-282-0/+25
| | |/
* | | Merge staging-next into stagingnixpkgs-ci[bot]2026-01-062-14/+2
|\| |
| * | vmTools: add in 9 RHEL-adjacent distros, upgrade Debian/Ubuntu (#471901)Colin2026-01-051-0/+2
| |\ \
| | * | vmTools: use callPackage and fix rotted testsPhilip Taron2026-01-051-0/+2
| * | | treewide: use overlays to pass a custom stdenv to buildPythonPackage / bulidP...Matt Sturgeon2026-01-051-14/+0
| |\ \ \ | | |/ / | |/| |
| | * | test/overriding: remove python deprecated stdenv override tests•••These tests now throw a warning which is prohibited inside Nixpkgs: Passing `stdenv` directly to `buildPythonPackage` or `buildPythonApplication` is deprecated. You should use their `.override` function instead, e.g: buildPythonPackage.override { stdenv = customStdenv; } { } Leona Maroni2026-01-051-14/+0
* | | | Merge staging-next into stagingnixpkgs-ci[bot]2026-01-051-0/+4
|\| | |
| * | | prefer-remote-fetch: Fix evaluation for all fetchers and export additional at...Philip Taron2026-01-051-0/+4
| |\ \ \ | | |/ / | |/| |
| | * | prefer-remote-fetch: Fix evaluation for all fetchers and export additional at...Dustin Frisch2025-12-291-0/+4
| | |/
* | / tests.auto-patchelf-hook-preserve-origin: init•••This adds a test for the autoPatchelfHook --preserve-origin feature. Florian Klink2025-12-174-0/+110
|/ /
* | Merge staging-next into stagingnixpkgs-ci[bot]2025-12-131-0/+65
|\|
| * fix inputDerivation in case of __structuredAttrs (#469652)John Ericson2025-12-131-0/+65
| |\
| | * stdenv: add tests for inputDerivation with allowedReferences, etc.•••Co-authored-by: infinisil <github@infinisil.com> !fixup every test needs a meta field? !fixup refactor inputDerivation tests !fixup fix tests Taeer Bar-Yam2025-12-121-0/+65
* | | Merge staging-next into stagingnixpkgs-ci[bot]2025-12-121-0/+7
|\| |
| * | buildPython*: preserve overrideStdenvCompat on subsequent overrides•••This is needed to support the deprecated method of overriding `stdenv` via `overridePythonAttrs`. Matt Sturgeon2025-12-111-0/+7
* | | Merge staging-next into stagingnixpkgs-ci[bot]2025-12-111-3/+96
|\| |
| * | tests.overriding: add overridePythonAttrs-stdenv-deprecated•••Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk> Yueh-Shun Li2025-12-111-4/+9
| * | tests.overriding: test buildPythonPackage.override•••Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk> Yueh-Shun Li2025-12-111-0/+30
| * | tests.overriding: rename local variable python-package-stub -> package-stubYueh-Shun Li2025-12-111-8/+8
| * | makeOverridablePythonPackage: simplify implementation and make compatible wit...Yueh-Shun Li2025-12-101-4/+62
| |\ \
| | * | makeOverridablePythonPackage: take care of overrideAttrs•••Make it possible to mix overridePythonAttrs and overrideAttrs, i.e. ((<pkg>.overrideAttrs (_: { foo = "a"; })).overridePythonAttrs (_: { })).foo now works Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk> Yueh-Shun Li2025-12-101-0/+39
| | * | tests.overriding: modularize Python tests•••Test with a pseudopackage python-package-stub. Modularize the transforming function and testing function. Yueh-Shun Li2025-12-101-5/+24
* | | | Merge branch 'staging-next' into stagingWolfgang Walther2025-12-101-2/+2
|\| | |
| * | | treewide: clean up 'meta = with' pattern•••This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de> Ihar Hrachyshka2025-12-101-2/+2
| |/ /
* | | Merge staging-next into stagingnixpkgs-ci[bot]2025-12-091-1/+99
|\| |
| * | fetchgit: reference hash from finalAttrs.hashYueh-Shun Li2025-12-101-0/+46
| * | fetchurl: reference outputHash from finalAttrs.hashYueh-Shun Li2025-12-101-1/+53
| |/
* | Merge staging-next into stagingnixpkgs-ci[bot]2025-12-081-1/+1
|\|
| * tests.pkgs-lib: expose the tests included in itjopejoe12025-12-081-1/+1
* | Merge remote-tracking branch 'origin/staging-next' into stagingK9002025-12-072-13/+18
|\|
| * treewide: fix nix-env eval in crossDavid McFarland2025-12-042-13/+18
* | make-symlinks-relative.sh: optimize - use multiple cores•••This optimizes the performance of the hook on machines with multiple cores. The previous implementation was slow, as it was launching two extra processes per symlink (readlink and ln) while not making use of multiprocessing. The following improvements were made: - don't even execute the hook if dontRewriteSymlinks is set - replace multiple find calls with single find call over all outputs - use xargs -P to process symlinks in parallel - add test to check that the hook operates as expected DavHau2025-12-032-30/+63
|/
* tests.checkpointBuildTools: fix hello patchesTom Hunze2025-11-202-33/+33
* Merge branch 'master' into staging-nextVladimír Čunát2025-11-122-6/+8
|\
| * lib.debug.throwTestFailures: init•••`lib.debug.runTests` provides a unit test evaluator for Nix, but its results are returned in a raw and difficult-to-read form. Currently, different callers output the results in various ways: `builtins.throw (builtins.toJSON failures)` and `builtins.throw ("Tests failed: " + lib.generators.toPretty { } failures)` are both used. This change adds a new `lib.debug.throwTestFailures` function which displays the results nicely before throwing an exception (or returns `null` if no failures are given), unifying these disparate call-sites. First, each failing test is pretty-printed in a `trace` message: ``` trace: FAIL testDerivation: Expected: <derivation a> Result: <derivation b> ``` Then, an exception is thrown containing the number of tests that failed (and their names), followed by the raw JSON of the results (for parity with previous usage, and because `lib.generators.toPretty` sometimes omits information that `builins.toJSON` includes): ``` error: … while evaluating the file '...': … caused by explicit throw at /nix/store/.../lib/debug.nix:528:7: 527| in 528| throw ( | ^ 529| builtins.seq traceFailures ( error: 1 tests failed: - testDerivation [{"expected":"/nix/store/xh7kyqp69mxkwspmi81a94m9xx74r8dr-a","name":"testDerivation","result":"/nix/store/503l84nir4zw57d1shfhai25bxxn16c6-b"}] ``` Rebecca Turner2025-11-102-6/+8
* | Merge master into staging-nextnixpkgs-ci[bot]2025-11-061-70/+87
|\|
| * tests.overriding: refactor and allow non-bool expected value (#456848)Matt Sturgeon2025-11-061-70/+87
| |\
| | * tests.overriding: restructure test cases utilizing non-boolean supportYueh-Shun Li2025-11-061-63/+59