summary refs log tree commit diff
path: root/pkgs/test
Commit message (Collapse)AuthorAge
* treewide: remove unnecessary enableParallelBuilding when using cmakeBen Siraphob2021-07-20
|
* Merge pull request #130041 from xworld21/texlive-generate-fmtutilcnfDmitry Kalinkin2021-07-17
|\ | | | | texlive: generate fmtutil.cnf
| * tests.texlive.fmtutilCnf: initVincenzo Mantova2021-07-12
| |
* | tests.haskell: set meta.platformssternenseemann2021-07-13
| | | | | | | | | | | | This allows packagePlatforms to pick up on the overall supported platforms and schedule builds on Hydra for more than the evaluation platform (usually x86_64-linux).
* | tests.writers: also expose path via passthrusternenseemann2021-07-13
| |
* | top-level/release-haskell.nix: test writers on all platformssternenseemann2021-07-13
|/ | | | | | | | | | Since the rust writer doesn't seem to get fixed on darwin, we'll just wrap the haskell writer test in our own derivation (which is possible since tests.writers exposes a bunch of internals via passthru) and expose it via tests.haskell which are already in mergeable. Finally a way to test the (hopefully) working haskell writer on darwin again!
* Merge pull request #127489 from xworld21/texlive-drop-hyphens-sedDmitry Kalinkin2021-07-11
|\ | | | | texlive.combine: improve creation of language files
| * tests.texlive.hyphen-base: initVincenzo Mantova2021-07-04
| |
* | Merge staging-next into staginggithub-actions[bot]2021-06-26
|\|
| * Merge branch 'master' into staging-nextRobert Schütz2021-06-26
| |\
| | * tests.texlive.texdoc: initDmitry Kalinkin2021-06-23
| | |
* | | trivial-builders: refactor writeTextFile to be overridabledeliciouslytyped2021-06-18
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge staging-next into staginggithub-actions[bot]2021-06-10
|\|
| * neovim.tests: added more testsMatthieu Coudron2021-06-09
| | | | | | | | | | | | to check for creation of vi/vim aliases. These tests also now follow the coding conventions of having tests in passthru.test .
* | Merge staging-next into staginggithub-actions[bot]2021-06-07
|\|
| * neovim: add some testsMatthieu Coudron2021-06-07
| | | | | | | | | | | | | | | | To test the generated RC is included in the file and that we have the option not to wrap the RC. run: nix-build -A tests.vim
* | Merge staging-next into staginggithub-actions[bot]2021-05-29
|\|
| * neovim: fix neovim.override (#124785)Matthieu Coudron2021-05-29
| | | | | | | | | | | | * neovim: temporary revert to unbreak user configs Newly introduced "plugins" parameter is disabled until we get a better testing infrastructure to minimize breaking changes.
* | Merge staging-next into staginggithub-actions[bot]2021-05-28
|\|
| * Merge pull request #122158 from danieldk/import-cargo-lockDaniël de Kok2021-05-28
| |\ | | | | | | rustPlatform.buildRustPackage: support direct use of Cargo.lock
| | * rustPlatform.importCargoLock: add test cases for importCargoLockDaniël de Kok2021-05-28
| | |
* | | Merge staging-next into staginggithub-actions[bot]2021-05-26
|\| |
| * | wrapNeovimUnstable: accept a wrapRc booleanMatthieu Coudron2021-05-25
| | | | | | | | | | | | | | | | | | | | | additional argument not generated by makeNeovimConfig If true (the default), appends "-u <customRc>" to the wrapped arguments. Set to false if you want to control where to save the generated config (e.g., in ~/.config/init.vim or project/.nvimrc)
| * | neovimUtils: makeNeovimConfig accepts plugins/customRcMatthieu Coudron2021-05-25
| | | | | | | | | | | | mimics home-manager interface and makes it easier to associate configs with plugins. Added a test as well.
* | | Merge pull request #123989 from Mic92/static-pieJörg Thalheim2021-05-25
|\ \ \ | |/ / |/| | glibc: allow to build position-independent static executable
| * | cc-wrapper: don't set rpath on static-pie executablesJörg Thalheim2021-05-23
| | |
* | | Merge remote-tracking branch 'origin/master' into staging-nextJonathan Ringer2021-05-17
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | Conflicts: pkgs/development/tools/rust/cargo-cache/default.nix pkgs/development/tools/rust/cargo-embed/default.nix pkgs/development/tools/rust/cargo-flash/default.nix pkgs/servers/nosql/influxdb2/default.nix
| * | writeDirectReferencesToFile: initRobert Hensing2021-05-15
| | |
* | | treewide: fix cargoSha256/cargoHashDaniël de Kok2021-05-08
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
* | Merge branch 'master' into haskell-updatesMalte Brandy2021-05-07
|\|
| * tests.texlive.dvipng: apply recurseIntoAttrsDmitry Kalinkin2021-05-02
| |
* | tests.haskell-setBuildTarget: inline haskell package def to avoid IFD(cdep)illabout2021-05-02
| |
* | Add haskell.lib.setBuiltTarget, and support non library compiling of a ↵Isaac Shapira2021-05-02
| | | | | | | | single target
* | tests.haskell.shellFor: use writeText instead of toFilesternenseemann2021-05-01
| |
* | tests.haskell.shellFor: replace database-id-class with linearsternenseemann2021-05-01
| | | | | | | | | | | | Contrary to database-id-class, linear is part of stackage and actively maintained, so the test is less likely to fail due to version constraint issues as it is currently.
* | tests.haskell*: move into tests.haskell setsternenseemann2021-05-01
|/ | | | | 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.
* tests.vim: init (moved from vim-utils.nix) (#119467)Matthieu Coudron2021-04-21
| | | | | | | | | | | | | | | | | * 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
* cudatoolkit-{9,9_0,9_1,9_2}: removeDaniël de Kok2021-04-18
| | | | | | | | | | | Remove old CUDA toolkits (and corresponding CuDNN versions). - Not supported by upstream anymore. - We do not use them in nixpkgs. - We do not test or actively maintain them. - Anything but ancient GPUs is supported by newer toolkits. Fixes #107131.
* texlive.bin.dvipng: refactor gs hardcoding, add a test for itDmitry Kalinkin2021-03-18
|
* maintainers-list: obsidian-systems-maintenanceJohn Ericson2021-03-17
| | | | Fix mispelling. That word always breaks me...
* tests.cude.cuda-library-samples.cutensor: init at same version as othersJohn Ericson2021-03-17
|
* tests.cude.cuda-library-samples.{cublas,cusolver}: init at masterJohn Ericson2021-03-17
| | | | | Well, strictly speaking, master + https://github.com/NVIDIA/CUDALibrarySamples/pull/29
* tests.cuda.cuda-sample_*: Init at supported CUDA toolkit versionsJohn Ericson2021-03-17
| | | | | | 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.
* tests.patch-shebangs: add case for ignoring store pathsAndrew Childs2021-02-09
|
* treewide: remove stdenv where not neededPavol Rusnak2021-01-25
|
* treewide: stdenv.lib -> libPavol Rusnak2021-01-24
|
* bintools-wrapper: skip dynamic linker for static binariesJörg Thalheim2020-12-27
|
* Revert "bintools-wrapper: skip dynamic linker for static binaries"Vladimír Čunát2020-12-21
| | | | | | | This reverts commit ccfd26ef14ea213320f0b49db3fb347785b38f06. These toolchain changes are too problematic, so reverting for now; see https://github.com/NixOS/nixpkgs/pull/107086#issuecomment-749196366
* Merge master into staging-nextgithub-actions[bot]2020-12-20
|\
| * buildRustCrateTests: Move to tests.buildRustCrateJohn Ericson2020-12-19
| | | | | | | | I think it is preferable to separate the tests from the "real" packages.