diff options
Diffstat (limited to 't/recipes/checks/languages/r')
29 files changed, 132 insertions, 0 deletions
diff --git a/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/build-spec/debian/control.in b/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/build-spec/debian/control.in new file mode 100644 index 0000000..6b125db --- /dev/null +++ b/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/build-spec/debian/control.in @@ -0,0 +1,29 @@ +Source: [% $source %] +Priority: optional +Section: gnu-r +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: r-cran-positive +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: [% $description %] (wrong) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + This package has an incorrect Architecture field. + +Package: r-cran-false-positive +Architecture: all +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: [% $description %] (right) + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + This package has the correct Architecture field. diff --git a/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/build-spec/debian/r-cran-false-positive.install b/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/build-spec/debian/r-cran-false-positive.install new file mode 100644 index 0000000..613f993 --- /dev/null +++ b/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/build-spec/debian/r-cran-false-positive.install @@ -0,0 +1 @@ +DESCRIPTION usr/lib/R/site-library/false-positive diff --git a/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/build-spec/debian/r-cran-positive.install b/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/build-spec/debian/r-cran-positive.install new file mode 100644 index 0000000..9464141 --- /dev/null +++ b/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/build-spec/debian/r-cran-positive.install @@ -0,0 +1 @@ +DESCRIPTION usr/lib/R/site-library/positive diff --git a/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/build-spec/fill-values b/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/build-spec/fill-values new file mode 100644 index 0000000..276affc --- /dev/null +++ b/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: fields-r-package-not-arch-all +Skeleton: upload-non-native +Description: Tests for Architecture of an R package diff --git a/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/build-spec/orig/DESCRIPTION b/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/build-spec/orig/DESCRIPTION new file mode 100644 index 0000000..48a7223 --- /dev/null +++ b/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/build-spec/orig/DESCRIPTION @@ -0,0 +1,19 @@ +Package: urca +Version: 1.3-0 +Date: 2016-09-06 +Title: Unit Root and Cointegration Tests for Time Series Data +Authors@R: c(person("Bernhard", "Pfaff", email = "bernhard@pfaffikus.de", role = c("aut", "cre")), person("Eric", "Zivot",email = "ezivot@u.washington.edu", role = "ctb"), person("Matthieu", "Stigler", role = "ctb")) +Depends: R (>= 2.0.0), methods +Imports: nlme, graphics, stats +LazyLoad: yes +Description: Unit root and cointegration tests encountered in applied + econometric analysis are implemented. +License: GPL (>= 2) +NeedsCompilation: no +Packaged: 2016-09-06 20:57:19 UTC; bp +Author: Bernhard Pfaff [aut, cre], + Eric Zivot [ctb], + Matthieu Stigler [ctb] +Maintainer: Bernhard Pfaff <bernhard@pfaffikus.de> +Repository: CRAN +Date/Publication: 2016-09-06 23:26:02 diff --git a/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/eval/desc b/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/eval/desc new file mode 100644 index 0000000..ec766f6 --- /dev/null +++ b/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/eval/desc @@ -0,0 +1,2 @@ +Testname: fields-r-package-not-arch-all +Check: languages/r/architecture diff --git a/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/eval/hints b/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/eval/hints new file mode 100644 index 0000000..89c7803 --- /dev/null +++ b/t/recipes/checks/languages/r/architecture/fields-r-package-not-arch-all/eval/hints @@ -0,0 +1 @@ +r-cran-positive (binary): r-package-not-arch-all diff --git a/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/debian/install b/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/debian/install new file mode 100644 index 0000000..7cd27d5 --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/debian/install @@ -0,0 +1 @@ +src/* usr/lib/R/site-library/files-r-data diff --git a/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/fill-values b/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/fill-values new file mode 100644 index 0000000..fb4d856 --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: files-r-data-unrel +Description: Checks for R statistical data files (false positives) diff --git a/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/orig/src/test.Rda b/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/orig/src/test.Rda new file mode 100644 index 0000000..ac654ef --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/orig/src/test.Rda @@ -0,0 +1 @@ +Not an R file. diff --git a/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/orig/src/test.Rdata b/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/orig/src/test.Rdata new file mode 100644 index 0000000..ac654ef --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/orig/src/test.Rdata @@ -0,0 +1 @@ +Not an R file. diff --git a/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/orig/src/test.rda b/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/orig/src/test.rda new file mode 100644 index 0000000..ac654ef --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/orig/src/test.rda @@ -0,0 +1 @@ +Not an R file. diff --git a/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/orig/src/test.rdata b/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/orig/src/test.rdata new file mode 100644 index 0000000..ac654ef --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data-unrel/build-spec/orig/src/test.rdata @@ -0,0 +1 @@ +Not an R file. diff --git a/t/recipes/checks/languages/r/files-r-data-unrel/eval/desc b/t/recipes/checks/languages/r/files-r-data-unrel/eval/desc new file mode 100644 index 0000000..91993ea --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data-unrel/eval/desc @@ -0,0 +1,4 @@ +Testname: files-r-data-unrel +Test-Against: + r-data-without-readme-source +Check: languages/r diff --git a/t/recipes/checks/languages/r/files-r-data-unrel/eval/hints b/t/recipes/checks/languages/r/files-r-data-unrel/eval/hints new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data-unrel/eval/hints diff --git a/t/recipes/checks/languages/r/files-r-data/build-spec/debian/install b/t/recipes/checks/languages/r/files-r-data/build-spec/debian/install new file mode 100644 index 0000000..7cd27d5 --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data/build-spec/debian/install @@ -0,0 +1 @@ +src/* usr/lib/R/site-library/files-r-data diff --git a/t/recipes/checks/languages/r/files-r-data/build-spec/fill-values b/t/recipes/checks/languages/r/files-r-data/build-spec/fill-values new file mode 100644 index 0000000..d93508c --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: files-r-data +Description: Checks for R statistical data files diff --git a/t/recipes/checks/languages/r/files-r-data/build-spec/orig/src/test.Rda b/t/recipes/checks/languages/r/files-r-data/build-spec/orig/src/test.Rda Binary files differnew file mode 100644 index 0000000..6c6b186 --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data/build-spec/orig/src/test.Rda diff --git a/t/recipes/checks/languages/r/files-r-data/build-spec/orig/src/test.Rdata b/t/recipes/checks/languages/r/files-r-data/build-spec/orig/src/test.Rdata Binary files differnew file mode 100644 index 0000000..6c6b186 --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data/build-spec/orig/src/test.Rdata diff --git a/t/recipes/checks/languages/r/files-r-data/build-spec/orig/src/test.rda b/t/recipes/checks/languages/r/files-r-data/build-spec/orig/src/test.rda Binary files differnew file mode 100644 index 0000000..6c6b186 --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data/build-spec/orig/src/test.rda diff --git a/t/recipes/checks/languages/r/files-r-data/build-spec/orig/src/test.rdata b/t/recipes/checks/languages/r/files-r-data/build-spec/orig/src/test.rdata Binary files differnew file mode 100644 index 0000000..6c6b186 --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data/build-spec/orig/src/test.rdata diff --git a/t/recipes/checks/languages/r/files-r-data/eval/desc b/t/recipes/checks/languages/r/files-r-data/eval/desc new file mode 100644 index 0000000..f2c1209 --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data/eval/desc @@ -0,0 +1,2 @@ +Testname: files-r-data +Check: languages/r diff --git a/t/recipes/checks/languages/r/files-r-data/eval/hints b/t/recipes/checks/languages/r/files-r-data/eval/hints new file mode 100644 index 0000000..f836553 --- /dev/null +++ b/t/recipes/checks/languages/r/files-r-data/eval/hints @@ -0,0 +1,4 @@ +files-r-data (source): r-data-without-readme-source [src/test.rdata] +files-r-data (source): r-data-without-readme-source [src/test.rda] +files-r-data (source): r-data-without-readme-source [src/test.Rdata] +files-r-data (source): r-data-without-readme-source [src/test.Rda] diff --git a/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/build-spec/debian/control.in b/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/build-spec/debian/control.in new file mode 100644 index 0000000..c73927f --- /dev/null +++ b/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/build-spec/debian/control.in @@ -0,0 +1,18 @@ +Source: [% $source %] +Priority: optional +Section: gnu-r +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: r-cran-isospecr +Architecture: all +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: [% $description %] + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + This package has an incorrect Depends field. diff --git a/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/build-spec/debian/rules b/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/build-spec/debian/rules new file mode 100644 index 0000000..68d9a36 --- /dev/null +++ b/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/build-spec/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --buildsystem R diff --git a/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/build-spec/fill-values b/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/build-spec/fill-values new file mode 100644 index 0000000..569ce10 --- /dev/null +++ b/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-non-native +Testname: lacks-depends-on-r-api +Description: Ships R site library but lacks Depends on r-api-N +Package-Architecture: all +Extra-Build-Depends: dh-r diff --git a/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/build-spec/orig/DESCRIPTION b/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/build-spec/orig/DESCRIPTION new file mode 100644 index 0000000..62f6ec8 --- /dev/null +++ b/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/build-spec/orig/DESCRIPTION @@ -0,0 +1,21 @@ +Encoding: UTF-8 +Package: IsoSpecR +Type: Package +Title: The IsoSpec Algorithm +Version: 2.0.1 +Date: 2019-05-21 +Author: Mateusz Krzysztof Lacki and Michal Startek +Maintainer: Matteo Lacki <matteo.lacki@gmail.com> +Description: IsoSpec is a fine structure calculator used for obtaining the most + probable masses of a chemical compound given the frequencies of the composing + isotopes and their masses. It finds the smallest set of isotopologues with + a given probability. The probability is assumed to be that of the product of + multinomial distributions, each corresponding to one particular element and + parametrized by the frequencies of finding these elements in nature. These + numbers are supplied by IUPAC - the International Union of Pure and Applied + Chemistry. +License: BSD_2_clause + file LICENCE +URL: http://matteolacki.github.io/IsoSpec/ +Depends: + R (>= 3.0.0) +NeedsCompilation: no diff --git a/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/eval/desc b/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/eval/desc new file mode 100644 index 0000000..8999e6a --- /dev/null +++ b/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/eval/desc @@ -0,0 +1,4 @@ +Testname: lacks-depends-on-r-api +Check: languages/r/site-library +See-Also: + https://wiki.debian.org/Teams/r-pkg-team diff --git a/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/eval/hints b/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/eval/hints new file mode 100644 index 0000000..473fb96 --- /dev/null +++ b/t/recipes/checks/languages/r/site-library/lacks-depends-on-r-api/eval/hints @@ -0,0 +1,2 @@ +r-cran-isospecr (binary): ships-r-site-library IsoSpecR +r-cran-isospecr (binary): requires-r-api |