Skip to content
Snippets Groups Projects
Commit 8c5e06e2 authored by Andreas Tille's avatar Andreas Tille
Browse files

Normalise autopkgtest

parent e7bd9494
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ r-cran-bayesplot (1.8.1-1) UNRELEASED; urgency=medium
r-cran-ggplot2.
* Drop patch for excluded test since Upstream skips test if ggfortify
is not available
* Normalise autopkgtest
-- Andreas Tille <tille@debian.org> Thu, 09 Sep 2021 10:48:29 +0200
......
#!/bin/sh -e
pkgname=bayesplot
debname=r-cran-bayesplot
if [ "$AUTOPKGTEST_TMP" = "" ] ; then
......@@ -8,17 +7,9 @@ if [ "$AUTOPKGTEST_TMP" = "" ] ; then
trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi
cd $AUTOPKGTEST_TMP
cp -a /usr/share/doc/$debname/tests/* $AUTOPKGTEST_TMP
cp -a /usr/share/doc/$debname/tests $AUTOPKGTEST_TMP
gunzip -r *
# FIXME: Hack around a problematic test
# One test results in
# -- 1. Error: Searches with entities work (#241) (@test-xml_find.R#136) --------
# Can't find `tests/testthat` in current directory.
# The following circumvents this by some not so clean trick
mkdir testthat/tests
ln -s $(pwd)/testthat testthat/tests/testthat
cd tests
for testfile in *.R; do
echo "BEGIN TEST $testfile"
LC_ALL=C.UTF-8 R --no-save < $testfile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment