remove testepc in package build

This commit is contained in:
Sukchan Lee 2017-12-18 05:55:43 +00:00
parent 996a0df756
commit b52d1faa64
2 changed files with 8 additions and 22 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
nextepc (0.3-1~artful) artful; urgency=medium
* IPv6 Support (Linux Only)
* Change Configuration File (JSON -> YAML)
-- Sukchan Lee <acetcom@gmail.com> Mon, 18 Dec 2017 05:07:31 +0000
nextepc (0.2-6~artful2) artful; urgency=medium
* postrm script is improved to purge package completely.

23
debian/rules vendored
View File

@ -15,29 +15,8 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
dh $@ --with autoreconf --with systemd
override_dh_auto_test:
mongodb_exclude_list=; \
sctp_exclude_list=; \
mongodb_forked=no; \
remove_db_uri_conf=; \
if which mongod > /dev/null; then \
if ! ps -ef | grep mongod | grep -v grep > /dev/null; then \
mongodb_forked=yes; \
mongod --fork --logpath debian/test/var/log/mongodb.log --dbpath debian/test/db; \
fi; \
else \
remove_db_uri_conf="/db_uri/d"; \
mongodb_exclude_list="-x s1setup_test attach_test volte_test handover_test"; \
fi; \
mkdir -p debian/test/db debian/test/etc/nextepc/freeDiameter debian/test/var/log/nextepc; \
sed -e 's?\([_a-z0-9]*\)\.conf?'`pwd`'/debian/test/etc/nextepc/freeDiameter/\1.conf?g;s?@LOCALSTATE_DIR@?'`pwd`'/debian/test/var?g;'$$remove_db_uri_conf'' support/config/nextepc.conf.in > debian/test/etc/nextepc/nextepc.conf; \
for i in `find support/freeDiameter -name '*.conf.in' -printf "%f\n" | sed 's/.in$$//g'`; do \
sed 's?@SYSCONF_DIR@/nextepc?'`pwd`'/support?g;s?\([_a-z0-9]*\)\.so?'`pwd`'/lib/freeDiameter-1.2.1/extensions/\1/.libs/\1.so?g' support/freeDiameter/$$i.in > debian/test/etc/nextepc/freeDiameter/$$i; \
done; \
if ! cat /proc/net/protocols | grep SCTP > /dev/null; then \
sctp_exclude_list="-x testsctp s1setup_test attach_test volte_test handover_test"; \
sctp_exclude_list="-x testsctp"; \
fi; \
lib/core/test/testcore $$sctp_exclude_list || exit; \
test/testepc -f debian/test/etc/nextepc/nextepc.conf -c $$sctp_exclude_list $$mongodb_exclude_list || exit; \
if test "x$$mongodb_forked" = xyes; then \
pkill mongod; \
fi;