[med-svn] r17265 - in trunk/packages/R/r-cran-evaluate/trunk/debian: . tests
Andreas Tille
tille at moszumanska.debian.org
Fri Jun 20 22:09:27 UTC 2014
Author: tille
Date: 2014-06-20 22:09:27 +0000 (Fri, 20 Jun 2014)
New Revision: 17265
Added:
trunk/packages/R/r-cran-evaluate/trunk/debian/tests/
trunk/packages/R/r-cran-evaluate/trunk/debian/tests/control
trunk/packages/R/r-cran-evaluate/trunk/debian/tests/run-unit-test
Modified:
trunk/packages/R/r-cran-evaluate/trunk/debian/README.test
trunk/packages/R/r-cran-evaluate/trunk/debian/changelog
trunk/packages/R/r-cran-evaluate/trunk/debian/control
trunk/packages/R/r-cran-evaluate/trunk/debian/docs
trunk/packages/R/r-cran-evaluate/trunk/debian/rules
Log:
Add autopkgtest
Modified: trunk/packages/R/r-cran-evaluate/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-cran-evaluate/trunk/debian/README.test 2014-06-20 21:53:47 UTC (rev 17264)
+++ trunk/packages/R/r-cran-evaluate/trunk/debian/README.test 2014-06-20 22:09:27 UTC (rev 17265)
@@ -1,15 +1,8 @@
Notes on how this package can be tested.
────────────────────────────────────────
-This package can be tested by loading it into R with the command
-‘library(evaluate)’ in order to confirm its integrity.
+To run the unit tests provided by the package you can do
-Once the package r-cran-testthat will be available you can run the
-full testsuite via
+ sh run-unit-test
-R --no-save <<EOT
-library(testthat)
-library(evaluate)
-test_package("evaluate")
-EOT
-
+in this directory.
Modified: trunk/packages/R/r-cran-evaluate/trunk/debian/changelog
===================================================================
--- trunk/packages/R/r-cran-evaluate/trunk/debian/changelog 2014-06-20 21:53:47 UTC (rev 17264)
+++ trunk/packages/R/r-cran-evaluate/trunk/debian/changelog 2014-06-20 22:09:27 UTC (rev 17265)
@@ -1,6 +1,7 @@
-r-cran-evaluate (0.5.5-1) UNRELEASED; urgency=medium
+r-cran-evaluate (0.5.5-1) unstable; urgency=medium
* New upstream version
+ * Add autopkgtest
-- Andreas Tille <tille at debian.org> Fri, 20 Jun 2014 23:52:57 +0200
Modified: trunk/packages/R/r-cran-evaluate/trunk/debian/control
===================================================================
--- trunk/packages/R/r-cran-evaluate/trunk/debian/control 2014-06-20 21:53:47 UTC (rev 17264)
+++ trunk/packages/R/r-cran-evaluate/trunk/debian/control 2014-06-20 22:09:27 UTC (rev 17265)
@@ -3,6 +3,7 @@
Uploaders: Andreas Tille <tille at debian.org>
Section: gnu-r
Priority: optional
+Testsuite: autopkgtest
Build-Depends: debhelper (>= 9),
cdbs,
r-base-dev,
Modified: trunk/packages/R/r-cran-evaluate/trunk/debian/docs
===================================================================
--- trunk/packages/R/r-cran-evaluate/trunk/debian/docs 2014-06-20 21:53:47 UTC (rev 17264)
+++ trunk/packages/R/r-cran-evaluate/trunk/debian/docs 2014-06-20 22:09:27 UTC (rev 17265)
@@ -1 +1,3 @@
debian/README.test
+debian/tests/run-unit-test
+tests
Modified: trunk/packages/R/r-cran-evaluate/trunk/debian/rules
===================================================================
--- trunk/packages/R/r-cran-evaluate/trunk/debian/rules 2014-06-20 21:53:47 UTC (rev 17264)
+++ trunk/packages/R/r-cran-evaluate/trunk/debian/rules 2014-06-20 22:09:27 UTC (rev 17265)
@@ -1,3 +1,5 @@
#!/usr/bin/make -f
include /usr/share/R/debian/r-cran.mk
+
+# DEB_INSTALL_CHANGELOGS_ALL = NEWS
Added: trunk/packages/R/r-cran-evaluate/trunk/debian/tests/control
===================================================================
--- trunk/packages/R/r-cran-evaluate/trunk/debian/tests/control (rev 0)
+++ trunk/packages/R/r-cran-evaluate/trunk/debian/tests/control 2014-06-20 22:09:27 UTC (rev 17265)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-testthat
+Restrictions: allow-stderr
Added: trunk/packages/R/r-cran-evaluate/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-cran-evaluate/trunk/debian/tests/run-unit-test (rev 0)
+++ trunk/packages/R/r-cran-evaluate/trunk/debian/tests/run-unit-test 2014-06-20 22:09:27 UTC (rev 17265)
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+pkg=r-cran-evaluate
+
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+# Make sure we are using C locale to pass all tests
+LC_ALL=C R --no-save < test-all.R
+rm -f $ADTTMP/*
More information about the debian-med-commit
mailing list