Add test files for kf5-lib-prefix-rename

This commit is contained in:
Aurélien Gâteau 2013-12-11 14:25:12 +01:00
parent dae4e77d41
commit acfcc7d3d1
4 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1 @@
output

View File

@ -0,0 +1,27 @@
find_package(KF5 CONFIG REQUIRED IdleTime ItemModels WidgetsAddons WindowSystem Codecs Archive CoreAddons Solid ThreadWeaver GlobalAccel
Config Auth JS Wallet DBusAddons I18n GuiAddons ConfigWidgets
Service ItemViews Notifications IconThemes Completion JobWidgets Sonnet TextWidgets XmlGui Crash
Bookmarks Declarative UnitConversion Parts Kross KIO)
find_package(KF5CoreAddons REQUIRED)
find_package(KF5Solid REQUIRED)
find_package(KF5Declarative REQUIRED NO_MODULE)
include(KF5PlasmaMacros)
include(KF5PlasmaMacros.cmake)
target_link_libraries(Foo
Qt5::Test
Qt5::Declarative
KF5::Plasma
KF5::Archive KF5::CoreAddons
KF5::ConfigGui
KF5::I18n
KF5::KIOCore
KF5::Service
KF5::PlasmaQuick
)
target_link_libraries(plasma-example-kpart-shell KF5::Plasma KF5::Parts)

View File

@ -0,0 +1,27 @@
find_package(KF5 CONFIG REQUIRED KIdleTime ItemModels KWidgetsAddons KWindowSystem KCodecs KArchive KCoreAddons Solid ThreadWeaver KF5GlobalAccel
KConfig KAuth KJS KWallet KDBusAddons KI18n KGuiAddons KConfigWidgets
KService ItemViews KNotifications KIconThemes KCompletion KJobWidgets Sonnet KTextWidgets XmlGui KCrash
KBookmarks KDeclarative KUnitConversion KParts Kross KIO)
find_package(KCoreAddons REQUIRED)
find_package(Solid REQUIRED)
find_package(KDeclarative REQUIRED NO_MODULE)
include(PlasmaMacros)
include(PlasmaMacros.cmake)
target_link_libraries(Foo
Qt5::Test
Qt5::Declarative
KF5::Plasma
KF5::KArchive KF5::KCoreAddons
KF5::KConfigGui
KF5::KI18n
KF5::KIOCore
KF5::KService
KF5::PlasmaQuick
)
target_link_libraries(plasma-example-kpart-shell KF5::Plasma KF5::KParts)

View File

@ -0,0 +1,14 @@
#!/bin/sh
set -e
rm -rf output
cp -r src output
cd output
echo "# Running"
kf5-lib-prefix-rename
cd ..
echo "# Results"
for file in expected/* ; do
echo "## $file"
diff -u $file output/$(basename $file)
done