4 use Test
::Simple tests
=> 5;
7 use Fedora
::Rebuild
::RPM
;
10 my ($name, $stash, $needles, $result) = @_;
11 Fedora
::Rebuild
::RPM
::adddeps
($stash, $needles);
12 ok
(Compare
($stash, $result), $name);
18 n1
=> [ ['f1', 'v1'] ]
21 n2
=> [ ['f2', 'v2'] ]
24 n1
=> [ ['f1', 'v1'] ],
25 n2
=> [ ['f2', 'v2'] ]
32 n1
=> [ ['f1', 'v1'] ]
35 n1
=> [ ['f1', 'v1'] ]
38 n1
=> [ ['f1', 'v1'] ]
43 'Identic name, different flags',
45 n1
=> [ ['f1', 'v1'] ]
48 n1
=> [ ['f2', 'v1'] ]
51 n1
=> [ ['f1', 'v1'], ['f2', 'v1'] ]
56 'Identic name, different versions',
58 n1
=> [ ['f1', 'v1'] ]
61 n1
=> [ ['f1', 'v2'] ]
64 n1
=> [ ['f1', 'v1'], ['f1', 'v2'] ]
69 'Identic name, some versions differ',
71 n1
=> [ ['f1', 'v1'], ['f1', 'v2'], ['f1', 'v3'] ]
74 n1
=> [ ['f1', 'v1'], ['f1', 'v4'], ['f1', 'v3'] ]
77 n1
=> [ ['f1', 'v1'], ['f1', 'v2'], ['f1', 'v3'], ['f1', 'v4'] ]