public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/R_overlay:master commit in: tests/static/
  2013-07-03 10:04 [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
@ 2013-07-03 10:05 ` André Erdmann
  0 siblings, 0 replies; 3+ messages in thread
From: André Erdmann @ 2013-07-03 10:05 UTC (permalink / raw
  To: gentoo-commits

commit:     3585d9bf76990672a2fb2f75ac694ffe8345de0d
Author:     André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Wed Jul  3 10:04:19 2013 +0000
Commit:     André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Wed Jul  3 10:04:19 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=3585d9bf

tests/static/depres: add examples from doc/rst

---
 tests/static/depres.py | 121 ++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 120 insertions(+), 1 deletion(-)

diff --git a/tests/static/depres.py b/tests/static/depres.py
index f72d3dd..873237e 100644
--- a/tests/static/depres.py
+++ b/tests/static/depres.py
@@ -6,6 +6,9 @@
 
 # ready-to-use input for testing dependency resolution
 
+EMPTY_STR = ""
+
+RESOLVE_AS_IGNORED = lambda  s: ( s, EMPTY_STR )
 DONT_RESOLVE       = lambda  s: ( s, None )
 DONT_RESOLVE_TUPLE = lambda *S: tuple ( map ( DONT_RESOLVE, S ) )
 
@@ -17,6 +20,7 @@ DEPRES_DATA = {
       ( "fftw 2", ">=sci-libs/fftw-2" ),
       ( "fftw 2.1.5", ">=sci-libs/fftw-2.1.5:2.1" ),
    ),
+
    'slot0': (
       ( "p0", "cat/pkg:*" ),
       DONT_RESOLVE ( "p0 !=2" ),
@@ -31,8 +35,88 @@ DEPRES_DATA = {
       DONT_RESOLVE ( "p3 1." ),
       ( "p3 2.1.0", "cat/pkg:1" ),
       ( "p4 5.4.3.2.1", "cat/pkg:5=" ),
+      ( "p5 4", "cat/pkg:99/2" ),
    ),
+
    'empty': DONT_RESOLVE_TUPLE ( "fftw", ),
+
+   # examples from doc/rst/usage.rst
+   'example1': (
+      ( "r 2.12", ">=dev-lang/R-2.12" ),
+      ( "R(>= 2.14)", ">=dev-lang/R-2.14" ),
+      ( "R [<2.10]", "<dev-lang/R-2.10" ),
+      ( "r{ !=2.12 }", "( !=dev-lang/R-2.12 dev-lang/R )" ),
+      ( "R", "dev-lang/R" ),
+      DONT_RESOLVE ( "R (!2)" ),
+   ),
+   'example2': (
+      # depends on DEFAULT_CATEGORY
+      ( 'zoo', 'sci-R/zoo' ),
+      DONT_RESOLVE ( 'zoo 5' ),
+   ),
+   'example3': (
+      (
+         'for building from source: GDAL >= 1.3.1 && GDAL < 1.6.0 '
+         '(until tested) library and PROJ.4 (proj >= 4.4.9)',
+         '( sci-libs/gdal sci-libs/proj )'
+      ),
+      (
+         'for building from source: GDAL >= 1.3.1 library '
+         'and PROJ.4 (proj >= 4.4.9)',
+         '( sci-libs/gdal sci-libs/proj )'
+      ),
+      (
+         'for building from source: GDAL >= 1.3.1 library '
+         'and PROJ.4(proj >= 4.4.9)',
+         '( sci-libs/gdal sci-libs/proj )'
+      ),
+      (
+         'for building from source: GDAL >= 1.6.0 library '
+         'and PROJ.4(proj >= 4.4.9)',
+         '( sci-libs/gdal sci-libs/proj )'
+      ),
+      DONT_RESOLVE ( "for building from source: GDAL AND PROJ" ),
+   ),
+   'example4': (
+      RESOLVE_AS_IGNORED ( "see README" ),
+      RESOLVE_AS_IGNORED ( "read INSTALL" ),
+      RESOLVE_AS_IGNORED (
+         "Will use djmrgl or rgl packages for rendering if present"
+      ),
+   ),
+   'example5': (
+      ( "fftw", "sci-libs/fftw" ),
+      DONT_RESOLVE ( "fftw 2" ),
+      ( "fftw 2.1", "sci-libs/fftw:2.1" ),
+      ( "fftw 2.1.2", "sci-libs/fftw:2.1" ),
+      ( "fftw 2.1.3", "sci-libs/fftw:2.1" ),
+      ( "fftw [  <=2.2]", "sci-libs/fftw:2.2" ),
+      ( "fftw (=3.0)", "sci-libs/fftw:3.0" ),
+      # !!
+      ( "fftw (=3.2)", "sci-libs/fftw:3.2" ),
+      DONT_RESOLVE ( "fftw ( != 5 )" ),
+   ),
+   'example6': (
+      ( "fftw", "sci-libs/fftw" ),
+      DONT_RESOLVE ( "fftw 2" ),
+      ( "fftw 2.1", "sci-libs/fftw:2.1" ),
+      ( "fftw 2.1.2", "sci-libs/fftw:2.1" ),
+      ( "fftw 2.1.3", "sci-libs/fftw:2.1" ),
+      DONT_RESOLVE ( "fftw [  <=2.2]" ),
+      ( "fftw (=3.0)", "sci-libs/fftw:3.0" ),
+      # !!
+      DONT_RESOLVE ( "fftw (=3.2)" ),
+      DONT_RESOLVE ( "fftw ( != 5 )" ),
+   ),
+   'example5+6' : 'example5',
+   'example7': (
+      DONT_RESOLVE ( "fftw (=2.1)" ),
+      ( "fftw (=3.0)", "sci-libs/fftw:3.0" ),
+      ( "fftw (=3.1)", "sci-libs/fftw:3.0" ),
+      ( "fftw (=3.2)", "sci-libs/fftw:3.0" ),
+      ( "fftw (=3.3)", "sci-libs/fftw:3.0" ),
+   ),
+
 }
 
 # dict <ruleset name>, <m-tuples>( <rule file line>^m )
@@ -42,20 +126,55 @@ DEPRES_RULES = {
       '~sci-libs/fftw:+v:s=..1 :: fftw',
       '~sci-libs/fftw :: fftw',
    ),
+
    'slot0': (
       '~cat/pkg:open:* :: p0',
       '~cat/pkg:open:  :: p1',
       '~cat/pkg:with_version:s=..1:/2 :: p2',
       '~cat/pkg:s=1 :: p3',
       '~cat/pkg:= :: p4',
+      '~cat/pkg:s=i99:/i2 :: p5',
    ),
+
    'empty': (),
+
+   # examples from doc/rst/usage.rst
+   'example1': (
+      '~dev-lang/R :: R',
+   ),
+   'example2': (
+      'zoo',
+   ),
+   'example3': (
+      '( sci-libs/gdal sci-libs/proj ) {',
+         'for building from source: GDAL >= 1.3.1 && GDAL < 1.6.0 (until tested) library and PROJ.4 (proj >= 4.4.9)',
+         'for building from source: GDAL >= 1.3.1 library and PROJ.4 (proj >= 4.4.9)',
+         'for building from source: GDAL >= 1.3.1 library and PROJ.4(proj >= 4.4.9)',
+         'for building from source: GDAL >= 1.6.0 library and PROJ.4(proj >= 4.4.9)',
+      '}',
+   ),
+   'example4': (
+      '! {',
+         'see README',
+         'read INSTALL',
+         'Will use djmrgl or rgl packages for rendering if present',
+      '}',
+   ),
+   'example5': (
+      '~sci-libs/fftw:s=0..1 :: fftw',
+   ),
+   'example6': (
+      '~sci-libs/fftw:s=0..1:restrict=2.1,3.0: :: fftw',
+   ),
+   'example7': (
+      '~sci-libs/fftw:s=i3.0:r=3.0,3.1,3.2,3.3 :: fftw',
+   ),
 }
 
 # dict <dataset name>, <iterable|str <ruleset name(s)>>
 #  datasets not listed here default to <dataset name> as <ruleset name>
 DEPRES_INCLUDE = {
-   #"fftw": "fftw",
+   'example5+6': ( "example5", "example6", ),
 }
 
 #DEPRES_FAULTY_RULES=...


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] proj/R_overlay:master commit in: tests/static/
  2013-07-23 14:57 [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
@ 2013-07-23 14:57 ` André Erdmann
  0 siblings, 0 replies; 3+ messages in thread
From: André Erdmann @ 2013-07-23 14:57 UTC (permalink / raw
  To: gentoo-commits

commit:     2bb8221892c3f07a54e4947afed9094987969e8d
Author:     André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Tue Jul 23 14:31:13 2013 +0000
Commit:     André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Tue Jul 23 14:31:13 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=2bb82218

tests/: update depres data

---
 tests/static/depres.py | 51 +++++++++++++++++++++++++-------------------------
 1 file changed, 25 insertions(+), 26 deletions(-)

diff --git a/tests/static/depres.py b/tests/static/depres.py
index d91b012..5b8c98e 100644
--- a/tests/static/depres.py
+++ b/tests/static/depres.py
@@ -41,6 +41,23 @@ DEPRES_DATA = {
    'selfdeps': (
    ),
 
+   'and-split' : (
+      ( "GDAL >= 1.3.1", ">=sci-libs/gdal-1.3.1" ),
+      ( "PROJ.4 (>= 4.4.9)", ">=sci-libs/proj-4.4.9" ),
+
+      (
+         'for building from source: GDAL >= 1.3.1 && GDAL < 1.6.0 '
+         '(until tested) library and PROJ.4 (proj >= 4.4.9)',
+         None
+      ),
+      (
+         'for building from source: GDAL >= 1.3.1 '
+         'library and PROJ.4 (>= 4.4.9)',
+         ( ">=sci-libs/gdal-1.3.1", ">=sci-libs/proj-4.4.9" ),
+      ),
+   ),
+
+
    'empty': DONT_RESOLVE_TUPLE ( "fftw", ),
 
    # examples from doc/rst/usage.rst
@@ -58,27 +75,7 @@ DEPRES_DATA = {
       DONT_RESOLVE ( 'zoo 5' ),
    ),
    'example3': (
-      (
-         'for building from source: GDAL >= 1.3.1 && GDAL < 1.6.0 '
-         '(until tested) library and PROJ.4 (proj >= 4.4.9)',
-         '( sci-libs/gdal sci-libs/proj )'
-      ),
-      (
-         'for building from source: GDAL >= 1.3.1 library '
-         'and PROJ.4 (proj >= 4.4.9)',
-         '( sci-libs/gdal sci-libs/proj )'
-      ),
-      (
-         'for building from source: GDAL >= 1.3.1 library '
-         'and PROJ.4(proj >= 4.4.9)',
-         '( sci-libs/gdal sci-libs/proj )'
-      ),
-      (
-         'for building from source: GDAL >= 1.6.0 library '
-         'and PROJ.4(proj >= 4.4.9)',
-         '( sci-libs/gdal sci-libs/proj )'
-      ),
-      DONT_RESOLVE ( "for building from source: GDAL AND PROJ" ),
+      ( 'BLAS/LAPACK libraries', '( virtual/blas virtual/lapack )' ),
    ),
    'example4': (
       RESOLVE_AS_IGNORED ( "see README" ),
@@ -143,6 +140,11 @@ DEPRES_RULES = {
       '@selfdep', '~other-cat/pkg :: zoo',
    ),
 
+   'and-split': (
+      '~sci-libs/gdal :: gdal',
+      '~sci-libs/proj {', 'proj', 'proj.4', '}',
+   ),
+
    'empty': (),
 
    # examples from doc/rst/usage.rst
@@ -153,11 +155,8 @@ DEPRES_RULES = {
       'zoo',
    ),
    'example3': (
-      '( sci-libs/gdal sci-libs/proj ) {',
-         'for building from source: GDAL >= 1.3.1 && GDAL < 1.6.0 (until tested) library and PROJ.4 (proj >= 4.4.9)',
-         'for building from source: GDAL >= 1.3.1 library and PROJ.4 (proj >= 4.4.9)',
-         'for building from source: GDAL >= 1.3.1 library and PROJ.4(proj >= 4.4.9)',
-         'for building from source: GDAL >= 1.6.0 library and PROJ.4(proj >= 4.4.9)',
+      '( virtual/blas virtual/lapack ) {',
+         'BLAS/LAPACK libraries',
       '}',
    ),
    'example4': (


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] proj/R_overlay:master commit in: tests/static/
@ 2014-08-23 19:03 André Erdmann
  0 siblings, 0 replies; 3+ messages in thread
From: André Erdmann @ 2014-08-23 19:03 UTC (permalink / raw
  To: gentoo-commits

commit:     e51ee9a2485f1acdffb03a45659e7e525340c08b
Author:     André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Sat Aug 23 18:59:38 2014 +0000
Commit:     André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Sat Aug 23 18:59:38 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=e51ee9a2

tests, data: reflect SLOT rule changes

---
 tests/static/depres.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/tests/static/depres.py b/tests/static/depres.py
index 5b8c98e..85ff7ae 100644
--- a/tests/static/depres.py
+++ b/tests/static/depres.py
@@ -33,9 +33,9 @@ DEPRES_DATA = {
       DONT_RESOLVE ( "p2 !5" ),
       DONT_RESOLVE ( "p2 !=5" ),
       DONT_RESOLVE ( "p3 1." ),
-      ( "p3 2.1.0", "cat/pkg:1" ),
-      ( "p4 5.4.3.2.1", "cat/pkg:5=" ),
-      ( "p5 4", "cat/pkg:99/2" ),
+      ( "p3 =2.1.0", "cat/pkg:1" ),
+      ( "p4 =5.4.3.2.1", "cat/pkg:5=" ),
+      ( "p5 =4", "cat/pkg:99/2" ),
    ),
 
    'selfdeps': (
@@ -123,7 +123,7 @@ DEPRES_DATA = {
 DEPRES_RULES = {
    'fftw': (
       'sci-libs/fftw {', 'fftw', '}',
-      '~sci-libs/fftw:+v:s=..1 :: fftw',
+      '~sci-libs/fftw:wide_match:+v:s=..1 :: fftw',
       '~sci-libs/fftw :: fftw',
    ),
 
@@ -167,13 +167,13 @@ DEPRES_RULES = {
       '}',
    ),
    'example5': (
-      '~sci-libs/fftw:s=0..1 :: fftw',
+      '~sci-libs/fftw:wide_match:s=0..1 :: fftw',
    ),
    'example6': (
-      '~sci-libs/fftw:s=0..1:restrict=2.1,3.0: :: fftw',
+      '~sci-libs/fftw:wide_match:s=0..1:restrict=2.1,3.0: :: fftw',
    ),
    'example7': (
-      '~sci-libs/fftw:s=i3.0:r=3.0,3.1,3.2,3.3 :: fftw',
+      '~sci-libs/fftw:wide_match:s=i3.0:r=3.0,3.1,3.2,3.3 :: fftw',
    ),
 }
 


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-23 19:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-23 19:03 [gentoo-commits] proj/R_overlay:master commit in: tests/static/ André Erdmann
  -- strict thread matches above, loose matches on Subject: below --
2013-07-23 14:57 [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-07-23 14:57 ` [gentoo-commits] proj/R_overlay:master " André Erdmann
2013-07-03 10:04 [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-07-03 10:05 ` [gentoo-commits] proj/R_overlay:master " André Erdmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox