python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / pipewire / test-paths.nix
blob1e3e5fef3a6e341bfc3d637fe5a139b299d335ed
1 { lib, runCommand, package, paths-out, paths-lib }:
3 let
4   check-path = output: path: ''
5     if [[ ! -f "${output}/${path}" && ! -d "${output}/${path}" ]]; then
6       printf "Missing: %s\n" "${output}/${path}" | tee -a $out
7       error=error
8     else
9       printf "Found: %s\n" "${output}/${path}" | tee -a $out
10     fi
11   '';
13   check-output = output: lib.concatMapStringsSep "\n" (check-path output);
14 in runCommand "pipewire-test-paths" { } ''
15   touch $out
17   ${check-output package.lib paths-lib}
18   ${check-output package paths-out}
20   if [[ -n "$error" ]]; then
21     exit 1
22   fi