about summary refs log tree commit diff
path: root/pkgs/test
AgeCommit message (Collapse)AuthorFilesLines
2023-04-04Merge #223741: writeTextFile: chmod before checkPhaseVladimír Čunát1-0/+1
...into staging
2023-04-03Merge pull request #209870 from ↵Bernardo Meurer1-0/+32
amjoseph-nixpkgs/pr/stdenv/external-gcc-bootstrap
2023-04-02pkgs/test/stdenv/default.nix: add gcc-stageCompareAdam Joseph1-0/+32
This commit adds a derivation `gcc-stageCompare` to `pkgs/test/stdenv/default.nix`. It is important to always build this derivation whenever building `stdenv`! Because we are using a Nix-driven bootstrap instead of gcc's built-in `--enable-bootstrap`, the `gcc` derivation no longer performs the post-self-compilation sanity check. You must build this derivation in order to perform that sanity check. The major benefit of this new approach is that the sanity check (which involves a third compilation of gcc) can be performed *concurrently* with all packages that depend on `stdenv`, rather than serially. Since `stdenv` has very little derivation-level parallelism it cannot take advantage of more than one or perhaps two builders. If you have three or more builders this commit will reduce the time-to-rebuild-stdenv by around 20% (one of three gcc rebuilds is removed from the critical path, and stdenv's build time is dominated by roughly 3*gcc + 1*binutils + 1*bison-test-suite). Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-03-29writeTextFile: chmod before checkPhaseNaïm Favier1-0/+1
Set the executable bit before running the check phase, so that the check phase can run the script to test its behaviour. This aligns with what `concatTextFile` is doing. Also use explicit `if` statements so that we don't silently ignore `chmod` failures.
2023-03-17Merge master into staging-nextgithub-actions[bot]1-3/+3
2023-03-17Merge pull request #119362 from xworld21/texlive-combine-fix-buildenvDmitry Kalinkin1-3/+3
texlive.combine: split static $TEXMFDIST into a separate derivation
2023-03-14Merge staging-next into staginggithub-actions[bot]1-0/+9
2023-03-14Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt1-0/+9
Conflicts: - pkgs/development/python-modules/crownstone-cloud/default.nix - pkgs/development/python-modules/exrex/default.nix - pkgs/development/python-modules/mkdocs-minify/default.nix - pkgs/development/python-modules/myjwt/default.nix - pkgs/development/tools/analysis/checkov/default.nix
2023-03-12tests.texlive: check that tlpdb.nix is the one generated from the upstream ↵Vincenzo Mantova1-0/+9
texlive.tlpdb.xz
2023-03-12Merge staging-next into staginggithub-actions[bot]1-0/+20
2023-03-12Merge branch 'master' into staging-nextVladimír Čunát1-0/+20
2023-03-08texlive: add test for lualatex fontsapfelkuchen061-0/+20
2023-03-06Merge staging-next into staginggithub-actions[bot]1-4/+4
2023-03-06Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt1-4/+4
2023-03-04python3Packages.tensorflow: fix `GLIBCXX_3.4.30' not foundSomeone Serge1-4/+4
Make tensorflow (and a bunch of ther things) use CUDA-compatible toolchain. Introduces cudaPackages.backendStdenv
2023-03-02tests.stdenv.outputs-no-out: update expectedMsgArtturin1-1/+1
2023-03-02tests.stdenv.outputs-no-out: cause less rebuildsArtturin1-2/+4
now gcc isn't built
2023-02-23Merge staging-next into staginggithub-actions[bot]2-2/+2
2023-02-23Merge remote-tracking branch 'origin/master' into staging-nextAlyssa Ross2-2/+2
Conflicts: pkgs/development/libraries/pmdk/default.nix
2023-02-23Merge pull request #217206 from Artturin/stdenvimprovements1Bernardo Meurer2-2/+2
2023-02-23Merge staging-next into staginggithub-actions[bot]1-0/+1
2023-02-23Merge master into staging-nextgithub-actions[bot]1-0/+1
2023-02-22treewide: move NIX_CFLAGS_COMPILE to the env attrsetArtturin1-1/+1
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
2023-02-22tests.stdenv.outputs-no-out: fixArtturin1-1/+1
2023-02-22cudaPackages_12: 12.0.0 -> 12.0.1Connor Baker1-0/+1
2023-02-22Merge staging-next into staginggithub-actions[bot]1-2/+1
2023-02-22Merge master into staging-nextgithub-actions[bot]1-2/+1
2023-02-22cuda-samples: init 11.8Connor Baker1-2/+1
2023-02-17tests.stdenv: add hooks.patch-shebangs.split-string & tweak testsArtturin1-37/+65
2023-02-17tests.stdenv: move patch-shebangs testArtturin4-6/+4
2023-02-05texlive.combine: split static $TEXMFDIST into a separate derivationVincenzo Mantova1-3/+3
2023-02-03Merge pull request #211685 from Artturin/splicingstuff1-splitArtturi2-0/+58
2023-01-30Merge staging-next into staginggithub-actions[bot]1-0/+2
2023-01-30Merge master into staging-nextgithub-actions[bot]1-0/+2
2023-01-29top-level/pkg-config: Make tests easy to findRobert Hensing2-97/+1
2023-01-29pkg-configPackages -> defaultPkgConfigPackagesRobert Hensing2-4/+4
This better reflects the purpose of the package set, while leaving room for a fancier, more complete implementation of the concept, with a nicer name.
2023-01-29tests.pkg-configPackages: Copy meta attributes for licensing concernsRobert Hensing1-0/+18
2023-01-29tests.pkg-configPackages: Filter out broken packagesRobert Hensing1-0/+7
Some packages are only marked broken on specific platforms, so we filter those out as well. Consequently, this might not raise an error if the attribute value needs to point to a different pkgs attribute, but this is not something we can detect. For now, we'll have to rely on users of such pkg-config packages to report that kind of error. There's really not much we can do about this here.
2023-01-29tests.pkg-configPackages: Filter out unsupported packagesRobert Hensing2-2/+39
2023-01-29pkg-configPackages: initRobert Hensing2-0/+36
2023-01-28tests.overriding: add repeatedOverrides-pname, repeatedOverrides-entangled-pnameArtturin1-0/+33
from https://github.com/NixOS/nixpkgs/pull/201734#pullrequestreview-1185972282
2023-01-25Merge pull request #212286 from Artturin/runonallArtturi1-1/+11
make-symlinks-relative: run on all outputs
2023-01-23make-symlinks-relative: run on all outputsArtturin1-1/+11
2023-01-20Merge remote-tracking branch 'origin/staging-next' into stagingSergei Trofimovich1-10/+4
Conflicts: pkgs/development/libraries/qt-6/modules/qtbase.nix pkgs/stdenv/linux/make-bootstrap-tools.nix
2023-01-20tests.overriding: initArtturin2-0/+25
only outputs the first failing test atm
2023-01-17tests.kernel-config: remove test that wasn't being runArtturin1-5/+0
it doesn't seem necessary anymore
2023-01-17tests.kernel-config: fixArtturin1-5/+4
error: The option `settings.NIXOS_TEST_BOOLEAN.tristate' has conflicting definition values: - In `structuredExtraConfig': "n" - In `structuredExtraConfig': "y" since https://github.com/NixOS/nixpkgs/pull/90065 yes does not silently win over no
2023-01-16multi-outputs.sh: Improve _assignFirst error messageRobert Hensing1-1/+21
Closes #16182 This improves the error message Error: _assignFirst found no valid variant! which occurred when the set of outputs was not sufficient to set the various outputDev, outputBin, etc variables. Specifically, this would mean that "out" is not among the outputs, which is valid for a derivation. This changes the message to something like error: _assignFirst: could not find a non-empty variable to assign to outputDev. The following variables were all unset or empty: dev out. If you did not define an "out" output, make sure to define all the specific required outputs: define an output for one of the unset variables. While this isn't a full explanation of what stdenv can and can not do, I think it's vast improvement over the 0 bits of information that it used to provide. This at least gives a clue as to what's going on, and even suggests a fix, although probably multiple such fixes are required in an instance where someone starts with a no-out derivation from scratch (and decide to persist).
2023-01-11Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt1-2/+2
2023-01-09treewide: {build,host,target}Platform -> stdenv.{build,host,target}PlatformArtturin1-2/+2