about summary refs log tree commit diff
path: root/pkgs/build-support/testers/testMetaPkgConfig/tester.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/testers/testMetaPkgConfig/tester.nix')
-rw-r--r--pkgs/build-support/testers/testMetaPkgConfig/tester.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/build-support/testers/testMetaPkgConfig/tester.nix b/pkgs/build-support/testers/testMetaPkgConfig/tester.nix
new file mode 100644
index 0000000000000..bee97ace1409c
--- /dev/null
+++ b/pkgs/build-support/testers/testMetaPkgConfig/tester.nix
@@ -0,0 +1,14 @@
+{ lib, runCommand, testers }:
+
+package:
+
+runCommand "check-meta-pkg-config-modules-for-${package.name}" {
+  meta = {
+    description = "Test whether ${package.name} exposes all pkg-config modules ${toString package.meta.pkgConfigModules}";
+  };
+  dependsOn = map
+    (moduleName: testers.hasPkgConfigModule { inherit package moduleName; })
+    package.meta.pkgConfigModules;
+} ''
+  echo "found all of ${toString package.meta.pkgConfigModules}" > "$out"
+''