mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-bionar: fix tests
This commit is contained in:
parent
5688e192ad
commit
0fb7748c45
2 changed files with 39 additions and 5 deletions
|
@ -1,10 +1,10 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
|
||||
_pkgname=BioNAR
|
||||
_pkgver=1.4.1
|
||||
_pkgver=1.4.4
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgrel=0
|
||||
pkgdesc="Biological Network Analysis in R"
|
||||
arch=(any)
|
||||
url="https://bioconductor.org/packages/$_pkgname"
|
||||
|
@ -50,9 +50,17 @@ optdepends=(
|
|||
r-testthat
|
||||
r-vdiffr
|
||||
)
|
||||
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('cce2273d564095b70d5b18aa6d134612')
|
||||
b2sums=('38bb15d26fa8dfa321e9ea801f949c39ac51189faf62aaa703e3ee2431261771e3485562f4b6ce6fe2311bbeec25875fd2b5a108911c84f16942805bb28752ae')
|
||||
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
|
||||
"fix-tests.patch")
|
||||
md5sums=('60ea801489d5db3a2bb2e00d1acc1056'
|
||||
'4a0d1366b4a7d786d07d1553c9a7899e')
|
||||
b2sums=('9a2a1a98ccff8e9d8054295f5b53321dcd03f9d996a1931f4e6a51c98af378ac2d0e0ef9a1ff51e43b15ff795ac523305037197d6b0e63ddd2f4aeeb28f6ff34'
|
||||
'5bcc25f82c45ce8442351f73a851f34bf2c76b286dd708141882f928876d02fba213e8760146cd3115d298985aa062fb67d9a5d89ea7a62687d65fdfb3349a84')
|
||||
|
||||
prepare() {
|
||||
# fix test snapshots
|
||||
patch -Np1 -i fix-tests.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
mkdir build
|
||||
|
|
26
BioArchLinux/r-bionar/fix-tests.patch
Normal file
26
BioArchLinux/r-bionar/fix-tests.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
diff --git a/BioNAR/tests/testthat/_snaps/bridgeness/karatebridgenessplot.svg b/BioNAR/tests/testthat/_snaps/bridgeness/karatebridgenessplot.svg
|
||||
index eacd23f..4feb787 100644
|
||||
--- a/BioNAR/tests/testthat/_snaps/bridgeness/karatebridgenessplot.svg
|
||||
+++ b/BioNAR/tests/testthat/_snaps/bridgeness/karatebridgenessplot.svg
|
||||
@@ -18,7 +18,7 @@
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g clip-path='url(#cpMC4wMHw3MjAuMDB8MC4wMHw1NzYuMDA=)'>
|
||||
-<rect x='0.00' y='0.00' width='720.00' height='576.00' style='stroke-width: 1.07; stroke: #FFFFFF; fill: #FFFFFF;' />
|
||||
+<rect x='0.000000000000064' y='0.00' width='720.00' height='576.00' style='stroke-width: 1.07; stroke: #FFFFFF; fill: #FFFFFF;' />
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id='cpNTQuOTF8NzE0LjUyfDIyLjc4fDUzMC4zMw=='>
|
||||
diff --git a/BioNAR/tests/testthat/_snaps/bridgeness/presynbridgenessplot.svg b/BioNAR/tests/testthat/_snaps/bridgeness/presynbridgenessplot.svg
|
||||
index de47e4c..7ef78e1 100644
|
||||
--- a/BioNAR/tests/testthat/_snaps/bridgeness/presynbridgenessplot.svg
|
||||
+++ b/BioNAR/tests/testthat/_snaps/bridgeness/presynbridgenessplot.svg
|
||||
@@ -18,7 +18,7 @@
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g clip-path='url(#cpMC4wMHw3MjAuMDB8MC4wMHw1NzYuMDA=)'>
|
||||
-<rect x='0.00' y='0.00' width='720.00' height='576.00' style='stroke-width: 1.07; stroke: #FFFFFF; fill: #FFFFFF;' />
|
||||
+<rect x='0.000000000000064' y='0.00' width='720.00' height='576.00' style='stroke-width: 1.07; stroke: #FFFFFF; fill: #FFFFFF;' />
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id='cpNTQuOTF8NzE0LjUyfDIyLjc4fDUzMC4zMw=='>
|
Loading…
Add table
Reference in a new issue