[med-svn] r19500 - in trunk/packages/R/r-cran-r.methodss3/trunk/debian: . tests
Andreas Tille
tille at moszumanska.debian.org
Sat Jul 4 10:02:28 UTC 2015
Author: tille
Date: 2015-07-04 10:02:26 +0000 (Sat, 04 Jul 2015)
New Revision: 19500
Added:
trunk/packages/R/r-cran-r.methodss3/trunk/debian/tests/
trunk/packages/R/r-cran-r.methodss3/trunk/debian/tests/control
trunk/packages/R/r-cran-r.methodss3/trunk/debian/tests/run-unit-test
Modified:
trunk/packages/R/r-cran-r.methodss3/trunk/debian/README.test
trunk/packages/R/r-cran-r.methodss3/trunk/debian/changelog
trunk/packages/R/r-cran-r.methodss3/trunk/debian/docs
Log:
Add autopkg test
Modified: trunk/packages/R/r-cran-r.methodss3/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-cran-r.methodss3/trunk/debian/README.test 2015-07-04 09:43:33 UTC (rev 19499)
+++ trunk/packages/R/r-cran-r.methodss3/trunk/debian/README.test 2015-07-04 10:02:26 UTC (rev 19500)
@@ -1,5 +1,8 @@
Notes on how this package can be tested.
────────────────────────────────────────
-This package can be tested by loading it into R with the command
-‘library(R.methodsS3)’ in order to confirm its integrity.
+This package can be tested by running the provided test:
+
+ sh ./run-unit-test
+
+in order to confirm its integrity.
Modified: trunk/packages/R/r-cran-r.methodss3/trunk/debian/changelog
===================================================================
--- trunk/packages/R/r-cran-r.methodss3/trunk/debian/changelog 2015-07-04 09:43:33 UTC (rev 19499)
+++ trunk/packages/R/r-cran-r.methodss3/trunk/debian/changelog 2015-07-04 10:02:26 UTC (rev 19500)
@@ -2,6 +2,7 @@
* New upstream version
* cme fix dpkg-control
+ * Add autopkg test
-- Andreas Tille <tille at debian.org> Sat, 04 Jul 2015 11:39:11 +0200
Modified: trunk/packages/R/r-cran-r.methodss3/trunk/debian/docs
===================================================================
--- trunk/packages/R/r-cran-r.methodss3/trunk/debian/docs 2015-07-04 09:43:33 UTC (rev 19499)
+++ trunk/packages/R/r-cran-r.methodss3/trunk/debian/docs 2015-07-04 10:02:26 UTC (rev 19500)
@@ -1 +1,3 @@
+tests
debian/README.test
+debian/tests/run-unit-test
Added: trunk/packages/R/r-cran-r.methodss3/trunk/debian/tests/control
===================================================================
--- trunk/packages/R/r-cran-r.methodss3/trunk/debian/tests/control (rev 0)
+++ trunk/packages/R/r-cran-r.methodss3/trunk/debian/tests/control 2015-07-04 10:02:26 UTC (rev 19500)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
Added: trunk/packages/R/r-cran-r.methodss3/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-cran-r.methodss3/trunk/debian/tests/run-unit-test (rev 0)
+++ trunk/packages/R/r-cran-r.methodss3/trunk/debian/tests/run-unit-test 2015-07-04 10:02:26 UTC (rev 19500)
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+oname=R.methodsS3
+pkg=r-cran-`echo $oname | tr [A-Z] [a-z]`
+
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+for rfile in *.[rR] ; do
+ R CMD BATCH $rfile
+done
+rm -fr $ADTTMP/*
+
More information about the debian-med-commit
mailing list