2 * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 * @file PluginsInstallation.cpp
18 * @author Tomasz Iwanek (t.iwanek@samsung.com)
20 * @brief PluginsInstallation tests implementation
24 #include <dpl/test/test_runner.h>
25 #include <dpl/log/log.h>
26 #include <dpl/wrt-dao-ro/plugin_dao_read_only.h>
27 #include <dpl/static_block.h>
29 ////////////////////////////////////////////////////////////////////////////////
31 RUNNER_TEST_GROUP_INIT(PluginsInstallation)
35 (void)system("wrt_reset_all.sh");
36 (void)system("wrt-installer -p");
39 #define MAKE_PLUGIN_CHECK_TESTCASE(TESTCASE, LIBNAME) \
40 RUNNER_TEST(PluginsInstallation_##TESTCASE) \
43 WrtDB::PluginDAOReadOnly pdao(#LIBNAME); \
44 RUNNER_ASSERT_MSG(pdao.getInstallationStatus() == WrtDB::PluginDAOReadOnly::INSTALLATION_COMPLETED, "Plugin is not installed correctly"); \
45 } Catch(DPL::Exception) { \
46 LogError(_rethrown_exception.DumpToString()); \
47 RUNNER_ASSERT_MSG(false, "DPL::Exception"); \
51 MAKE_PLUGIN_CHECK_TESTCASE(contact, libwrt-plugins-tizen-contact.so)
52 MAKE_PLUGIN_CHECK_TESTCASE(systemsetting, libwrt-plugins-tizen-systemsetting.so)
53 MAKE_PLUGIN_CHECK_TESTCASE(systeminfo, libwrt-plugins-tizen-systeminfo.so)
54 MAKE_PLUGIN_CHECK_TESTCASE(nfc, libwrt-plugins-tizen-nfc.so)
55 MAKE_PLUGIN_CHECK_TESTCASE(content, libwrt-plugins-tizen-content.so)
56 MAKE_PLUGIN_CHECK_TESTCASE(alarm, libwrt-plugins-tizen-alarm.so)
57 MAKE_PLUGIN_CHECK_TESTCASE(power, libwrt-plugins-tizen-power.so)
58 MAKE_PLUGIN_CHECK_TESTCASE(secureelement, libwrt-plugins-tizen-secureelement.so)
59 MAKE_PLUGIN_CHECK_TESTCASE(timeutil, libwrt-plugins-tizen-timeutil.so)
60 MAKE_PLUGIN_CHECK_TESTCASE(calendar, libwrt-plugins-tizen-calendar.so)
61 MAKE_PLUGIN_CHECK_TESTCASE(datacontrol, libwrt-plugins-tizen-datacontrol.so)
62 MAKE_PLUGIN_CHECK_TESTCASE(bookmark, libwrt-plugins-tizen-bookmark.so)
63 MAKE_PLUGIN_CHECK_TESTCASE(messaging, libwrt-plugins-tizen-messaging.so)
64 MAKE_PLUGIN_CHECK_TESTCASE(messageport, libwrt-plugins-tizen-messageport.so)
65 MAKE_PLUGIN_CHECK_TESTCASE(datasync, libwrt-plugins-tizen-datasync.so)
66 MAKE_PLUGIN_CHECK_TESTCASE(networkbearerselection, libwrt-plugins-tizen-networkbearerselection.so)
67 MAKE_PLUGIN_CHECK_TESTCASE(package, libwrt-plugins-tizen-package.so)
68 MAKE_PLUGIN_CHECK_TESTCASE(filesystem, libwrt-plugins-tizen-filesystem.so)
69 MAKE_PLUGIN_CHECK_TESTCASE(download, libwrt-plugins-tizen-download.so)
70 MAKE_PLUGIN_CHECK_TESTCASE(application, libwrt-plugins-tizen-application.so)
71 MAKE_PLUGIN_CHECK_TESTCASE(notification, libwrt-plugins-tizen-notification.so)
72 MAKE_PLUGIN_CHECK_TESTCASE(push, libwrt-plugins-tizen-push.so)
73 MAKE_PLUGIN_CHECK_TESTCASE(tizen, libwrt-plugins-tizen-tizen.so)
74 MAKE_PLUGIN_CHECK_TESTCASE(callhistory, libwrt-plugins-tizen-callhistory.so)
75 MAKE_PLUGIN_CHECK_TESTCASE(bluetooth, libwrt-plugins-tizen-bluetooth.so)