[cminpack] 01/02: Include CI tests

Ole Streicher olebole at moszumanska.debian.org
Thu Oct 15 09:41:56 UTC 2015


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

olebole pushed a commit to branch debian
in repository cminpack.

commit a92b5ba31ad2c8943946a5f59590cda807a09d50
Author: Ole Streicher <olebole at debian.org>
Date:   Thu Oct 15 11:31:37 2015 +0200

    Include CI tests
---
 debian/changelog           |  1 +
 debian/copyright           |  2 +-
 debian/tests/cminpack-test | 12 ++++++++++++
 debian/tests/control       |  3 +++
 4 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index eec286f..19ae0d6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ cminpack (1.3.4-3) UNRELEASED; urgency=low
 
   * Update maintainers e-mail address
   * Update standards version to 3.9.6. No changes needed.
+  * Include CI tests
 
  -- Ole Streicher <olebole at debian.org>  Thu, 25 Sep 2014 13:05:16 +0200
 
diff --git a/debian/copyright b/debian/copyright
index 896dc67..3c96272 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -7,7 +7,7 @@ Files: *
 Copyright: © 1999 University of Chicago.  All rights reserved
  2011-2012 Mathieu Malaterre <malat at debian.org>,
  2014 Ole Streicher <olebole at debian.org> (Debian packaging)
-License: BSD-3
+License: BSD-3-Clause
  Minpack Copyright Notice (1999) University of Chicago.  All rights reserved
  .
  Redistribution and use in source and binary forms, with or
diff --git a/debian/tests/cminpack-test b/debian/tests/cminpack-test
new file mode 100755
index 0000000..da6eb62
--- /dev/null
+++ b/debian/tests/cminpack-test
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+test_dir="$ADTTMP"
+if [ -z "$test_dir" ] ; then
+    test_dir="$(mktemp -d)"
+fi
+
+cp -r examples "${test_dir}"
+exec make -C "${test_dir}/examples" \
+     MINPACK="-lcminpack" \
+     CPPFLAGS="-I/usr/include/cminpack-1" \
+     test ctest testdrv ctestdrv
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..dd0a969
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: cminpack-test
+Depends: libcminpack-dev, gcc
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cminpack.git



More information about the debian-science-commits mailing list