| 1 | #!/bin/sh -e |
| 2 | |
| 3 | # The expected outputs (*.Rout.save) are not expected to be identical, the |
| 4 | # "CRAN Package Check Results" show differences. So, we should probably not |
| 5 | # compare our output to the "expected" output. It produce a lot of false positive. |
| 6 | # https://cloud.r-project.org/web/checks/check_results_sp.html |
| 7 | |
| 8 | export LC_ALL=C.UTF-8 |
| 9 | |
| 10 | debname=r-cran-sp |
| 11 | |
| 12 | if [ "$AUTOPKGTEST_TMP" = "" ] ; then |
| 13 | AUTOPKGTEST_TMP=`mktemp -d /tmp/${debname}-test.XXXXXX` |
| 14 | trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM |
| 15 | fi |
| 16 | |
| 17 | cd $AUTOPKGTEST_TMP |
| 18 | cp -a /usr/share/doc/${debname}/tests/* $AUTOPKGTEST_TMP |
| 19 | gunzip -r * |
| 20 | # skip tests that fail without r-cran-rgeos |
| 21 | rm -f agg.R over2.R pass1.R |
| 22 | for testfile in *.R; do |
| 23 | echo "BEGIN TEST $testfile" |
| 24 | R --no-save < $testfile |
| 25 | done |
| 26 |