Clarify overlay usage
[g-gem.git] / test / test_ebuild_name.rb
blob5b4dae0d33d8e20fde47075e06f660d736389a20
1 require 'g-gem'
3 check_list = {
4   # special cases
5   'BlueCloth' => 'bluecloth',
6   'KirbyBase' => 'kirbybase',
7   'libxml-ruby' => 'libxml',
8   'RedCloth' => 'redcloth',
9   'mega' => 'mega-modules',
10   'nano' => 'nano-methods',
11   'gettext' => 'ruby-gettext',
12   'snmp' => 'snmplib',
13   'ZenTest' => 'zentest',
14   'NGSLib-RFile' => 'ngslib-rfile',
15   'tRuTag' => 'trutag',
17   'ActiveRecord-JDBC' => 'active-record-jdbc',
18   'AdministratedScaffold' => 'administrated-scaffold',
19   'AntBuilder' => 'ant-builder',
20   'Aplo' => 'aplo',
21   'Bangkok' => 'bangkok',
22   'BitStructEx' => 'bit-struct-ex',
23   'Bloglines4R' => 'bloglines4r',
24   'BuildMaster' => 'build-master',
25   'BxMS' => 'bxms',
26   'cacheAR' => 'cachear',
27   'ClickSpotter' => 'click-spotter',
28   'CommandLine' => 'command-line',
29   'Console' => 'console',
30   'Crypt::ISAAC' => 'crypt-isaac',
31   'DBrb' => 'dbrb',
32   'De.linque.nt' => 'de-linque-nt',
33   'EliteJournal' => 'elite-journal',
34   'FaceToFace' => 'face-to-face',
35   'FakeWeb' => 'fake-web',
36   'FixedPt' => 'fixed-pt',
37   'FixedWidthFields' => 'fixed-width-fields',
38   'Freshmeat-Ruby' => 'freshmeat-ruby',
39   'fUnit' => 'f-unit',
40   'GeoRuby' => 'geo-ruby',
41   'GpsTrail' => 'gps-trail',
42   'Graphiclious' => 'graphiclious',
43   'IMAPCleanse' => 'imap-cleanse',
44   'Imlib2-Ruby' => 'imlib2-ruby',
45   'IO-Reactor' => 'io-reactor',
46   'LibrarySolution' => 'library-solution',
47   'Linguistics' => 'linguistics',
48   'LogSimple' => 'log-simple',
49   'MB-Ruby' => 'mb-ruby',
50   'MP4Info' => 'mp4info',
51   'MultipartAlternativeLite' => 'multipart-alternative-lite',
52   'Mxx_ru' => 'mxx-ru',
53   'Nabaztag' => 'nabaztag',
54   'ObjectGraph' => 'object-graph',
55   'OptionParser' => 'option-parser',
56   'Orbjson' => 'orbjson',
57   'PageTemplate' => 'page-template',
58   'ParseTree' => 'parse-tree',
59   'ParseUserAgent' => 'parse-user-agent',
60   'Pimki' => 'pimki',
61   'Platform' => 'platform',
62   'PrettyException' => 'pretty-exception',
63   'PriorityQueue' => 'priority-queue',
64   'RailsEditor' => 'rails-editor',
65   'RAliasFile' => 'ralias-file',
66   'RbYAML' => 'rbyaml',
67   'RedGreen' => 'red-green',
68   'Renamer' => 'renamer',
69   'RGnuchess' => 'rgnuchess',
70   'Ridiculous' => 'ridiculous',
71   'RingyDingy' => 'ringy-dingy',
72   'Rubernate' => 'rubernate',
73   'Rubidium' => 'rubidium',
74   'Rubilicious' => 'rubilicious',
75   'Ruboid' => 'ruboid',
76   'RubyInline' => 'ruby-inline',
77   'Ruby-IRC' => 'ruby-irc',
78   'Ruby-MemCache' => 'ruby-mem-cache',
79   'rubySelenium' => 'ruby-selenium',
80   'RubyToC' => 'ruby-toc',
81   'RuCodeGen' => 'ru-code-gen',
82   'Schmock' => 'schmock',
83   'Scratch' => 'scratch',
84   'Shunt' => 'shunt',
85   'SI' => 'si',
86   'SimpleSearch' => 'simple-search',
87   'SimpleTrace' => 'simple-trace',
88   'Soks' => 'soks',
89   'SQLDependencyGrapher' => 'sql-dependency-grapher',
90   'SvnLog' => 'svn-log',
91   'SwedishTV' => 'swedishtv',
92   'TeleAuth' => 'tele-auth',
93   'Text' => 'text',
94   'Tracker' => 'tracker',
95   'Usage' => 'usage',
96   'VPaypal' => 'vpaypal',
97   'VRTools' => 'vr-tools',
98   'WeightedSelection' => 'weighted-selection',
99   'Wiki2Go' => 'wiki2go',
100   'XDCC-Fetch' => 'xdcc-fetch',
101   'ZenHacks' => 'zen-hacks',
105 error_list = []
106 for src,result in check_list
107   unless GGem.ebuild_name(src) == result
108     error_list << "#{src} => #{GGem.ebuild_name(src)} (right value is #{result})"
109   end
112 puts error_list.join("\n") unless error_list.empty?