summary refs log tree commit diff
path: root/pkgs/test
Commit message (Collapse)AuthorAge
* haskellPackages.shellFor: Add extraDependenciesRobert Hensing2022-03-15
| | | | | An example use case is when you have Haskell scripts that use libraries that don't occur in your packages' dependencies.
* tests: Add test for makeWrappertalyz2022-02-02
| | | | Co-authored-by: Janne Heß <janne@hess.ooo>
* neovim.tests: remove aliasSandro2022-01-20
|
* Merge pull request #147690 from pasqui23/hostsRobert Hensing2022-01-08
|\ | | | | concatTextFile: init
| * concatText: test now worksPasquale2021-12-30
| |
* | Merge pull request #151411 from hercules-ci/pkgs-tests-fetchRobert Hensing2021-12-20
|\ \ | | | | | | pkgs.tests: Add fetcher tests so ofborg can run them
| * | pkgs.tests: Add fetcher tests so ofborg can run themRobert Hensing2021-12-20
| | |
* | | makeBinaryWrapper: Fix issues on aarch64-darwin/macOS 12 (Monterey)Tobias Bergkvist2021-12-16
| | | | | | | | | | | | | | | Sanitizers don't seem to be present on aarch64-darwin/macOS 12 (Monterey), so they are removed from the aarch64-darwin tests. Switching from nativeBuildInputs to buildInputs and adding cc to the deps list caused some strange error messages to go away.
* | | makeBinaryWrapper: Fix chdir golden test for darwinTobias Bergkvist2021-12-16
| | | | | | | | | | | | | | | On macOS, /tmp is a symlink to /private/tmp. When performing cd /tmp, and checking cwd - it won't match since it follows the symlink. This caused test breakage on macOS but not Linux. Instead, use a folder which is not a symlink, and consistent across Linux and macOS.
* | | makeBinaryWrapper: Make tests discoverable to OfBorgTobias Bergkvist2021-12-16
|/ / | | | | Move makeBinaryWrapper tests to pkgs.makeBinaryWrapper.passthru.tests, since OfBorg doesn't discover/skips the tests in the previous location.
* | Merge pull request #124556 from bergkvist/bergkvist/make-c-wrapperRobert Hensing2021-12-10
|\ \ | | | | | | Generate tiny compiled binary for wrapping executables
| * | make-binary-wrapper: Add -Wall -Werror -WpedanticJacek Galowicz2021-12-09
| | |
| * | make makeWrapper and makeBinaryWrapper drop-in-replaceableJacek Galowicz2021-12-09
| | |
| * | Inject gcc path into makewrapper scriptJacek Galowicz2021-12-09
| | |
| * | Add golden effects testJacek Galowicz2021-12-09
| | |
| * | Add tests for `--inherit-argv0` and `--chdir DIR`Tobias Bergkvist2021-12-02
| | |
| * | Replace concat3 with asprintf in set_env_prefix and set_env_suffix.Tobias Bergkvist2021-12-01
| | |
| * | Switch from malloc to calloc in addFlagsTobias Bergkvist2021-12-01
| | |
| * | Switch from exit(1) to abort() in assert_successTobias Bergkvist2021-12-01
| | |
| * | Add assertValidEnvName and check that variable name is valid during code ↵Tobias Bergkvist2021-12-01
| | | | | | | | | | | | generation. Add assert_success, and assert that setenv/unsetenv succeeds to crash if they don't
| * | Assert that malloc does not return a NULL pointer for better error messages ↵Tobias Bergkvist2021-11-09
| | | | | | | | | | | | + to satisfy static analysis tools.
| * | Switch from buildInputs to nativeBuildInpuits in makeGoldenTestTobias Bergkvist2021-10-19
| | |
| * | Set strictDeps = true in makeGoldenTestTobias Bergkvist2021-10-19
| | | | | | | | | Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
| * | EditorConfig: Switch from tabs to spacesTobias Bergkvist2021-10-04
| | |
| * | Add golden tests for make-binary-wrapper.Tobias Bergkvist2021-10-04
| | | | | | | | | | | | 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
* | | tests.dhall.generateDhallDirectoryPackage: init(cdep)illabout2021-12-07
| |/ |/|
* | Merge pull request #144564 from jtojnar/php-overridableKim Lindberger2021-11-15
|\ \ | | | | | | php: Implement overrideAttrs that composes with buildEnv/withExtensions
| * | php: Implement overrideAttrs that composes with buildEnv/withExtensionsJan Tojnar2021-11-14
| | | | | | | | | | | | | | | | | | Hopefully. Also add a couple of tests to check that.
* | | Merge master into haskell-updatesgithub-actions[bot]2021-11-09
|\ \ \
| * \ \ Merge pull request #142825 from cdepillabout/buildDhallUrlDennis Gosnell2021-11-08
| |\ \ \ | | |/ / | |/| | dhallPackages.buildDhallUrl: add function for easily building dhall remote imports
| | * | dhallPackages.buildDhallUrl: change argument from dhall-hash to dhallHash(cdep)illabout2021-11-08
| | | |
| | * | dhallPackages.buildDhallUrl: small formatting fixesDennis Gosnell2021-11-01
| | | | | | | | | | | | Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
| | * | tests.dhall.buildDhallUrl: add test(cdep)illabout2021-10-25
| | | |
* | | | haskell: switch from haskell.lib to haskell.lib.composeEllie Hermaszewska2021-11-07
|/ / /
* / / test.trivial-builders: Add test cases, fix test runner, renameRobert Hensing2021-11-01
|/ / | | | | | | | | The writeStringReferencesToFile didn't handle non-unique references to the same path correctly.
* | cudatoolkit_11_{3,4}: init at 11.{3,4}.1Samuel Ainsworth2021-09-21
| |
* | treewide: runCommandNoCC -> runCommandRobert Hensing2021-08-15
| | | | | | | | This has been synonymous for ~5y.
* | 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
|\| |