about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBob van der Linden <bobvanderlinden@gmail.com>2023-04-03 15:18:52 +0200
committerBob van der Linden <bobvanderlinden@gmail.com>2023-04-05 11:37:49 +0200
commitc32dd072f0f6fc8e00b3d926fbe4a3f32ba529ab (patch)
tree8774ebd6eda4e82effcbc82d9c479766dd8d5cd4
parent532911e9aeec2ca4c64496361bc1cfe9bc3acab0 (diff)
pjsip: add version and pkg-config tests
-rw-r--r--pkgs/applications/networking/pjsip/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/applications/networking/pjsip/default.nix b/pkgs/applications/networking/pjsip/default.nix
index eeeb68df87b42..338d4cb2f08a6 100644
--- a/pkgs/applications/networking/pjsip/default.nix
+++ b/pkgs/applications/networking/pjsip/default.nix
@@ -1,4 +1,5 @@
 { lib
+, testers
 , stdenv
 , fetchFromGitHub
 , fetchpatch
@@ -102,6 +103,16 @@ stdenv.mkDerivation (finalAttrs: {
   # We need the libgcc_s.so.1 loadable (for pthread_cancel to work)
   dontPatchELF = true;
 
+  passthru.tests.version = testers.testVersion {
+    package = finalAttrs.finalPackage;
+    command = "pjsua --version";
+  };
+
+  passthru.tests.pkg-config = testers.hasPkgConfigModule {
+    package = finalAttrs.finalPackage;
+    moduleName = "libpjproject";
+  };
+
   passthru.tests.python-pjsua2 = runCommand "python-pjsua2" { } ''
     ${(python3.withPackages (pkgs: [ pkgs.pjsua2 ])).interpreter} -c "import pjsua2" > $out
   '';