[med-svn] r15643 - in trunk/packages/R/r-bioc-genomicfeatures/trunk/debian: . tests
Andreas Tille
tille at moszumanska.debian.org
Sat Dec 28 16:00:38 UTC 2013
Author: tille
Date: 2013-12-28 16:00:38 +0000 (Sat, 28 Dec 2013)
New Revision: 15643
Added:
trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/tests/
trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/tests/control
trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/tests/run-unit-test
Modified:
trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/README.test
trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/control
Log:
Add unit test
Modified: trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/README.test 2013-12-28 15:55:49 UTC (rev 15642)
+++ trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/README.test 2013-12-28 16:00:38 UTC (rev 15643)
@@ -1,5 +1,11 @@
Notes on how this package can be tested.
────────────────────────────────────────
-This package can be tested by loading it into R with the command
-‘library(GenomicFeatures)’ in order to confirm its integrity.
+This package can be tested by running the provided test:
+
+LC_ALL=C R --no-save <<EOT
+require("GenomicFeatures") || stop("unable to load GenomicFeatures package")
+GenomicFeatures:::.test()
+EOT
+
+in order to confirm its integrity.
Modified: trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/control
===================================================================
--- trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/control 2013-12-28 15:55:49 UTC (rev 15642)
+++ trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/control 2013-12-28 16:00:38 UTC (rev 15643)
@@ -2,6 +2,7 @@
Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
Uploaders: Andreas Tille <tille at debian.org>
Section: gnu-r
+XS-Testsuite: autopkgtest
Priority: optional
Build-Depends: debhelper (>= 9),
cdbs,
Added: trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/tests/control
===================================================================
--- trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/tests/control (rev 0)
+++ trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/tests/control 2013-12-28 16:00:38 UTC (rev 15643)
@@ -0,0 +1 @@
+Tests: run-unit-test
Added: trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/tests/run-unit-test (rev 0)
+++ trunk/packages/R/r-bioc-genomicfeatures/trunk/debian/tests/run-unit-test 2013-12-28 16:00:38 UTC (rev 15643)
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+LC_ALL=C R --no-save <<EOT
+require("GenomicFeatures")
+GenomicFeatures:::.test()
+EOT
+
More information about the debian-med-commit
mailing list