Commit 6cf64fa5 authored by Andreas Tille's avatar Andreas Tille

New upstream version, add autopkgtest

parent fce31f41
Notes on how this package can be tested.
────────────────────────────────────────
This package can be tested by loading it into R with the command
library(sp) in order to confirm its integrity.
To run the unit tests provided by the package you can do
-- Andreas Tille <tille@debian.org> Thu, 20 May 2010 15:43:36 +0200
sh run-unit-test
in this directory.
r-cran-sp (1:1.0-15-1) unstable; urgency=medium
* New upstream version
* cme fix dpkg-control
* add autopkgtest
-- Andreas Tille <tille@debian.org> Fri, 20 Jun 2014 15:43:36 +0200
r-cran-sp (1:1.0-9-1) unstable; urgency=low
* Team upload.
......
......@@ -3,11 +3,12 @@ Maintainer: Debian Science Team <debian-science-maintainers@lists.alioth.debian.
Uploaders: Andreas Tille <tille@debian.org>
Section: gnu-r
Priority: optional
Testsuite: autopkgtest
Build-Depends: debhelper (>= 9),
cdbs,
r-base-dev (>= 2.14.0),
r-base-dev,
r-cran-lattice
Standards-Version: 3.9.4
Standards-Version: 3.9.5
Vcs-Browser: http://anonscm.debian.org/viewvc/debian-science/packages/R/r-cran-sp/trunk/
Vcs-Svn: svn://anonscm.debian.org/debian-science/packages/R/r-cran-sp/trunk/
Homepage: http://rspatial.r-forge.r-project.org/
......@@ -26,4 +27,3 @@ Description: GNU R classes and methods for spatial data
3D data. Utility functions are provided, e.g. for plotting data as maps,
spatial selection, as well as methods for retrieving coordinates, for
subsetting, print, summary, etc.
debian/README.test
debian/tests/run-unit-test
tests
Tests: run-unit-test
Depends: @, r-cran-runit
Restrictions: allow-stderr
#!/bin/sh -e
pkg=r-cran-sp
# The saved result files do contain some differences in metadata and we also
# need to ignore version differences of R
filter() {
grep -v -e '^R version' \
-e '^Copyright (C)' \
-e '^R : Copyright 20' \
-e '^Version 2.0' \
-e '^Platform:' \
-e '^ISBN 3-900051-07-0' \
-e '^\[1\] "L*C' \
-e '^During startup - Warning messages:' \
-e '^[0-9]: Setting LC_' \
-e "'help.start()' for an* HTML browser interface to help." \
$1 | \
sed '/^> *proc\.time()$/,$d'
}
if [ "$ADTTMP" = "" ] ; then
ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $ADTTMP
cp /usr/share/doc/${pkg}/tests/* $ADTTMP
gunzip *.gz
for htest in `ls *.R | sed 's/\.R$//'` ; do
LC_ALL=C R --no-save < ${htest}.R 2>&1 | tee > ${htest}.Rout
filter ${htest}.Rout.save > ${htest}.Rout.save_
filter ${htest}.Rout > ${htest}.Rout_
diff -u ${htest}.Rout.save_ ${htest}.Rout_
if [ ! $? ] ; then
echo "Test ${htest} failed"
exit 1
else
echo "Test ${htest} passed"
fi
done
rm -f $ADTTMP/*
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment