about summary refs log tree commit diff
path: root/pkgs/test/cross
AgeCommit message (Collapse)AuthorFilesLines
2024-01-25tests.cross.sanity: fix eval by fixing `qt5.qutebrowser` referenceSergei Trofimovich1-1/+1
Without the change the eval fails as: $ nix build --no-link -f. tests.cross.sanity error: attribute 'qutebrowser' missing at pkgs/test/cross/default.nix:157:5: 156| # Two web browsers -- exercises almost the entire packageset 157| pkgs.pkgsCross.aarch64-multiplatform.qt5.qutebrowser | ^ 158| pkgs.pkgsCross.aarch64-multiplatform.firefox
2023-11-16tests.cross.sanity: add test case for #267859Adam Joseph1-0/+3
This commit adds pkgs.spike, which internally uses pkgsCross.riscv64-embedded.stdenv.cc, as a test case for the issue reported in https://github.com/NixOS/nixpkgs/issues/267859
2023-11-05test.cross.sanity: add qt5.qutebrowser, firefoxAdam Joseph1-0/+4
2023-11-04lib.systems, test.cross.sanity: add test case for #264989Adam Joseph1-0/+1
We have several cross-compilation bugs that show up if hostPlatform!=buildPlatform yet hostPlatform.config==buildPlatform.config. These bugs have appeared and disappeared as we've fiddled with the definition of equality for platform objects. This commit adds a clear-cut case where they are *not* equal and never will be, so we can test it.
2023-11-04tests: fix eval failuresArtturin1-4/+4
2023-11-03tests.cross.sanity: add pkgs.pkgsMusl.pkgsCross.gnu64.hello (#262876)Adam Joseph1-0/+6
2023-10-25gcc: create dummy crtstuff on S390 as wellAdam Joseph1-0/+1
This commit replicates the fix in https://github.com/NixOS/nixpkgs/pull/258032 for S390 as well. Co-authored-by: Artturi <Artturin@artturin.com>
2023-08-15tests.cross.sanity: add armv5tel and armv6lAdam Joseph1-0/+2
2023-08-14tests.cross.sanity: enable mbuffer testAdam Joseph1-1/+2
This test passes now. Also fixes a minor oversight in the bug -- the test case needs to `touch $out` on success.
2023-08-14libgcc: make needed architecture-specific targets if isArmv7Adam Joseph1-0/+1
2023-07-06gccWithoutTargetLibc: link libgcc_s.so using -mnewlib if isPowerAdam Joseph1-1/+1
Closes #244405 Also adds considerably more commenting to document what is going on.
2023-07-01test.cross.sanity: add pkgs.pkgsCross.m68k.stdenvAdam Joseph1-0/+1
2023-07-01test.cross.sanity: initAdam Joseph1-4/+30
This commit adds `pkgs.test.cross.sanity`, which is meant to be a carefully curated list of builds/packages that tend to break when refactoring our cross-compilation infrastructure. It should strike a balance between being small enough to fit in a single eval (i.e. not so large that hydra-eval-jobs is needed) so we can ask @ofborg to check it, yet should have good examples of things that often break. So, no buckshot `mapTestOnCross` calls here.
2023-06-30test.cross.mbuffer: initAdam Joseph1-0/+10
This adds a test case for the tricky issue encountered in https://github.com/NixOS/nixpkgs/issues/213453
2023-01-09treewide: {build,host,target}Platform -> stdenv.{build,host,target}PlatformArtturin1-2/+2
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
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?
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-07-21tests: add some cross testsMatthew Bauer1-0/+80