[r-cran-xtable] 21/26: Add autopkgtest

Andreas Tille tille at debian.org
Thu Apr 21 20:45:15 UTC 2016


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

tille pushed a commit to branch master
in repository r-cran-xtable.

commit ea8a719e1a94966f3dddc4c80b315c11018244aa
Author: Andreas Tille <tille at debian.org>
Date:   Sat Jun 28 06:32:52 2014 +0000

    Add autopkgtest
---
 debian/README.Debian       |  5 -----
 debian/README.test         | 10 ++++++++++
 debian/changelog           |  3 ++-
 debian/control             |  1 +
 debian/docs                |  3 +++
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 22 ++++++++++++++++++++++
 7 files changed, 41 insertions(+), 6 deletions(-)

diff --git a/debian/README.Debian b/debian/README.Debian
deleted file mode 100644
index 3b5b0c6..0000000
--- a/debian/README.Debian
+++ /dev/null
@@ -1,5 +0,0 @@
-Notes on how this package is tested.
-────────────────────────────────────
-
-After building on the maintainer's computer, this package was locally installed
-and the library loaded into R in order to confirm its integrity.
diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..e330aad
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,10 @@
+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.
+
+ -- Andreas Tille <tille at debian.org>  Fri, 27 Jun 2014 19:02:17 +0200
diff --git a/debian/changelog b/debian/changelog
index 6a831fe..9865a60 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,9 @@
-r-cran-xtable (1:1.7-3-1) UNRELEASED; urgency=medium
+r-cran-xtable (1:1.7-3-1) unstable; urgency=medium
 
   * New upstream version
   * debian/source/format: 3.0 (quilt)
   * cme fix dpkg-control
+  * Add autopkgtest
 
  -- Andreas Tille <tille at debian.org>  Sat, 28 Jun 2014 08:15:59 +0200
 
diff --git a/debian/control b/debian/control
index cae2209..3c57d9b 100644
--- a/debian/control
+++ b/debian/control
@@ -3,6 +3,7 @@ Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.
 Uploaders: Andreas Tille <tille at debian.org>
 Section: gnu-r
 Priority: optional
+Testsuite: autopkgtest
 Build-Depends: debhelper (>= 9),
                cdbs,
                r-base-dev
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..960011c
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+tests
+debian/README.test
+debian/tests/run-unit-test
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..d2aa55a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..cd87675
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,22 @@
+#!/bin/sh -e
+
+pkg=r-cran-xtable
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+# gunzip *.gz
+export LC_ALL=C
+for test in *R
+do
+  R CMD BATCH ${test}
+  if [ ! $? ] ; then
+    echo "Test ${test} failed"
+    exit 1
+  else
+    echo "Test ${test} passed"
+  fi
+  rm -f ${test}out .RData
+done
+rm -f $ADTTMP/*

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



More information about the debian-science-commits mailing list