about summary refs log tree commit diff
path: root/pkgs/test
AgeCommit message (Collapse)AuthorFilesLines
2020-07-23stdenv: make -nostdinc work as intendedJörg Thalheim3-0/+17
Right now we add glibc to search path also -nostdinc was provided, which breaks projects providing their own gcc.
2020-05-22Merge pull request #84032 from teto/fix_kernel_mergeFlorian Klink1-32/+58
Fix kernel configuration merge
2020-05-16pkg-config-wrapper: InitJohn Ericson1-0/+14
This fixes longstanding build issues
2020-05-16cross/tests: Use `crossPkgs.runCommand` so we have `strictDeps`John Ericson1-1/+1
2020-04-01kernel: fix config generationMatthieu Coudron1-32/+58
Addresses https://github.com/NixOS/nixpkgs/issues/71803: Kernel options are not merged as described, especially the "optional" aspects. The error silences legitimate warnings.
2020-02-09tests.nixos-functions: port test to pythonworldofpeace1-1/+1
2020-01-30llvm_4: removeLuka Blaskovic1-2/+0
2020-01-30llvm_39: removeLuka Blaskovic1-2/+0
2020-01-17Merge remote-tracking branch 'obsidiansystems/work-on-multi-shellFor'Matthew Bauer2-0/+26
2020-01-17shellFor: Refactor for consistency and crossJacquin Mininger2-0/+26
This makes it work like work-on-multi from Reflex Platform. In particular, rather than making `.env` from `shellFor`, we make `.env` the primitive, and `shellFor` works by combining together the arguments of all the packages to `generic-builder` and taking the `.env` of the resulting mashup-package. There are 2 benefits of this: 1. The dependency logic is deduplicated. generic builder just concatted lists, whereas all the envs until now would sieve apart haskell and system build inputs. Now, they both decide haskell vs system the same way: according to the argument list and without reflection. Consistency is good, especially because it mean that if the build works, the shell is more likely to work. 2. Cross is handled better. For native builds, because the `ghcWithPackages` calls would shadow, we through both the regular component (lib, exe, test, bench) haskell deps and Setup.hs haskell deps in the same `ghcWithPackages` call. But for cross builds we use `buildPackages.ghcWithPackages` to get the setup deps. This ensures everything works correctly.
2019-09-19tests.cc-wrapper-{clang,libcxx}-{8,9}: add stdenv tests for LLVM 8, 9Will Dietz1-0/+4
2019-08-28treewide: remove redundant recvolth1-1/+1
2019-07-01treewide: use dontUnpackworldofpeace2-4/+4
2019-06-16treewide: remove unused variables (#63177)volth1-1/+1
* treewide: remove unused variables * making ofborg happy
2019-05-07all-packages/test: add gcc9Stdenv, cc-wrapper-gcc9Austin Seipp1-0/+1
Follow up from #60860. Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-04-23wasm: init cross targetMatthew Bauer1-5/+4
Adds pkgsCross.wasm32 and pkgsCross.wasm64. Use it to build Nixpkgs with a WebAssembly toolchain. stdenv/cross: use static overlay on isWasm isWasm doesn’t make sense dynamically linked.
2019-02-26cross/tests: add llvm-based testsMatthew Bauer1-21/+25
2019-02-26llvm: support cross compilation with useLLVM flagMatthew Bauer1-0/+6
You can build (partially) with LLVM toolchain using the useLLVM flag. This works like so: nix-build -A hello --arg crossSystem '{ system = "aarch64-unknown-linux-musl"; useLLVM = true }' also don’t separate debug info in lldClang It doesn’t work currently with that setup hook. Missing build-id?
2019-01-28linux: added tests for the configMatthieu Coudron2-0/+55
2018-11-29Merge pull request #50212 from matthewbauer/host-emulatorMatthew Bauer1-26/+36
Add "emulator" function to systems
2018-11-29treewide: add emulator to platformMatthew Bauer1-26/+36
You can use stdenv.hostPlatform.emulator to get an executable that runs cross-built binaries. This could be any emulator. For instance, we use QEMU to emulate Linux targets and Wine to emulate Windows targets. To work with qemu, we need to support custom targets. I’ve reworked the cross tests in pkgs/test/cross to use this functionality. Also, I’ve used talloc to cross-execute with the emulator. There appears to be a cross-execute for all waf builds. In the future, it would be nice to set this for all waf builds. Adds stdenv.hostPlatform.qemuArch attrbute to get the qemuArch for each platform.
2018-11-27Merge pull request #49290 from krebs/nix-writersJörg Thalheim1-0/+2
get nix-writers into nixpkgs
2018-11-27build-support writers: add testslassulus1-0/+2
2018-11-19pkgs/test/nixos-functions: use dummy versioningJan Malakhovski1-1/+9
With this OfBorg and similar tools won't report this derivation as changed every single time.
2018-11-13pkgs/test/nixos-functions: Add inline docRobert Hensing1-0/+11
2018-11-13tests: Don't use pkgs.extend. OfBorg will reject it.Robert Hensing1-13/+3
The good news is that it worked as expected.
2018-11-13Add tests for pkgs.nixos and pkgs.nixosTestRobert Hensing2-0/+34
2018-10-21Remove openftdJan Tojnar1-49/+0
It never worked, never was added as an attribute and the website is dead.
2018-09-24Merge branch 'master' into stagingVladimír Čunát1-0/+2
Hydra: ?compare=1480463
2018-09-23tests: add variants for llvm7Will Dietz1-0/+2
2018-09-16top-level/release.nix: add patchShebangs testDan Peebles2-0/+28
This is currently failing but nobody noticed!
2018-08-01pkgs/tests: Add test for LD_LIBRARY_PATHTuomas Tynkkynen2-0/+90
The latest binutils upgrade silently broke this until it was fixed by https://github.com/NixOS/nixpkgs/pull/43531. So add a test.
2018-07-21tests: add some cross testsMatthew Bauer2-0/+82
2018-06-18Merge remote-tracking branch 'upstream/master' into stagingJohn Ericson1-2/+4
2018-06-18tests.cc-wrapper: Fix sanitizer conditionJohn Ericson1-2/+4
fc9644d4c9c9d29958e9bcf1676d48d4b3026bb4 accidentally enabled the sanitizer tests for GCC on Darwin, when fixing that case was never attempted. Also inverted the condition from broken to working for clarity.
2018-06-14llvm 5: split out compiler-rt and remove libcxxabi depJohn Ericson1-1/+1
We already did them on non-mass-rebuild llvm 6. Also, this allows simplifying the stdenv booting. We were missing the libcxxabi dep in compile-rt in llvm 6, so fixed that too.
2018-06-14llvm 6: Fix libcxxabi impurity and darwin sanitizersJohn Ericson1-1/+1
2018-06-06tests.cc-wrapper: do not test sanitizers on darwinOrivej Desh1-1/+2
They are not supported yet. https://github.com/NixOS/nixpkgs/pull/41284#issuecomment-394977350
2018-05-30tests.cc-wrapper: skip known-broken sanitizer casesBenjamin Saunders1-7/+13
2018-05-24clang_6: fix sanitizers under libstdc++Benjamin Saunders1-2/+0
2018-05-24tests.cc-wrapper: verify building with sanitizersBenjamin Saunders2-0/+13
2018-05-10tests: move to attribute setMatthew Bauer1-0/+26
2018-02-25tree-wide: autorename gnome packages to use dashesJan Tojnar1-2/+2
2018-01-05sierra-shared-test: fix buildDaiderd Jordan1-3/+4
Using 500 libraries started failing with clang++: Argument list too long This is enough to reproduce the issue.
2017-12-05Add clang multilib variants (x64_64-only, 64/32bit), basic multilib testsWill Dietz1-0/+37
2017-09-13treewide: Use `*Platform.extensions`John Ericson2-9/+14
2017-09-10nixpkgs-tests: add basic test for buildInputsDaiderd Jordan6-0/+104
2017-09-10nixpkgs-tests: add basic test for cc-wrapperDaiderd Jordan7-0/+92
2017-07-31macos-sierra-shared: Make live code and add to nascent Darwin channelJohn Ericson1-4/+23
Also add appropriate `meta.platforms = ...` to each derivation.
2017-07-31cc-wrapper-test: Use `$CXX` else the C++ std lib won't be on the include pathJohn Ericson1-1/+1