[Pkg-voip-commits] [pjproject] 31/42: A disabled tests target

tzafrir at debian.org tzafrir at debian.org
Sat Nov 1 17:13:56 UTC 2014


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master-2.3
in repository pjproject.

commit 926d6d7e9fd38010ba64ffa371046dfd8abf6246
Author: Tzafrir Cohen <tzafrir at debian.org>
Date:   Fri Oct 31 22:22:21 2014 +0200

    A disabled tests target
    
    The packagee has build-time tests. But they are too long to be run
    automatically. Make it simple enough to run them manually.
---
 debian/README.source | 21 +++++++++++++++++++++
 debian/rules         |  6 ++++++
 2 files changed, 27 insertions(+)

diff --git a/debian/README.source b/debian/README.source
index 324fbbe..a727e6b 100644
--- a/debian/README.source
+++ b/debian/README.source
@@ -1,3 +1,5 @@
+git-dpm
+=======
 The package uses git-dpm.
 
 See git-dpm(1) and git-dpm --help
@@ -20,3 +22,22 @@ Quick notes:
 
 * The problem with gbp pq (in the standard flow) is that you lose your
   hostory. The problem with git-dpm is that you keep all of your history.
+
+
+Tests
+=====
+The build-time tests take over an hour to run and are thus disabled.
+To run them:
+
+  ./debian/rules build
+  ./debian/rules run-tests
+
+Or run specific tests. The specific targets are:
+
+  $ grep ^selftest: Makefile 
+  selftest: pjlib-test pjlib-util-test pjnath-test pjmedia-test pjsip-test pjsua-test
+However you need to set LD_LIBRARY_PATH in order to run them:
+
+  LD_LIBRARY_PATH=`echo $$PWD/*/lib | tr ' ' :` make test-foo
+
+At the moment pjmedia-test and pjsua-test fail.
diff --git a/debian/rules b/debian/rules
index 80b77ce..9dfa62d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -37,6 +37,12 @@ override_dh_auto_build:
 	dh_auto_build -- dep all
 	#pybuild -d pjsip-apps/src/python
 
+# selftest target takes too long. Parts of it may also require hardware.
+# Don't enable it by default. Allow running it manually.
+#override_dh_auto_test:
+run-tests:
+	LD_LIBRARY_PATH=`echo $$PWD/*/lib | tr ' ' :` make selftest
+
 PC_FILE=$(CURDIR)/debian/tmp/usr/lib/*/pkgconfig/libpjproject.pc
 override_dh_auto_install:
 	dh_auto_install

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/pjproject.git



More information about the Pkg-voip-commits mailing list