summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-11-24 02:51:41 +0000
committerBenny Prijono <bennylp@teluu.com>2009-11-24 02:51:41 +0000
commit267d84867d95b65393c937e95e3710a7b55667a4 (patch)
treebcdfcd72fe3357c07298bcf4fcc1e9cbabe583d4 /Makefile
parent256622465178aaa43333cf260e5b8c678f14513c (diff)
Misc (#951): added make selftest target
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3024 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 288f6eab..f8ed4b0d 100644
--- a/Makefile
+++ b/Makefile
@@ -70,6 +70,26 @@ xhdrid:
cp /tmp/id $$f; \
done
+selftest: pjlib-test pjlib-util-test pjnath-test pjmedia-test pjsip-test pjsua-test
+
+pjlib-test: pjlib/bin/pjlib-test-$(TARGET_NAME)
+ cd pjlib/build && ../bin/pjlib-test-$(TARGET_NAME)
+
+pjlib-util-test: pjlib-util/bin/pjlib-util-test-$(TARGET_NAME)
+ cd pjlib-util/build && ../bin/pjlib-util-test-$(TARGET_NAME)
+
+pjnath-test: pjnath/bin/pjnath-test-$(TARGET_NAME)
+ cd pjnath/build && ../bin/pjnath-test-$(TARGET_NAME)
+
+pjmedia-test: pjmedia/bin/pjmedia-test-$(TARGET_NAME)
+ cd pjmedia/build && ../bin/pjmedia-test-$(TARGET_NAME)
+
+pjsip-test: pjsip/bin/pjsip-test-$(TARGET_NAME)
+ cd pjsip/build && ../bin/pjsip-test-$(TARGET_NAME)
+
+pjsua-test:
+ cd tests/pjsua && python runall.py
+
prefix = /usr/local
install:
mkdir -p $(DESTDIR)$(prefix)/lib