[r-cran-maxlik] 01/03: Add dependency for r-cran-surveillance test suite

Sébastien Villemot sebastien at debian.org
Thu Nov 16 13:58:18 UTC 2017


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

sebastien pushed a commit to annotated tag debian/1.2-0-1
in repository r-cran-maxlik.

commit daa4d9b7809a35aae9aea6fa31a0aee92118151d
Author: Andreas Tille <tille at debian.org>
Date:   Mon Jun 23 15:11:51 2014 +0000

    Add dependency for r-cran-surveillance test suite
---
 README.test         |  8 ++++++++
 changelog           |  7 +++++++
 compat              |  1 +
 control             | 22 ++++++++++++++++++++++
 copyright           | 31 +++++++++++++++++++++++++++++++
 docs                |  3 +++
 rules               |  4 ++++
 source/format       |  1 +
 tests/control       |  3 +++
 tests/run-unit-test | 42 ++++++++++++++++++++++++++++++++++++++++++
 watch               |  2 ++
 11 files changed, 124 insertions(+)

diff --git a/README.test b/README.test
new file mode 100644
index 0000000..55a9142
--- /dev/null
+++ b/README.test
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+To run the unit tests provided by the package you can do
+
+   sh  run-unit-test
+
+in this directory.
diff --git a/changelog b/changelog
new file mode 100644
index 0000000..9f91dc4
--- /dev/null
+++ b/changelog
@@ -0,0 +1,7 @@
+r-cran-maxlik (1.2-0-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #???).
+  TODO: Needs
+     http://cran.r-project.org/web/packages/miscTools/
+
+ -- Andreas Tille <tille at debian.org>  Mon, 23 Jun 2014 09:24:05 +0200
diff --git a/compat b/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/compat
@@ -0,0 +1 @@
+9
diff --git a/control b/control
new file mode 100644
index 0000000..96a2c66
--- /dev/null
+++ b/control
@@ -0,0 +1,22 @@
+Source: r-cran-maxlik
+Section: gnu-r
+Priority: optional
+Testsuite: autopkgtest
+Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Build-Depends: debhelper (>= 9.0),
+               cdbs,
+               r-base-dev,
+               r-cran-sandwich
+Standards-Version: 3.9.5
+Vcs-Browser: http://anonscm.debian.org/viewvc/debian-science/packages/R/trunk/packages/r-cran-maxlik/trunk/
+Vcs-Svn: svn://anonscm.debian.org/debian-science/packages/R/trunk/packages/r-cran-maxlik/trunk/
+Homepage: http://cran.r-project.org/web/packages/maxLik/
+
+Package: r-cran-maxlik
+Architecture: all
+Depends: ${misc:Depends},
+         ${R:Depends},
+         r-cran-sandwich
+Description: GNU R maximum likelihood estimation
+ This GNU R package provides tools for maximum likelihood estimation.
diff --git a/copyright b/copyright
new file mode 100644
index 0000000..4e9e5c2
--- /dev/null
+++ b/copyright
@@ -0,0 +1,31 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: maxLik
+Upstream-Contact: Arne Henningsen <arne.henningsen at gmail.com>
+Source: http://cran.r-project.org/web/packages/maxLik/
+
+Files: *
+Copyright: 2008-2013 Ott Toomet, Arne Henningsen,
+                     with contributions from Spencer Graves and Yves Croissant
+License: GPL-2+
+
+Files: debian/*
+Copyright: 2014 Andreas Tille <tille at debian.org>
+License: GPL-2+
+
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ .
+ On Debian systems, the complete text of the GNU General Public
+ License can be found in `/usr/share/common-licenses/GPL-2'.
diff --git a/docs b/docs
new file mode 100644
index 0000000..3adf0d6
--- /dev/null
+++ b/docs
@@ -0,0 +1,3 @@
+debian/README.test
+debian/tests/run-unit-test
+tests
diff --git a/rules b/rules
new file mode 100755
index 0000000..1cb1c9f
--- /dev/null
+++ b/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+#	-*- makefile -*-
+
+include /usr/share/R/debian/r-cran.mk
diff --git a/source/format b/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/tests/control b/tests/control
new file mode 100644
index 0000000..25377fc
--- /dev/null
+++ b/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-runit
+Restrictions: allow-stderr
diff --git a/tests/run-unit-test b/tests/run-unit-test
new file mode 100644
index 0000000..f821e0d
--- /dev/null
+++ b/tests/run-unit-test
@@ -0,0 +1,42 @@
+#!/bin/sh -e
+
+pkg=r-cran-maxlik
+
+# The saved result files do contain some differences in metadata and we also
+# need to ignore version differences of R
+filter() {
+    grep -v -e '^R version' \
+        -e '^Copyright (C)' \
+        -e '^R : Copyright 20' \
+        -e '^Version 2.0' \
+        -e '^Platform:' \
+        -e '^ISBN 3-900051-07-0' \
+        -e '^\[1\] "L*C' \
+        -e '^During startup - Warning messages:' \
+        -e '^[0-9]: Setting LC_' \
+        -e "'help.start()' for an* HTML browser interface to help." \
+       $1 | \
+    sed '/^> *proc\.time()$/,$d'
+}
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/${pkg}/tests/* $ADTTMP
+gunzip *.gz
+for htest in `ls *.R | sed 's/\.R$//'` ; do
+   LC_ALL=C R --no-save < ${htest}.R 2>&1 | tee > ${htest}.Rout
+   filter ${htest}.Rout.save > ${htest}.Rout.save_
+   filter ${htest}.Rout > ${htest}.Rout_
+   diff -u ${htest}.Rout.save_ ${htest}.Rout_
+   if [ ! $? ] ; then
+     echo "Test ${htest} failed"
+     exit 1
+   else
+     echo "Test ${htest} passed"
+   fi
+done
+rm -f $ADTTMP/*
+
+exit 0
diff --git a/watch b/watch
new file mode 100644
index 0000000..1539471
--- /dev/null
+++ b/watch
@@ -0,0 +1,2 @@
+version=3
+http://cran.r-project.org/src/contrib/maxLik_([-\d.]*)\.tar\.gz

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



More information about the debian-science-commits mailing list