[med-svn] r17329 - in trunk/packages/R/r-other-bio3d/trunk/debian: . tests
Andreas Tille
tille at moszumanska.debian.org
Sun Jun 29 10:43:51 UTC 2014
Author: tille
Date: 2014-06-29 10:43:51 +0000 (Sun, 29 Jun 2014)
New Revision: 17329
Added:
trunk/packages/R/r-other-bio3d/trunk/debian/docs
trunk/packages/R/r-other-bio3d/trunk/debian/tests/
trunk/packages/R/r-other-bio3d/trunk/debian/tests/control
trunk/packages/R/r-other-bio3d/trunk/debian/tests/run-unit-test
Modified:
trunk/packages/R/r-other-bio3d/trunk/debian/README.test
trunk/packages/R/r-other-bio3d/trunk/debian/changelog
trunk/packages/R/r-other-bio3d/trunk/debian/control
Log:
Add unit testing (need to sort out partly failing test before upload)
Modified: trunk/packages/R/r-other-bio3d/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-other-bio3d/trunk/debian/README.test 2014-06-29 10:01:29 UTC (rev 17328)
+++ trunk/packages/R/r-other-bio3d/trunk/debian/README.test 2014-06-29 10:43:51 UTC (rev 17329)
@@ -1,7 +1,12 @@
-Notes on how this package is tested.
-────────────────────────────────────
+Notes on how this package can be 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.
+To run the unit tests provided by the package you can do
- -- Charles Plessy <plessy at debian.org> Thu, 25 Mar 2010 13:57:34 +0900
+LC_ALL=C R --no-save <<EOT
+library(testthat)
+library(bio3d)
+test_package("bio3d")
+EOT
+
+ -- Andreas Tille <tille at debian.org> Fri, 27 Jun 2014 19:02:17 +0200
Modified: trunk/packages/R/r-other-bio3d/trunk/debian/changelog
===================================================================
--- trunk/packages/R/r-other-bio3d/trunk/debian/changelog 2014-06-29 10:01:29 UTC (rev 17328)
+++ trunk/packages/R/r-other-bio3d/trunk/debian/changelog 2014-06-29 10:43:51 UTC (rev 17329)
@@ -8,6 +8,11 @@
* Adapted watch file
* Moved debian/upstream to debian/upstream/metadata
* cme fix dpkg-control
+ * add autopkgtest
+ TODO: Need to sort out issue
+ 5. Error: get.pdb() with ncore>1 works properly --------------------------------
+ could not find function "readChildren"
+ with upstream
-- Andreas Tille <tille at debian.org> Sun, 29 Jun 2014 10:04:12 +0200
Modified: trunk/packages/R/r-other-bio3d/trunk/debian/control
===================================================================
--- trunk/packages/R/r-other-bio3d/trunk/debian/control 2014-06-29 10:01:29 UTC (rev 17328)
+++ trunk/packages/R/r-other-bio3d/trunk/debian/control 2014-06-29 10:43:51 UTC (rev 17329)
@@ -4,6 +4,7 @@
Andreas Tille <tille at debian.org>
Section: gnu-r
Priority: optional
+Testsuite: autopkgtest
Build-Depends: debhelper (>= 9),
cdbs,
r-base-dev
Added: trunk/packages/R/r-other-bio3d/trunk/debian/docs
===================================================================
--- trunk/packages/R/r-other-bio3d/trunk/debian/docs (rev 0)
+++ trunk/packages/R/r-other-bio3d/trunk/debian/docs 2014-06-29 10:43:51 UTC (rev 17329)
@@ -0,0 +1,2 @@
+debian/README.test
+debian/tests/run-unit-test
Added: trunk/packages/R/r-other-bio3d/trunk/debian/tests/control
===================================================================
--- trunk/packages/R/r-other-bio3d/trunk/debian/tests/control (rev 0)
+++ trunk/packages/R/r-other-bio3d/trunk/debian/tests/control 2014-06-29 10:43:51 UTC (rev 17329)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-testthat
+Restrictions: allow-stderr
Added: trunk/packages/R/r-other-bio3d/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-other-bio3d/trunk/debian/tests/run-unit-test (rev 0)
+++ trunk/packages/R/r-other-bio3d/trunk/debian/tests/run-unit-test 2014-06-29 10:43:51 UTC (rev 17329)
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+LC_ALL=C R --no-save <<EOT
+library(testthat)
+library(bio3d)
+test_package("bio3d")
+EOT
+
More information about the debian-med-commit
mailing list