Merge pull request #243248 from amjoseph-nixpkgs/pr/mbuffer-test

test.cross.mbuffer: init
This commit is contained in:
Adam Joseph 2023-07-14 19:52:47 +00:00 committed by GitHub
commit e36efdd1cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,4 +110,14 @@ let
in {
gcc = (lib.mapAttrs (_: mapMultiPlatformTest (system: system // {useLLVM = false;})) tests);
llvm = (lib.mapAttrs (_: mapMultiPlatformTest (system: system // {useLLVM = true;})) tests);
# see https://github.com/NixOS/nixpkgs/issues/213453
# this is a good test of a lot of tricky glibc/libgcc corner cases
mbuffer = let
mbuffer = pkgs.pkgsCross.aarch64-multiplatform.mbuffer;
emulator = with lib.systems; (elaborate examples.aarch64-multiplatform).emulator pkgs;
in
pkgs.runCommand "test-mbuffer" {} ''
echo hello | ${emulator} ${mbuffer}/bin/mbuffer
'';
}