summaryrefslogtreecommitdiffstats
path: root/pkgs/test
AgeCommit message (Collapse)Author
5 daysnixpkgs-vet: update CI, docs, and release to 0.1.4Philip Taron
Everything gets moved into the `ci/` top-level directory. We keep behind `maintainers/scripts/check-by-name.sh` and `pkgs/test/check-by-name/pinned-version.txt` as they are going to cause CI errors and confusion until we get all the way through the various channels. They'll be removed in about a week or so.
13 daysMerge master into staging-nextgithub-actions[bot]
2024-08-25tests.haskell.cabalSdist: Prevent rebuilds when Nix files changeSilvan Mosberger
The generated file sets its own directory as the source, including the generated file itself, which causes rebuilds when that file is reformatted. We can avoid this by overriding the source with a filtered version and using that throughout the tests. See https://github.com/NixOS/nixpkgs/pull/320572 for more context
2024-08-25tests.makeBinaryWrapper: Prevent rebuilds when Nix files changeSilvan Mosberger
The source included way more files than it really needed. This commit limits it to exactly those it needs. This also makes sure that no rebuild is necessary when any Nix file changes, in particular useful when we reformat the Nix files.
2024-08-24Merge master into staging-nextgithub-actions[bot]
2024-08-23autoPatchelfHook: fix testsAzat Bahawi
2024-08-22Merge remote-tracking branch 'origin/staging-next' into stagingK900
2024-08-18tests.texlive: remove with statementsPhilip Taron
2024-08-16Merge staging-next into staginggithub-actions[bot]
2024-08-16Merge pull request #225051 from ShamrockLee/go-module-overlay-stdenvDoron Behar
buildGoModule: Fix overriding with overlay-style stdenv
2024-08-16tests.kernel-config: remove 'with lib;'Felix Buehler
2024-08-13Merge pull request #318614 from wolfgangwalther/structured-attrs-setup-hooksSomeone
treewide: support structuredAttrs in setup hooks
2024-08-11stdenv: concatStringsSep: test sep="&"Someone Serge
The test fails without 64eaa6318185fe0c3e54b0e4e0f2d5b12ebe34ab ("stdenv: concatStringsSep: quote ${sep}") Co-authored-by: Ivan Trubach <mr.trubach@icloud.com> Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2024-08-11buildGoModule: fix overrideAttrs overridingYueh-Shun Li
Fix overriding of vendorHash and various attributes via the fixed point attribute support of stdenv.mkDerivation. Pass as derivation attributes goModules, modRoot, vendorHash, deleteVendor, and proxyVendor. Move goModules and vendorHash out of passthru. Co-authored-by: Doron Behar <doron.behar@gmail.com>
2024-08-07Merge pull request #331398 from MattSturgeon/dotnet-finalAttrsDavid McFarland
buildDotnetModule: add `finalAttrs` support
2024-08-07replaceVars: initPhilip Taron
2024-08-06buildDotnetModule: add `finalAttrs` supportMatt Sturgeon
Allow users to pass arguments to `buildDotnetModule` in the form: ```nix buildDotnetModule (finalAttrs: { # Args }) ``` Exposing the behaviour of the underlying `mkDerivation` and allowing packages to be defined in a recursive way that works correctly even when the package is overridden, e.g. using `overrideAttrs`. Added some simple test cases that piggyback on the existing `structured-attrs` test.
2024-08-04add compressDrv and compressDrvWebMotiejus Jakštys
*compressDrv* compresses files in a given derivation. *compressDrvWeb* compresses a derivation for a loosely-defined pre-compressed "web server" usage. This intends to replace the `passthru.data-compressed` derivations that have accumulated in nixpkgs with something more reusable.
2024-08-02stdenv: add concatStringsSep helperWolfgang Walther
This can be used to separate lists for example with commas, when creating argument strings. This works with both structuredAttrs disabled and enabled.
2024-08-02stdenv: generalize _accumFlagsArray to concatToWolfgang Walther
Passing "flagsArray" as the first argument allows using this function in a few more places.
2024-08-02tests.stdenv: fix spellingWolfgang Walther
2024-07-28Merge pull request #253186 from risicle/ris-hardening-tests-fixupsEmily
cc-wrapper hardeningFlags tests: fix expected behaviour in corner cases, add tests for `stackclashprotection`
2024-07-28Merge pull request #330434 from ShamrockLee/test-overriding-attrsRobert Hensing
tests.overriding: structure tests as an attribut set
2024-07-27tests.overriding: structure tests as an attribut setYueh-Shun Li
Make individual tests accessible via tests.override.tests.<name>
2024-07-26nixpkgs-check-by-name: 0.1.1 -> 0.1.2infinixbot
https://github.com/NixOS/nixpkgs-check-by-name/releases/tag/0.1.2
2024-07-26treewide: remove unused lib (and other) argumentsSigmanificient
2024-07-24tests: enable llvmPackages_git (#329570)Tristan Ross
2024-07-17tests.cuda.cudaPackages: remove __attrsFailEvaluation since the attrset ↵Philip Taron
evaluates
2024-07-15cc-wrapper hardeningFlags tests: fix stdenvUnsupport-based testsRobert Scott
these were not updated to understand hardeningUnsupportedFlagsByTargetPlatform when it was added causing more tests to fail for clang than otherwise would
2024-07-15cc-wrapper hardeningFlags tests: add tests for stackclashprotectionRobert Scott
2024-07-12cc-wrapper hardeningFlags tests: fix expected behaviour in corner casesRobert Scott
also use fortify1-based tests in some places that it may allow us to better test the behaviour of toolchains that only support that
2024-07-03Merge pull request #323398 from NixOS/prep-dev-shellSilvan Mosberger
init `devShellTools`
2024-06-30Merge pull request #319220 from ExpidusOS/fix/test-infinite-recursejade
Fix failures with pkgs/top-level/release-attrpaths-superset.nix
2024-06-30pkgs/test/stdenv/default.nix: fix eval on darwinTristan Ross
2024-06-29devShellTools: init (empty)Robert Hensing
2024-06-26doc: Explain cabalSdist testRobert Hensing
2024-06-21Revert "tests.haskell.cabalSdist.localFromCabalSdist: prevent unnecessary ↵sternenseemann
rebuilds" This reverts commit 81c06bc6094a3a637c90e1ad57616caf2f137a07. Reason for revert: This change breaks the `tests.haskell.cabalSdist.assumptionLocalHasDirectReference` test which relies on checking for the test source store path in the resulting derivation files. 81c06bc6094a3a637c90e1ad57616caf2f137a07 did not account for this in the change (though it should be possible).
2024-06-17tests.haskell.setBuildTarget: prevent unnecessary rebuildsPhilip Taron
2024-06-17tests.haskell.cabalSdist.localFromCabalSdist: prevent unnecessary rebuildsPhilip Taron
2024-06-17Merge pull request #313005 from tie/dotnet-crossDavid McFarland
buildDotnetModule: fix structured attributes support
2024-06-07Merge pull request #317053 from ju1m/fix-pkgs-test-runTestsWill Fancher
pkgs/test: fix silent failures when using runTests
2024-06-04pkgs/test: fix silent failures when using runTestsJulien Moutinho
2024-06-02tests.dotnet.project-references: use dir instead of file outputDavid McFarland
This fixes an error in nixpkgs-review when it tries to pass this to buildEnv: error: The store path [...]project-references-test is a file and can't be merged into an environment using pkgs.buildEnv! at [...]-builder.pl line 122.
2024-05-31Release NixOS 24.05Weijia Wang
2024-05-30treewide: remove unused occurence of fetchFromGitHub argumentisabel
2024-05-29buildDotnetModule: fix structured attributes supportIvan Trubach
This change refactors internal hooks used by buildDotnetModule to support derivations with structured attributes. Note that this changes variable names that the internal hooks expect.
2024-05-13Merge staging-next into staginggithub-actions[bot]
2024-05-12cudaPackagesGoogle: deprecate as only used by tensorflowGaetan Lepage
2024-05-10llvmPackages_*.libcxx: include libcxxabi within libcxxPeter Waller
Key test case: nixpkgs#pkgsStatic.pkgsLLVM.ncurses Prior to this patch, this fails with errors such as: ``` error: undefined symbol: __cxa_throw ``` I think this is a reasonable solution because in #292043, libcxxabi was 'merged into libcxx', however, the commit message suggests that only dynamic linking was accounted for, because it says: ``` * linux/freebsd `libc++.so` is a linker script `LINK(libc++.so.1, -lc++abi)` making `-lc++` sufficient. ``` Whereas, I found that if I tried linking a "hello world" C++ program with a static hostPlatform, it failed unless -lc++abi was passed. Signed-off-by: Peter Waller <p@pwaller.net>
2024-04-24tests.config: Simplify exampleRobert Hensing
authy was about to be removed, so this test had to be updated.