[med-svn] [r-cran-ggplot2] 01/01: Add autopkgtest and mention problem that occures in d/changelog

Andreas Tille tille at debian.org
Wed Jun 18 14:50:10 UTC 2014


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository r-cran-ggplot2.

commit a85ed32ba6bb1f6662e28898dcf3f2aa572edbf3
Author: Andreas Tille <tille at debian.org>
Date:   Wed Jun 18 16:49:42 2014 +0200

    Add autopkgtest and mention problem that occures in d/changelog
---
 debian/README.test         |  8 ++++++++
 debian/changelog           | 36 ++++++++++++++++++++++++++++++++++--
 debian/control             |  2 ++
 debian/docs                |  3 +++
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 11 +++++++++++
 6 files changed, 61 insertions(+), 2 deletions(-)

diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..55a9142
--- /dev/null
+++ b/debian/README.test
@@ -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.
diff --git a/debian/changelog b/debian/changelog
index 7699b16..6594228 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,40 @@
 r-cran-ggplot2 (1.0.0-1) UNRELEASED; urgency=low
 
   [ Andreas Tille ]
-  * TODO: r-cran-testthat is packaged and thus in the next upload of
-    this package the test suite should be enabled
+  * add autopkgtest
+  * Recommends: r-cran-sp since this is needed in the testsuite
+
+TODO: when running `sh run-unit-test` this problem occures:
+Scales : .........................................
+Stats : .Error in predLoess(y, x, newx, s, weights, pars$robust, pars$span, pars$degree,  : 
+  NA/NaN/Inf in foreign function call (arg 5)
+In addition: Warning message:
+In max(panels$ROW) : no non-missing arguments to max; returning -Inf
+..
+stat-bin : 
+stat-sum : .......................
+stat-bin2d : ..
+stat-density2d : ....
+Themes : .................................................
+Utilities : .............
+
+
+1. Error: NA's don't appear in breaks ------------------------------------------
+mapproj package required for this functionality. Please install and try again.
+1: expect_false(any_NA_major_minor(coord_train(coord_map(), scales)))
+2: expect_that(object, is_false(), info, label)
+3: condition(object)
+4: expectation(identical(as.vector(x), FALSE), "isn't false")
+5: identical(as.vector(x), FALSE)
+6: as.vector(x)
+7: any_NA_major_minor(coord_train(coord_map(), scales))
+8: coord_train(coord_map(), scales)
+9: coord_map()
+10: try_require("mapproj")
+11: stop(package, " package required for this functionality. ", "Please install and try again.", call. = FALSE)
+Error: Test failures
+Execution halted
+
 
   [ Benjamin Eikel ]
   * Import upstream version 1.0.0.
diff --git a/debian/control b/debian/control
index cc4072a..a862772 100644
--- a/debian/control
+++ b/debian/control
@@ -4,6 +4,7 @@ Uploaders: Carlos Borroto <carlos.borroto at gmail.com>,
            Andreas Tille <tille at debian.org>
 Section: gnu-r
 Priority: optional
+Testsuite: autopkgtest
 Build-Depends: debhelper (>= 9),
                r-base-dev (>= 3.0.0),
                cdbs,
@@ -31,6 +32,7 @@ Depends: ${shlibs:Depends},
          r-cran-plyr,
          r-cran-reshape2,
          r-cran-scales
+Recommends: r-cran-sp
 Description: implementation of the Grammar of Graphics
  ggplot2 combines the advantages of both base and lattice graphics.
  Conditioning and shared axes are handled automatically, and you can
diff --git a/debian/docs b/debian/docs
index edc0071..5370e71 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1 +1,4 @@
 NEWS
+tests
+debian/README.test
+debian/tests/run-unit-test
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..e9f4f3d
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-testthat, r-cran-sp
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..30a08d1
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+pkg=r-cran-ggplot2
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+gunzip -r *
+LC_ALL=C R --no-save < test-all.R
+rm -fr $ADTTMP/*

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-ggplot2.git



More information about the debian-med-commit mailing list