| 1 | #!/usr/bin/perl |
|---|
| 2 | # $Id$ |
|---|
| 3 | |
|---|
| 4 | use strict; |
|---|
| 5 | use warnings; |
|---|
| 6 | |
|---|
| 7 | use lib 'lib', 'extlib'; |
|---|
| 8 | |
|---|
| 9 | use Test::More tests => 181; |
|---|
| 10 | |
|---|
| 11 | use_ok('MT::Bootstrap'); |
|---|
| 12 | use_ok('MT::ErrorHandler'); |
|---|
| 13 | use_ok('MT'); |
|---|
| 14 | |
|---|
| 15 | # Base App class |
|---|
| 16 | use_ok('MT::App'); |
|---|
| 17 | use_ok('MT::Tool'); |
|---|
| 18 | |
|---|
| 19 | # Core module |
|---|
| 20 | use_ok('MT::Core'); |
|---|
| 21 | use_ok('MT::Component'); |
|---|
| 22 | |
|---|
| 23 | # All CMS modules |
|---|
| 24 | use_ok('MT::App::CMS'); |
|---|
| 25 | use_ok('MT::CMS::AddressBook'); |
|---|
| 26 | use_ok('MT::CMS::Dashboard'); |
|---|
| 27 | use_ok('MT::CMS::Plugin'); |
|---|
| 28 | use_ok('MT::CMS::Asset'); |
|---|
| 29 | use_ok('MT::CMS::Entry'); |
|---|
| 30 | use_ok('MT::CMS::Search'); |
|---|
| 31 | use_ok('MT::CMS::BanList'); |
|---|
| 32 | use_ok('MT::CMS::Export'); |
|---|
| 33 | use_ok('MT::CMS::Tag'); |
|---|
| 34 | use_ok('MT::CMS::Blog'); |
|---|
| 35 | use_ok('MT::CMS::Folder'); |
|---|
| 36 | use_ok('MT::CMS::Template'); |
|---|
| 37 | use_ok('MT::CMS::Category'); |
|---|
| 38 | use_ok('MT::CMS::Import'); |
|---|
| 39 | use_ok('MT::CMS::Tools'); |
|---|
| 40 | use_ok('MT::CMS::Comment'); |
|---|
| 41 | use_ok('MT::CMS::Log'); |
|---|
| 42 | use_ok('MT::CMS::TrackBack'); |
|---|
| 43 | use_ok('MT::CMS::Common'); |
|---|
| 44 | use_ok('MT::CMS::Page'); |
|---|
| 45 | use_ok('MT::CMS::User'); |
|---|
| 46 | |
|---|
| 47 | # Supporting applications |
|---|
| 48 | use_ok('MT::App::ActivityFeeds'); |
|---|
| 49 | use_ok('MT::App::Comments'); |
|---|
| 50 | use_ok('MT::App::NotifyList'); |
|---|
| 51 | use_ok('MT::App::Trackback'); |
|---|
| 52 | use_ok('MT::App::Upgrader'); |
|---|
| 53 | use_ok('MT::App::Viewer'); |
|---|
| 54 | use_ok('MT::App::Wizard'); |
|---|
| 55 | |
|---|
| 56 | # Search apps |
|---|
| 57 | use_ok('MT::App::Search'); |
|---|
| 58 | use_ok('MT::App::Search::FreeText'); |
|---|
| 59 | use_ok('MT::App::Search::Legacy'); |
|---|
| 60 | use_ok('MT::App::Search::TagSearch'); |
|---|
| 61 | |
|---|
| 62 | # Auth framework |
|---|
| 63 | use_ok('MT::Auth'); |
|---|
| 64 | use_ok('MT::Auth::MT'); |
|---|
| 65 | use_ok('MT::Auth::BasicAuth'); |
|---|
| 66 | use_ok('MT::Auth::LiveJournal'); |
|---|
| 67 | use_ok('MT::Auth::OpenID'); |
|---|
| 68 | use_ok('MT::Auth::TypeKey'); |
|---|
| 69 | use_ok('MT::Auth::Vox'); |
|---|
| 70 | |
|---|
| 71 | # MT::Objects |
|---|
| 72 | use_ok('MT::Object'); |
|---|
| 73 | use_ok('MT::Author'); |
|---|
| 74 | use_ok('MT::BasicAuthor'); |
|---|
| 75 | use_ok('MT::BasicSession'); |
|---|
| 76 | use_ok('MT::Blog'); |
|---|
| 77 | use_ok('MT::ObjectScore'); |
|---|
| 78 | use_ok('MT::ObjectTag'); |
|---|
| 79 | use_ok('MT::Permission'); |
|---|
| 80 | use_ok('MT::Role'); |
|---|
| 81 | use_ok('MT::Association'); |
|---|
| 82 | use_ok('MT::Placement'); |
|---|
| 83 | use_ok('MT::Category'); |
|---|
| 84 | use_ok('MT::Comment'); |
|---|
| 85 | use_ok('MT::Entry'); |
|---|
| 86 | use_ok('MT::IPBanList'); |
|---|
| 87 | use_ok('MT::FileInfo'); |
|---|
| 88 | use_ok('MT::Config'); |
|---|
| 89 | use_ok('MT::Asset'); |
|---|
| 90 | use_ok('MT::Asset::Image'); |
|---|
| 91 | use_ok('MT::Asset::Video'); |
|---|
| 92 | use_ok('MT::Asset::Audio'); |
|---|
| 93 | use_ok('MT::ObjectAsset'); |
|---|
| 94 | use_ok('MT::Log'); |
|---|
| 95 | use_ok('MT::Notification'); |
|---|
| 96 | use_ok('MT::PluginData'); |
|---|
| 97 | use_ok('MT::Session'); |
|---|
| 98 | use_ok('MT::Tag'); |
|---|
| 99 | use_ok('MT::Template'); |
|---|
| 100 | use_ok('MT::TemplateMap'); |
|---|
| 101 | use_ok('MT::Trackback'); |
|---|
| 102 | use_ok('MT::TBPing'); |
|---|
| 103 | use_ok('MT::Blocklist'); |
|---|
| 104 | use_ok('MT::Object::BaseCache'); |
|---|
| 105 | use_ok('MT::Touch'); |
|---|
| 106 | |
|---|
| 107 | # Utility modules |
|---|
| 108 | use_ok('MT::Builder'); |
|---|
| 109 | use_ok('MT::Callback'); |
|---|
| 110 | use_ok('MT::ConfigMgr'); |
|---|
| 111 | use_ok('MT::DateTime'); |
|---|
| 112 | use_ok('MT::DefaultTemplates'); |
|---|
| 113 | use_ok('MT::FileMgr'); |
|---|
| 114 | use_ok('MT::FileMgr::Local'); |
|---|
| 115 | use_ok('MT::Image'); |
|---|
| 116 | use_ok('MT::ImportExport'); |
|---|
| 117 | use_ok('MT::Import'); |
|---|
| 118 | use_ok('MT::JunkFilter'); |
|---|
| 119 | use_ok('MT::Mail'); |
|---|
| 120 | use_ok('MT::Promise'); |
|---|
| 121 | use_ok('MT::Request'); |
|---|
| 122 | use_ok('MT::Sanitize'); |
|---|
| 123 | use_ok('MT::Serialize'); |
|---|
| 124 | use_ok('MT::Memcached'); |
|---|
| 125 | use_ok('MT::PublishOption'); |
|---|
| 126 | use_ok('MT::Scorable'); |
|---|
| 127 | |
|---|
| 128 | use_ok('MT::Util'); |
|---|
| 129 | use_ok('MT::Util::Archive'); |
|---|
| 130 | use_ok('MT::Util::Archive::Tgz'); |
|---|
| 131 | use_ok('MT::Util::Archive::Zip'); |
|---|
| 132 | use_ok('MT::Util::Captcha'); |
|---|
| 133 | use_ok('MT::Util::LogProcessor'); |
|---|
| 134 | use_ok('MT::Util::PerformanceData'); |
|---|
| 135 | use_ok('MT::Util::ReqTimer'); |
|---|
| 136 | |
|---|
| 137 | # TheSchwartz support |
|---|
| 138 | use_ok('MT::TheSchwartz'); |
|---|
| 139 | use_ok('MT::TheSchwartz::Error'); |
|---|
| 140 | use_ok('MT::TheSchwartz::ExitStatus'); |
|---|
| 141 | use_ok('MT::TheSchwartz::FuncMap'); |
|---|
| 142 | use_ok('MT::TheSchwartz::Job'); |
|---|
| 143 | |
|---|
| 144 | # L10N modules |
|---|
| 145 | use_ok('MT::L10N'); |
|---|
| 146 | use_ok('MT::L10N::de'); |
|---|
| 147 | use_ok('MT::L10N::en_us'); |
|---|
| 148 | use_ok('MT::L10N::es'); |
|---|
| 149 | use_ok('MT::L10N::fr'); |
|---|
| 150 | use_ok('MT::L10N::ja'); |
|---|
| 151 | use_ok('MT::L10N::nl'); |
|---|
| 152 | |
|---|
| 153 | # I18N modules |
|---|
| 154 | use_ok('MT::I18N'); |
|---|
| 155 | use_ok('MT::I18N::default'); |
|---|
| 156 | use_ok('MT::I18N::en_us'); |
|---|
| 157 | use_ok('MT::I18N::ja'); |
|---|
| 158 | |
|---|
| 159 | # Data::ObjectDriver classes |
|---|
| 160 | use_ok('MT::ObjectDriverFactory'); |
|---|
| 161 | use_ok('MT::ObjectDriver::DDL'); |
|---|
| 162 | use_ok('MT::ObjectDriver::DDL::Pg'); |
|---|
| 163 | use_ok('MT::ObjectDriver::DDL::SQLite'); |
|---|
| 164 | use_ok('MT::ObjectDriver::DDL::mysql'); |
|---|
| 165 | use_ok('MT::ObjectDriver::Driver::DBI'); |
|---|
| 166 | use_ok('MT::ObjectDriver::Driver::Cache::RAM'); |
|---|
| 167 | use_ok('MT::ObjectDriver::Driver::DBD::Legacy'); |
|---|
| 168 | use_ok('MT::ObjectDriver::Driver::DBD::mysql'); |
|---|
| 169 | use_ok('MT::ObjectDriver::Driver::DBD::Pg'); |
|---|
| 170 | use_ok('MT::ObjectDriver::Driver::DBD::SQLite'); |
|---|
| 171 | use_ok('MT::ObjectDriver::SQL'); |
|---|
| 172 | use_ok('MT::ObjectDriver::SQL::Pg'); |
|---|
| 173 | use_ok('MT::ObjectDriver::SQL::SQLite'); |
|---|
| 174 | use_ok('MT::ObjectDriver::SQL::mysql'); |
|---|
| 175 | |
|---|
| 176 | # Plugin API |
|---|
| 177 | use_ok('MT::Plugin'); |
|---|
| 178 | use_ok('MT::Plugin::JunkFilter'); |
|---|
| 179 | use_ok('MT::Plugin::L10N'); |
|---|
| 180 | use_ok('MT::Task'); |
|---|
| 181 | use_ok('MT::TaskMgr'); |
|---|
| 182 | use_ok('MT::Template::Context'); |
|---|
| 183 | use_ok('MT::Template::ContextHandlers'); |
|---|
| 184 | use_ok('MT::Upgrade'); |
|---|
| 185 | use_ok('MT::WeblogPublisher'); |
|---|
| 186 | |
|---|
| 187 | # Archive code |
|---|
| 188 | use_ok('MT::ArchiveType'); |
|---|
| 189 | use_ok('MT::ArchiveType::Author'); |
|---|
| 190 | use_ok('MT::ArchiveType::AuthorDaily'); |
|---|
| 191 | use_ok('MT::ArchiveType::AuthorMonthly'); |
|---|
| 192 | use_ok('MT::ArchiveType::AuthorWeekly'); |
|---|
| 193 | use_ok('MT::ArchiveType::AuthorYearly'); |
|---|
| 194 | use_ok('MT::ArchiveType::Category'); |
|---|
| 195 | use_ok('MT::ArchiveType::CategoryDaily'); |
|---|
| 196 | use_ok('MT::ArchiveType::CategoryMonthly'); |
|---|
| 197 | use_ok('MT::ArchiveType::CategoryWeekly'); |
|---|
| 198 | use_ok('MT::ArchiveType::CategoryYearly'); |
|---|
| 199 | use_ok('MT::ArchiveType::Daily'); |
|---|
| 200 | use_ok('MT::ArchiveType::Date'); |
|---|
| 201 | use_ok('MT::ArchiveType::Individual'); |
|---|
| 202 | use_ok('MT::ArchiveType::Monthly'); |
|---|
| 203 | use_ok('MT::ArchiveType::Page'); |
|---|
| 204 | use_ok('MT::ArchiveType::Weekly'); |
|---|
| 205 | use_ok('MT::ArchiveType::Yearly'); |
|---|
| 206 | |
|---|
| 207 | # XMLRPC support |
|---|
| 208 | use_ok('MT::XMLRPC'); |
|---|
| 209 | use_ok('MT::XMLRPCServer'); |
|---|
| 210 | |
|---|
| 211 | # Atom support |
|---|
| 212 | use_ok('MT::Atom'); |
|---|
| 213 | use_ok('MT::AtomServer'); |
|---|
| 214 | |
|---|
| 215 | # Backup/Restore |
|---|
| 216 | use_ok('MT::BackupRestore'); |
|---|
| 217 | use_ok('MT::BackupRestore::BackupFileHandler'); |
|---|
| 218 | use_ok('MT::BackupRestore::ManifestFileHandler'); |
|---|
| 219 | |
|---|
| 220 | # Cache support |
|---|
| 221 | use_ok('MT::Cache::Negotiate'); |
|---|
| 222 | use_ok('MT::Cache::Null'); |
|---|
| 223 | use_ok('MT::Cache::Session'); |
|---|
| 224 | |
|---|
| 225 | # Compatible Support |
|---|
| 226 | use_ok('MT::Compat::v3'); |
|---|
| 227 | |
|---|
| 228 | # Meta support |
|---|
| 229 | use_ok('MT::Meta'); |
|---|
| 230 | use_ok('MT::Meta::Proxy'); |
|---|
| 231 | |
|---|
| 232 | # Job worker |
|---|
| 233 | use_ok('MT::Worker::Publish'); |
|---|
| 234 | use_ok('MT::Worker::Sync'); |
|---|