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
<[email protected]>
Uploaders: Andreas Tille <[email protected]>
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
+
_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit