aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2010-05-30 01:13:41 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2010-05-30 01:13:41 -0300
commit05e1e00b84e4f84cfbd2b0057686fe5e0b0e1fd6 (patch)
tree16b916c4e11cb346e3db247a828c82d9257e8d99 /tests
parentAdded src_test() to the live ebuild (diff)
downloadg-octave-05e1e00b84e4f84cfbd2b0057686fe5e0b0e1fd6.tar.gz
g-octave-05e1e00b84e4f84cfbd2b0057686fe5e0b0e1fd6.tar.bz2
g-octave-05e1e00b84e4f84cfbd2b0057686fe5e0b0e1fd6.zip
fixed description.re_depends to allow '-' in the package name
Diffstat (limited to 'tests')
-rw-r--r--tests/test_description.py120
1 files changed, 60 insertions, 60 deletions
diff --git a/tests/test_description.py b/tests/test_description.py
index 85bc327..3cf6deb 100644
--- a/tests/test_description.py
+++ b/tests/test_description.py
@@ -89,66 +89,66 @@ class TestDescription(unittest.TestCase):
('pkg( <=1.0.0 )', ('pkg', '<=', '1.0.0')),
('pkg( >=1.0.0 )', ('pkg', '>=', '1.0.0')),
('pkg( ==1.0.0 )', ('pkg', '==', '1.0.0')),
- ('pkg (<1)', ('pkg', '<', '1')),
- ('pkg (>1)', ('pkg', '>', '1')),
- ('pkg (<=1)', ('pkg', '<=', '1')),
- ('pkg (>=1)', ('pkg', '>=', '1')),
- ('pkg (==1)', ('pkg', '==', '1')),
- ('pkg ( <1)', ('pkg', '<', '1')),
- ('pkg ( >1)', ('pkg', '>', '1')),
- ('pkg ( <=1)', ('pkg', '<=', '1')),
- ('pkg ( >=1)', ('pkg', '>=', '1')),
- ('pkg ( ==1)', ('pkg', '==', '1')),
- ('pkg (<1 )', ('pkg', '<', '1')),
- ('pkg (>1 )', ('pkg', '>', '1')),
- ('pkg (<=1 )', ('pkg', '<=', '1')),
- ('pkg (>=1 )', ('pkg', '>=', '1')),
- ('pkg (==1 )', ('pkg', '==', '1')),
- ('pkg ( <1 )', ('pkg', '<', '1')),
- ('pkg ( >1 )', ('pkg', '>', '1')),
- ('pkg ( <=1 )', ('pkg', '<=', '1')),
- ('pkg ( >=1 )', ('pkg', '>=', '1')),
- ('pkg ( ==1 )', ('pkg', '==', '1')),
- ('pkg (<1.0)', ('pkg', '<', '1.0')),
- ('pkg (>1.0)', ('pkg', '>', '1.0')),
- ('pkg (<=1.0)', ('pkg', '<=', '1.0')),
- ('pkg (>=1.0)', ('pkg', '>=', '1.0')),
- ('pkg ( ==1.0)', ('pkg', '==', '1.0')),
- ('pkg ( <1.0)', ('pkg', '<', '1.0')),
- ('pkg ( >1.0)', ('pkg', '>', '1.0')),
- ('pkg ( <=1.0)', ('pkg', '<=', '1.0')),
- ('pkg ( >=1.0)', ('pkg', '>=', '1.0')),
- ('pkg ( ==1.0)', ('pkg', '==', '1.0')),
- ('pkg (<1.0 )', ('pkg', '<', '1.0')),
- ('pkg (>1.0 )', ('pkg', '>', '1.0')),
- ('pkg (<=1.0 )', ('pkg', '<=', '1.0')),
- ('pkg (>=1.0 )', ('pkg', '>=', '1.0')),
- ('pkg (==1.0 )', ('pkg', '==', '1.0')),
- ('pkg ( <1.0 )', ('pkg', '<', '1.0')),
- ('pkg ( >1.0 )', ('pkg', '>', '1.0')),
- ('pkg ( <=1.0 )', ('pkg', '<=', '1.0')),
- ('pkg ( >=1.0 )', ('pkg', '>=', '1.0')),
- ('pkg ( ==1.0 )', ('pkg', '==', '1.0')),
- ('pkg (<1.0.0)', ('pkg', '<', '1.0.0')),
- ('pkg (>1.0.0)', ('pkg', '>', '1.0.0')),
- ('pkg (<=1.0.0)', ('pkg', '<=', '1.0.0')),
- ('pkg (>=1.0.0)', ('pkg', '>=', '1.0.0')),
- ('pkg (==1.0.0)', ('pkg', '==', '1.0.0')),
- ('pkg ( <1.0.0)', ('pkg', '<', '1.0.0')),
- ('pkg ( >1.0.0)', ('pkg', '>', '1.0.0')),
- ('pkg ( <=1.0.0)', ('pkg', '<=', '1.0.0')),
- ('pkg ( >=1.0.0)', ('pkg', '>=', '1.0.0')),
- ('pkg ( ==1.0.0)', ('pkg', '==', '1.0.0')),
- ('pkg (<1.0.0 )', ('pkg', '<', '1.0.0')),
- ('pkg (>1.0.0 )', ('pkg', '>', '1.0.0')),
- ('pkg (<=1.0.0 )', ('pkg', '<=', '1.0.0')),
- ('pkg (>=1.0.0 )', ('pkg', '>=', '1.0.0')),
- ('pkg (==1.0.0 )', ('pkg', '==', '1.0.0')),
- ('pkg ( <1.0.0 )', ('pkg', '<', '1.0.0')),
- ('pkg ( >1.0.0 )', ('pkg', '>', '1.0.0')),
- ('pkg ( <=1.0.0 )', ('pkg', '<=', '1.0.0')),
- ('pkg ( >=1.0.0 )', ('pkg', '>=', '1.0.0')),
- ('pkg ( ==1.0.0 )', ('pkg', '==', '1.0.0')),
+ ('pk-g (<1)', ('pk-g', '<', '1')),
+ ('pk-g (>1)', ('pk-g', '>', '1')),
+ ('pk-g (<=1)', ('pk-g', '<=', '1')),
+ ('pk-g (>=1)', ('pk-g', '>=', '1')),
+ ('pk-g (==1)', ('pk-g', '==', '1')),
+ ('pk-g ( <1)', ('pk-g', '<', '1')),
+ ('pk-g ( >1)', ('pk-g', '>', '1')),
+ ('pk-g ( <=1)', ('pk-g', '<=', '1')),
+ ('pk-g ( >=1)', ('pk-g', '>=', '1')),
+ ('pk-g ( ==1)', ('pk-g', '==', '1')),
+ ('pk-g (<1 )', ('pk-g', '<', '1')),
+ ('pk-g (>1 )', ('pk-g', '>', '1')),
+ ('pk-g (<=1 )', ('pk-g', '<=', '1')),
+ ('pk-g (>=1 )', ('pk-g', '>=', '1')),
+ ('pk-g (==1 )', ('pk-g', '==', '1')),
+ ('pk-g ( <1 )', ('pk-g', '<', '1')),
+ ('pk-g ( >1 )', ('pk-g', '>', '1')),
+ ('pk-g ( <=1 )', ('pk-g', '<=', '1')),
+ ('pk-g ( >=1 )', ('pk-g', '>=', '1')),
+ ('pk-g ( ==1 )', ('pk-g', '==', '1')),
+ ('pk-g (<1.0)', ('pk-g', '<', '1.0')),
+ ('pk-g (>1.0)', ('pk-g', '>', '1.0')),
+ ('pk-g (<=1.0)', ('pk-g', '<=', '1.0')),
+ ('pk-g (>=1.0)', ('pk-g', '>=', '1.0')),
+ ('pk-g ( ==1.0)', ('pk-g', '==', '1.0')),
+ ('pk-g ( <1.0)', ('pk-g', '<', '1.0')),
+ ('pk-g ( >1.0)', ('pk-g', '>', '1.0')),
+ ('pk-g ( <=1.0)', ('pk-g', '<=', '1.0')),
+ ('pk-g ( >=1.0)', ('pk-g', '>=', '1.0')),
+ ('pk-g ( ==1.0)', ('pk-g', '==', '1.0')),
+ ('pk-g (<1.0 )', ('pk-g', '<', '1.0')),
+ ('pk-g (>1.0 )', ('pk-g', '>', '1.0')),
+ ('pk-g (<=1.0 )', ('pk-g', '<=', '1.0')),
+ ('pk-g (>=1.0 )', ('pk-g', '>=', '1.0')),
+ ('pk-g (==1.0 )', ('pk-g', '==', '1.0')),
+ ('pk-g ( <1.0 )', ('pk-g', '<', '1.0')),
+ ('pk-g ( >1.0 )', ('pk-g', '>', '1.0')),
+ ('pk-g ( <=1.0 )', ('pk-g', '<=', '1.0')),
+ ('pk-g ( >=1.0 )', ('pk-g', '>=', '1.0')),
+ ('pk-g ( ==1.0 )', ('pk-g', '==', '1.0')),
+ ('pk-g (<1.0.0)', ('pk-g', '<', '1.0.0')),
+ ('pk-g (>1.0.0)', ('pk-g', '>', '1.0.0')),
+ ('pk-g (<=1.0.0)', ('pk-g', '<=', '1.0.0')),
+ ('pk-g (>=1.0.0)', ('pk-g', '>=', '1.0.0')),
+ ('pk-g (==1.0.0)', ('pk-g', '==', '1.0.0')),
+ ('pk-g ( <1.0.0)', ('pk-g', '<', '1.0.0')),
+ ('pk-g ( >1.0.0)', ('pk-g', '>', '1.0.0')),
+ ('pk-g ( <=1.0.0)', ('pk-g', '<=', '1.0.0')),
+ ('pk-g ( >=1.0.0)', ('pk-g', '>=', '1.0.0')),
+ ('pk-g ( ==1.0.0)', ('pk-g', '==', '1.0.0')),
+ ('pk-g (<1.0.0 )', ('pk-g', '<', '1.0.0')),
+ ('pk-g (>1.0.0 )', ('pk-g', '>', '1.0.0')),
+ ('pk-g (<=1.0.0 )', ('pk-g', '<=', '1.0.0')),
+ ('pk-g (>=1.0.0 )', ('pk-g', '>=', '1.0.0')),
+ ('pk-g (==1.0.0 )', ('pk-g', '==', '1.0.0')),
+ ('pk-g ( <1.0.0 )', ('pk-g', '<', '1.0.0')),
+ ('pk-g ( >1.0.0 )', ('pk-g', '>', '1.0.0')),
+ ('pk-g ( <=1.0.0 )', ('pk-g', '<=', '1.0.0')),
+ ('pk-g ( >=1.0.0 )', ('pk-g', '>=', '1.0.0')),
+ ('pk-g ( ==1.0.0 )', ('pk-g', '==', '1.0.0')),
]
for pkgstr, pkgtpl in depends:
match = description.re_depends.match(pkgstr)