...
 
Commits (4)
Notes on how this package can be tested.
────────────────────────────────────────
This package can be tested by running the provided test:
sh run-unit-test
in order to confirm its integrity.
......@@ -8,6 +8,10 @@ r-cran-rpostgresql (0.6-2-1) UNRELEASED; urgency=medium
* Convert from cdbs to dh-r
* Standards-Version: 4.1.3
* debhelper 11
* New Build-Depends: libpq-dev
* Add autopkgtest
* Depends: littler
* Fix script permissions
-- Andreas Tille <tille@debian.org> Tue, 13 Mar 2018 19:30:28 +0100
......
......@@ -6,7 +6,8 @@ Priority: optional
Build-Depends: debhelper (>= 11~),
dh-r,
r-base-dev,
r-cran-dbi
r-cran-dbi,
libpq-dev
Standards-Version: 4.1.3
Vcs-Browser: https://salsa.debian.org/r-pkg-team/r-cran-rpostgresql
Vcs-Git: https://salsa.debian.org/r-pkg-team/r-cran-rpostgresql.git
......@@ -16,7 +17,8 @@ Package: r-cran-rpostgresql
Architecture: any
Depends: ${R:Depends},
${misc:Depends},
${shlibs:Depends}
${shlibs:Depends},
littler
Recommends: ${R:Recommends}
Suggests: ${R:Suggests}
Description: GNU R package providing database interface and driver for PostgreSQL
......
debian/tests/run-unit-test
debian/README.test
tests
......@@ -3,3 +3,8 @@
%:
dh $@ --buildsystem R
override_dh_fixperms:
dh_fixperms
find debian -name PostgreSQLDataTypeTest.r -exec chmod +x \{\} \;
find debian -name datetime.r -exec chmod +x \{\} \;
find debian -name transactionManagement.r -exec chmod +x \{\} \;
Tests: run-unit-test
Depends: @,
Restrictions: allow-stderr
#!/bin/sh -e
pkgname=RPostgreSQL
debname=r-cran-rpostgresql
if [ "$AUTOPKGTEST_TMP" = "" ] ; then
AUTOPKGTEST_TMP=`mktemp -d /tmp/${debname}-test.XXXXXX`
trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi
cd $AUTOPKGTEST_TMP
cp -a /usr/share/doc/$debname/tests/* $AUTOPKGTEST_TMP
gunzip -r *
for testfile in *.R; do
echo "BEGIN TEST $testfile"
LC_ALL=C R --no-save < $testfile
done