Author: tille
Date: 2015-07-18 06:02:45 +0000 (Sat, 18 Jul 2015)
New Revision: 19650

Added:
   trunk/packages/R/r-cran-r.oo/trunk/debian/README.test
   trunk/packages/R/r-cran-r.oo/trunk/debian/docs
   trunk/packages/R/r-cran-r.oo/trunk/debian/tests/
   trunk/packages/R/r-cran-r.oo/trunk/debian/tests/control
   trunk/packages/R/r-cran-r.oo/trunk/debian/tests/run-unit-test
Modified:
   trunk/packages/R/r-cran-r.oo/trunk/debian/changelog
Log:
Add autopkgtest


Added: trunk/packages/R/r-cran-r.oo/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-cran-r.oo/trunk/debian/README.test                       
        (rev 0)
+++ trunk/packages/R/r-cran-r.oo/trunk/debian/README.test       2015-07-18 
06:02:45 UTC (rev 19650)
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+To run the unit tests provided by the package you can do
+
+   sh  run-unit-test
+
+in this directory.

Modified: trunk/packages/R/r-cran-r.oo/trunk/debian/changelog
===================================================================
--- trunk/packages/R/r-cran-r.oo/trunk/debian/changelog 2015-07-18 05:58:06 UTC 
(rev 19649)
+++ trunk/packages/R/r-cran-r.oo/trunk/debian/changelog 2015-07-18 06:02:45 UTC 
(rev 19650)
@@ -1,3 +1,9 @@
+r-cran-r.oo (1.19.0-2) unstable; urgency=medium
+
+  * Add autopkgtest
+
+ -- Andreas Tille <[email protected]>  Sat, 18 Jul 2015 07:59:12 +0200
+
 r-cran-r.oo (1.19.0-1) unstable; urgency=medium
 
   * Initial upload (Closes: #791483 

Added: trunk/packages/R/r-cran-r.oo/trunk/debian/docs
===================================================================
--- trunk/packages/R/r-cran-r.oo/trunk/debian/docs                              
(rev 0)
+++ trunk/packages/R/r-cran-r.oo/trunk/debian/docs      2015-07-18 06:02:45 UTC 
(rev 19650)
@@ -0,0 +1,3 @@
+debian/README.test
+debian/tests/run-unit-test
+tests

Added: trunk/packages/R/r-cran-r.oo/trunk/debian/tests/control
===================================================================
--- trunk/packages/R/r-cran-r.oo/trunk/debian/tests/control                     
        (rev 0)
+++ trunk/packages/R/r-cran-r.oo/trunk/debian/tests/control     2015-07-18 
06:02:45 UTC (rev 19650)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr

Added: trunk/packages/R/r-cran-r.oo/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-cran-r.oo/trunk/debian/tests/run-unit-test               
                (rev 0)
+++ trunk/packages/R/r-cran-r.oo/trunk/debian/tests/run-unit-test       
2015-07-18 06:02:45 UTC (rev 19650)
@@ -0,0 +1,22 @@
+#!/bin/sh -e
+
+pkg=r-cran-r.oo
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/${pkg}/tests/* $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+for htest in `ls *.R | sed 's/\.R$//'` ; do
+   LC_ALL=C R --no-save < ${htest}.R 2>&1 | tee > ${htest}.Rout
+   if [ ! $? ] ; then
+     echo "Test ${htest} failed"
+     exit 1
+   else
+     echo "Test ${htest} passed"
+   fi
+done
+rm -f $ADTTMP/*
+
+exit 0


_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to