about summary refs log tree commit diff
path: root/pkgs/test/default.nix
AgeCommit message (Collapse)AuthorFilesLines
2023-01-29pkg-configPackages: initRobert Hensing1-0/+2
2023-01-20tests.overriding: initArtturin1-0/+2
only outputs the first failing test atm
2022-12-25Merge branch 'staging-next' into stagingJan Tojnar1-0/+2
2022-12-19makeHardcodeGsettingsPatch: Add simple testsJan Tojnar1-0/+2
2022-12-10Merge pull request #175649 from Artturin/opt-in-structured-attrsRobert Hensing1-0/+1
stdenv: support opt-in __structuredAttrs
2022-12-09Merge pull request #204692 from Artturin/relative-links-fix-errorArtturi1-0/+2
make-symlinks-relative: fix no such file or directory if output is cr…
2022-12-09tests.hooks.default-stdenv-hooks.make-symlinks-relative: initArtturin1-0/+2
2022-12-08cue: test in tests.cue-validationJörg Thalheim1-0/+2
2022-12-08tests.stdenv: add some env attrset testsArtturin1-0/+1
2022-12-01Merge pull request #182250 from Artturin/fetchpatch2Robert Hensing1-0/+1
fetchpatch2: init
2022-11-15tests.trivial-builders.linkFarm: initBernardo Meurer1-0/+1
2022-08-29tests.coq.overrideCoqDerivation: add testDennis Gosnell1-0/+2
2022-07-20fetchpatch2: initArtturin1-0/+1
allows us to use the new features of patchutils without having to reset all fetchpatch hashes in nixpkgs https://github.com/NixOS/nixpkgs/issues/32084
2022-06-30Merge pull request #164662 from infinisil/fetchurl-curlOpts-listRobert Hensing1-0/+1
fetchurl: Allow passing curl options with spaces
2022-06-30fetchurl: Add curlOptsList testSilvan Mosberger1-0/+1
2022-05-29pkgs.tests: Add regression test for #175196Robert Hensing1-0/+2
2022-05-23Merge remote-tracking branch 'origin/staging-next'Janne Heß1-1/+9
* origin/staging-next: (62 commits) Re-Revert "lua: fix on darwin by using makeBinaryWrapper (#172749)" openldap: fix cross-compilation makeBinaryWrapper: fix codesign on aarch64-darwin python3Packages.ldap: fix linking with openldap 2.5+ Revert "lua: fix on darwin by using makeBinaryWrapper (#172749)" wine: enable parallel build again pkgsi686Linux.gdb: fix formatting for 32-bit systems gtk4: Fix incorrect merge nixos/openldap: use upstream unit defaults openldap: update maintainers openldap: 2.4.58 -> 2.6.2 Revert "Add mingwW64-llvm cross-system." lua: fix on darwin by using makeBinaryWrapper (#172749) python310Packages.python-mimeparse: execute tests pandas: fix darwin build gtk3: 3.24.33 -> 3.24.33-2022-03-11 gtk4: patch fixing g-c-c crashes e2fsprogs: patch for CVE-2022-1304 firefox-unwrapped: fix cross compilation rustc: expose correct llvmPackages for cross compile ...
2022-05-22fetchzip: extraPostFetch -> postFetch && testsArtturin1-0/+1
2022-05-12makeBinaryWrapper: add commentNaïm Favier1-0/+2
2022-05-10makeBinaryWrapper: move into its own folderNaïm Favier1-1/+7
The derivation is complex enough to warrant moving out of all-packages.nix
2022-05-09tests.testers.nixosTest-example: move from tests.nixos-functions.nixosTest-testRobert Hensing1-0/+2
And improve the test a bit, to assert correct wiring of `pkgs`.
2022-04-01Merge master into staging-nextgithub-actions[bot]1-0/+2
2022-04-01tests: Add pkgs-libRobert Hensing1-0/+2
Makes the following work ofborg build tests.pkgs-lib
2022-03-10build-support/writeTextFile: add test for weird file namesK9001-0/+1
2022-02-02tests: Add test for makeWrappertalyz1-0/+2
Co-authored-by: Janne Heß <janne@hess.ooo>
2022-01-08Merge pull request #147690 from pasqui23/hostsRobert Hensing1-0/+1
concatTextFile: init
2021-12-30concatText: test now worksPasquale1-0/+1
2021-12-20Merge pull request #151411 from hercules-ci/pkgs-tests-fetchRobert Hensing1-0/+4
pkgs.tests: Add fetcher tests so ofborg can run them
2021-12-20pkgs.tests: Add fetcher tests so ofborg can run themRobert Hensing1-0/+4
2021-12-16makeBinaryWrapper: Make tests discoverable to OfBorgTobias Bergkvist1-2/+0
Move makeBinaryWrapper tests to pkgs.makeBinaryWrapper.passthru.tests, since OfBorg doesn't discover/skips the tests in the previous location.
2021-12-10Merge pull request #124556 from bergkvist/bergkvist/make-c-wrapperRobert Hensing1-0/+2
Generate tiny compiled binary for wrapping executables
2021-11-15Merge pull request #144564 from jtojnar/php-overridableKim Lindberger1-0/+2
php: Implement overrideAttrs that composes with buildEnv/withExtensions
2021-11-14php: Implement overrideAttrs that composes with buildEnv/withExtensionsJan Tojnar1-0/+2
Hopefully. Also add a couple of tests to check that.
2021-11-08Merge pull request #142825 from cdepillabout/buildDhallUrlDennis Gosnell1-0/+2
dhallPackages.buildDhallUrl: add function for easily building dhall remote imports
2021-11-01test.trivial-builders: Add test cases, fix test runner, renameRobert Hensing1-2/+5
The writeStringReferencesToFile didn't handle non-unique references to the same path correctly.
2021-10-25tests.dhall.buildDhallUrl: add test(cdep)illabout1-0/+2
2021-10-04Add golden tests for make-binary-wrapper.Tobias Bergkvist1-0/+2
To run tests after cloning on linux, use the following: nix-build pkgs/top-level/release.nix -A tests.make-binary-wrapper.x86_64-linux
2021-06-18trivial-builders: refactor writeTextFile to be overridabledeliciouslytyped1-0/+1
This fixes #126344, specifically with the goal of enabling overriding the checkPhase argument. See `design notes` at the end for details. This allows among other things, enabling bash extension for the `checkPhase`. Previously using such bash extensions was prohibited by the `writeShellScript` code because there was no way to enable the extension in the checker. As an example: ```nix (writeShellScript "foo" '' shopt -s extglob echo @(foo|bar) '').overrideAttrs (old: { checkPhase = '' # use subshell to preserve outer environment ( export BASHOPTS shopt -s extglob ${old.checkPhase} ) ''; }) ``` This commit also adds tests for this feature to `pkgs/tests/default.nix`, under `trivial-overriding`. The test code is located at `pkgs/build-support/trivial-builders/test-overriding.nix`. Design notes: ------------- Per discussion with @sternenseemann, the original approach of just wrapping `writeTextFile` in `makeOverridable` had the issue that combined with `callPackage` in the following form, would shadow the `.override` attribute of the `writeTextFile`: ```nix with import <nixpkgs>; callPackage ({writeShellScript}: writeShellScript "foo" "echo foo") ``` A better approach can be seen in this commit, where `checkPhase` is moved from an argument of `writeTextFile`, which is substituted into `buildCommand`, into an `mkDerivation` argument, which is substituted from the environment and `eval`-ed. (see the source) This way we can simple use `.overideAttrs` as usual, and this also makes `checkPhase` a bit more conformant to `mkDerivation` naming, with respect to phases generally being overridable attrs. Co-authored-by: sterni <sternenseemann@systemli.org> Co-authored-by: Naïm Favier <n@monade.li>
2021-05-28Merge pull request #122158 from danieldk/import-cargo-lockDaniël de Kok1-0/+1
rustPlatform.buildRustPackage: support direct use of Cargo.lock
2021-05-28rustPlatform.importCargoLock: add test cases for importCargoLockDaniël de Kok1-0/+1
2021-05-15writeDirectReferencesToFile: initRobert Hensing1-0/+2
2021-05-01tests.haskell*: move into tests.haskell setsternenseemann1-2/+1
This will make it easier to add all haskell related tests to the haskell hydra jobset without updating a list of tests in two places.
2021-04-21tests.vim: init (moved from vim-utils.nix) (#119467)Matthieu Coudron1-0/+2
* tests.vim: init (moved from vim-utils.nix) Moved tests from pkgs/misc/vim-plugins/vim-utils.nix to pkgs/test/vim. Also reduced the amount of generated config: - Make it possible to have an empty config when configured adequately - removed default vim config when using native packages, it could be source of bugs see linked issues (syntax on overrides vim highlights) Things to watch out for: - if you set configure.beforePlugins yourself, you will need to add set nocompatible too not to lose it - filetype indent plugin on | syn on is not enabled anymore by default for the vim-plug installer: I dont think we should override vim defualts, at least not here since it is shared with neovim. Also sometimes it's enabled before plugins (pathogen etc,) which is not consistent. you can run the tests via $ nix-build -A tests.vim
2021-03-17tests.cuda.cuda-sample_*: Init at supported CUDA toolkit versionsJohn Ericson1-0/+2
Since CUDA is unfree, we won't actually use this when testing Nixpkgs officially. But I want to include this as they are useful for users of Nixpkgs trying to set up / debug a CUDA environment.
2020-12-19buildRustCrateTests: Move to tests.buildRustCrateJohn Ericson1-0/+1
I think it is preferable to separate the tests from the "real" packages.
2020-11-28Merge remote-tracking branch 'upstream/master' into aj-rust-custom-targetJohn Ericson1-0/+3
2020-11-13haskell: Add documentationTarball to libJoe Hermaszewski1-0/+1
2020-10-26Recover the complicated situation after my bad mergeVladimír Čunát1-0/+2
I made a mistake merge. Reverting it in c778945806b undid the state on master, but now I realize it crippled the git merge mechanism. As the merge contained a mix of commits from `master..staging-next` and other commits from `staging-next..staging`, it got the `staging-next` branch into a state that was difficult to recover. I reconstructed the "desired" state of staging-next tree by: - checking out the last commit of the problematic range: 4effe769e2b - `git rebase -i --preserve-merges a8a018ddc0` - dropping the mistaken merge commit and its revert from that range (while keeping reapplication from 4effe769e2) - merging the last unaffected staging-next commit (803ca85c209) - fortunately no other commits have been pushed to staging-next yet - applying a diff on staging-next to get it into that state
2020-10-25Revert "Merge #101508: libraw: 0.20.0 -> 0.20.2"Vladimír Čunát1-2/+0
I'm sorry; I didn't notice it contained staging commits. This reverts commit 17f5305b6c20df795c365368d2d868266519599e, reversing changes made to a8a018ddc0a8b5c3d4fa94c94b672c37356bc075.
2020-10-17add testAaron Janse1-0/+2