[med-svn] [r-cran-cmprsk] 03/06: Make test more tolerant against different output to compare with
Andreas Tille
tille at debian.org
Thu Oct 19 08:56:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository r-cran-cmprsk.
commit 6c805705eec84ef9f6a08948598f71893871a582
Author: Andreas Tille <tille at debian.org>
Date: Fri Apr 29 07:15:37 2016 +0000
Make test more tolerant against different output to compare with
---
debian/changelog | 7 +++++++
debian/control | 4 ++--
debian/tests/run-unit-test | 18 +++++++++++++++++-
3 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 05cebcc..1ded39f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+r-cran-cmprsk (2.2-7-2) unstable; urgency=medium
+
+ * Make test more tolerant against different output to compare with
+ * cme fix dpkg-control
+
+ -- Andreas Tille <tille at debian.org> Fri, 29 Apr 2016 09:10:40 +0200
+
r-cran-cmprsk (2.2-7-1) unstable; urgency=low
* Initial release (closes: #799920)
diff --git a/debian/control b/debian/control
index 223b028..6f4f7ac 100644
--- a/debian/control
+++ b/debian/control
@@ -8,8 +8,8 @@ Build-Depends: debhelper (>= 9),
cdbs,
r-base-dev,
r-cran-survival
-Standards-Version: 3.9.6
-Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/R/r-cran-cmprsk/trunk/
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/viewvc/debian-med/trunk/packages/R/r-cran-cmprsk/trunk/
Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/R/r-cran-cmprsk/trunk/
Homepage: https://cran.r-project.org/web/packages/cmprsk/
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
index c27a190..24dd25b 100644
--- a/debian/tests/run-unit-test
+++ b/debian/tests/run-unit-test
@@ -2,6 +2,20 @@
pkg=r-cran-cmprsk
+# 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 '^Platform: ' \
+ -e '^ISBN 3' \
+ -e '[Bb]uggy version of Kinderman-Ramage generator use' \
+ -e '^Loading required package: splines' \
+ $1 | \
+ sed '/^> *proc\.time()$/,$d'
+}
+
+
if [ "$ADTTMP" = "" ] ; then
ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
@@ -10,7 +24,9 @@ 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
- diff -u ${htest}.Rout.save ${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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-cmprsk.git
More information about the debian-med-commit
mailing list