source: tests/corelib/libraryinfo/libraryinfo.cpp

Last change on this file was 1144, checked in by Dmitry A. Kuminov, 12 years ago

tests: Added a bunch of corelib tests.

File size: 969 bytes
Line 
1#include <QtCore>
2
3#include <QDebug>
4
5#include <stdlib.h>
6
7#define STR(expr) #expr
8#define DBG(expr) STR(expr) << "=" << (expr)
9
10////////////////////////////////////////////////////////////////////////////////
11
12int main(int argc, char *argv[])
13{
14 qWarning() << DBG(QLibraryInfo::buildKey());
15 qWarning() << DBG(QLibraryInfo::licensedProducts());
16 qWarning() << DBG(QLibraryInfo::licensee());
17
18 #define PRINT_LOC(L) qWarning() << #L << "=" << QLibraryInfo::location(L)
19 PRINT_LOC(QLibraryInfo::PrefixPath);
20 PRINT_LOC(QLibraryInfo::DocumentationPath);
21 PRINT_LOC(QLibraryInfo::HeadersPath);
22 PRINT_LOC(QLibraryInfo::LibrariesPath);
23 PRINT_LOC(QLibraryInfo::BinariesPath);
24 PRINT_LOC(QLibraryInfo::PluginsPath);
25 PRINT_LOC(QLibraryInfo::DataPath);
26 PRINT_LOC(QLibraryInfo::TranslationsPath);
27 PRINT_LOC(QLibraryInfo::SettingsPath);
28 PRINT_LOC(QLibraryInfo::DemosPath);
29 PRINT_LOC(QLibraryInfo::ExamplesPath);
30
31 return 0;
32}
Note: See TracBrowser for help on using the repository browser.