[med-svn] r19763 - in trunk/packages/R/r-bioc-aroma.light/trunk/debian: . tests
Andreas Tille
tille at moszumanska.debian.org
Wed Jul 29 16:51:31 UTC 2015
Author: tille
Date: 2015-07-29 16:51:30 +0000 (Wed, 29 Jul 2015)
New Revision: 19763
Added:
trunk/packages/R/r-bioc-aroma.light/trunk/debian/README.test
trunk/packages/R/r-bioc-aroma.light/trunk/debian/docs
trunk/packages/R/r-bioc-aroma.light/trunk/debian/tests/
trunk/packages/R/r-bioc-aroma.light/trunk/debian/tests/control
trunk/packages/R/r-bioc-aroma.light/trunk/debian/tests/run-unit-test
Modified:
trunk/packages/R/r-bioc-aroma.light/trunk/debian/rules
Log:
Images in usr/share, autopkgtest
Added: trunk/packages/R/r-bioc-aroma.light/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-bioc-aroma.light/trunk/debian/README.test (rev 0)
+++ trunk/packages/R/r-bioc-aroma.light/trunk/debian/README.test 2015-07-29 16:51:30 UTC (rev 19763)
@@ -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.
Added: trunk/packages/R/r-bioc-aroma.light/trunk/debian/docs
===================================================================
--- trunk/packages/R/r-bioc-aroma.light/trunk/debian/docs (rev 0)
+++ trunk/packages/R/r-bioc-aroma.light/trunk/debian/docs 2015-07-29 16:51:30 UTC (rev 19763)
@@ -0,0 +1,3 @@
+debian/README.test
+debian/tests/run-unit-test
+tests
\ No newline at end of file
Modified: trunk/packages/R/r-bioc-aroma.light/trunk/debian/rules
===================================================================
--- trunk/packages/R/r-bioc-aroma.light/trunk/debian/rules 2015-07-29 15:34:58 UTC (rev 19762)
+++ trunk/packages/R/r-bioc-aroma.light/trunk/debian/rules 2015-07-29 16:51:30 UTC (rev 19763)
@@ -2,3 +2,10 @@
debRreposname=bioc
include /usr/share/R/debian/r-cran.mk
+
+install/$(package)::
+ mkdir -p debian/$(package)/usr/share/pixmaps/$(cranName)
+ for png in `find debian/$(package)/usr/lib/R/site-library/$(cranName) -name "*.png"` ; do \
+ mv $${png} debian/$(package)/usr/share/pixmaps/$(cranName) ; \
+ ln -s /usr/share/pixmaps/$(cranName)/`basename $${png}` $${png} ; \
+ done
Added: trunk/packages/R/r-bioc-aroma.light/trunk/debian/tests/control
===================================================================
--- trunk/packages/R/r-bioc-aroma.light/trunk/debian/tests/control (rev 0)
+++ trunk/packages/R/r-bioc-aroma.light/trunk/debian/tests/control 2015-07-29 16:51:30 UTC (rev 19763)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
Added: trunk/packages/R/r-bioc-aroma.light/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-bioc-aroma.light/trunk/debian/tests/run-unit-test (rev 0)
+++ trunk/packages/R/r-bioc-aroma.light/trunk/debian/tests/run-unit-test 2015-07-29 16:51:30 UTC (rev 19763)
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+oname=aroma.light
+pkg=r-bioc-`echo $oname | tr [A-Z] [a-z]`
+
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/$pkg/examples/vignettes/* $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+for runtest in `ls *.R` ; do
+ LC_ALL=C R --no-save < $runtest >/dev/null
+ if [ ! $? ] ; then
+ echo "Test ${runtest} failed"
+ exit 1
+ else
+ echo "Test ${runtest} passed"
+ fi
+done
+# rm -rf *
More information about the debian-med-commit
mailing list