[med-svn] [spdlog] 05/05: ship docs, examples, and tests

Michael Crusoe misterc-guest at moszumanska.debian.org
Sat Jan 30 17:42:59 UTC 2016


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

misterc-guest pushed a commit to branch master
in repository spdlog.

commit 03f9cf837e737e6d7c9f6998bf2f6aeae5422901
Author: Michael R. Crusoe <crusoe at ucdavis.edu>
Date:   Sat Jan 30 05:57:56 2016 -0800

    ship docs, examples, and tests
---
 debian/changelog       |  2 ++
 debian/docs            |  2 ++
 debian/rules           |  6 +++++-
 debian/tests/control   |  2 ++
 debian/tests/run-tests | 15 +++++++++++++++
 5 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 1ea7db2..a6c0c8c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 spdlog (1.6-1) UNRELEASED; urgency=medium
 
   * Update to version 1.6
+  * Ship examples, tests. Run the tests during build time and added
+    autopkgtest hook.
 
  -- Michael R. Crusoe <crusoe at ucdavis.edu>  Sat, 30 Jan 2016 05:33:59 -0800
 
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b1173b7
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+tests
+example
diff --git a/debian/rules b/debian/rules
index bac217b..9a45959 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,10 @@
 %:
 	dh $@
 
+override_dh_auto_install:
+	rm -f example/logs/.gitignore
+	dh_auto_install
+
 override_dh_auto_test:
-	cd tests && ${MAKE}
+	cd tests && ${MAKE} tests clean
 	dh_auto_test
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..a3f866d
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: run-tests
+Depends: @, @builddeps@
diff --git a/debian/tests/run-tests b/debian/tests/run-tests
new file mode 100755
index 0000000..4a54611
--- /dev/null
+++ b/debian/tests/run-tests
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+#set -x
+#set -e
+ 
+pkg=libspdlog-dev
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+
+cp -rs /usr/share/doc/libspdlog-dev/tests/ .
+cd tests
+gunzip < catch.hpp.gz > catch.hpp
+make

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/spdlog.git



More information about the debian-med-commit mailing list