RUNNER_TEST_GROUP_INIT(SECURITY_MANAGER)
-RUNNER_TEST(security_manager_01a_app_double_install_double_uninstall)
+RUNNER_CHILD_TEST(security_manager_01a_app_double_install_double_uninstall)
{
AppInstallHelperExt app("sm_test_01a_app");
{
}
}
-RUNNER_TEST(security_manager_01b_app_double_install_wrong_pkg_id)
+RUNNER_CHILD_TEST(security_manager_01b_app_double_install_wrong_pkg_id)
{
AppInstallHelperExt app("sm_test_01b");
{
app.checkAfterUninstall();
}
-RUNNER_TEST(security_manager_01c_app_uninstall_wrong_pkg_id)
+RUNNER_CHILD_TEST(security_manager_01c_app_uninstall_wrong_pkg_id)
{
AppInstallHelperExt app("sm_test_01c");
ScopedInstaller appInstall(app);
app.checkDeniedPrivileges(someDeniedPrivs);
}
-RUNNER_TEST(security_manager_07b_user_add_offline)
+RUNNER_CHILD_TEST(security_manager_07b_user_add_offline)
{
ServiceManager("security-manager.service").stopService();
app.checkAfterUninstall();
}
-RUNNER_TEST(security_manager_08_user_double_add_double_remove)
+RUNNER_CHILD_TEST(security_manager_08_user_double_add_double_remove)
{
const PrivilegeVector somePrivs = {PRIV_LED, PRIV_NOTIFICATION};
Api::deleteUser(deleteUserRequest, SECURITY_MANAGER_ERROR_SERVER_ERROR);
}
-RUNNER_TEST(security_manager_09_app_install_constraint_check)
+RUNNER_CHILD_TEST(security_manager_09_app_install_constraint_check)
{
auto install = [](const AppInstallHelperExt& app, bool success)
{
app.checkAfterUninstall();
}
-RUNNER_TEST(security_manager_09a_install_many_apps_in_single_request)
+RUNNER_CHILD_TEST(security_manager_09a_install_many_apps_in_single_request)
{
constexpr char pkgIdPrefix[] = "sm_test_09a";
const AppInstallHelperExt apps[] = {{"sm_test_09a_0", pkgIdPrefix},
}
}
-RUNNER_TEST(security_manager_09b_install_many_apps_in_single_request_duplicated_ids)
+RUNNER_CHILD_TEST(security_manager_09b_install_many_apps_in_single_request_duplicated_ids)
{
AppInstallHelperExt app("sm_test_09b");
{
app.checkAfterUninstall();
}
-RUNNER_TEST(security_manager_09c_update_many_apps_in_single_request_hybrid_package)
+RUNNER_CHILD_TEST(security_manager_09c_update_many_apps_in_single_request_hybrid_package)
{
constexpr char pkgIdPrefix[] = "sm_test_09c";
AppInstallHelperExt apps[] = {{"sm_test_09c_0", pkgIdPrefix},
}
}
-RUNNER_TEST(security_manager_09d_uninstall_app_from_hybrid_package)
+RUNNER_CHILD_TEST(security_manager_09d_uninstall_app_from_hybrid_package)
{
constexpr char pkgIdPrefix[] = "sm_test_09d";
AppInstallHelperExt apps[] = {{"sm_test_09d_0", pkgIdPrefix},
}
}
-RUNNER_TEST(security_manager_09e_update_app_nonhybrid_package)
+RUNNER_CHILD_TEST(security_manager_09e_update_app_nonhybrid_package)
{
constexpr char pkgId[] = "sm_test_09e";
AppInstallHelperExt apps[] = {{"sm_test_09e_0", pkgId},
apps[1].checkAfterUninstall(true);
}
-RUNNER_TEST(security_manager_09f_update_app_hybrid_package)
+RUNNER_CHILD_TEST(security_manager_09f_update_app_hybrid_package)
{
constexpr char pkgId[] = "sm_test_09f";
AppInstallHelperExt apps[] = {{"sm_test_09f_0", pkgId},
RUNNER_TEST_GROUP_INIT(SECURITY_MANAGER_INSTALL_TYPE)
-RUNNER_TEST(security_manager_25a_global_user_set_install_type_global)
+RUNNER_CHILD_TEST(security_manager_25a_global_user_set_install_type_global)
{
AppInstallHelperExt app("sm_test_25a");
app.setInstallType(SM_APP_INSTALL_GLOBAL);
Api::install(requestInst, (lib_retcode)SECURITY_MANAGER_ERROR_SERVER_ERROR);
}
-RUNNER_TEST(security_manager_25c_global_user_set_install_type_preloaded)
+RUNNER_CHILD_TEST(security_manager_25c_global_user_set_install_type_preloaded)
{
AppInstallHelperExt app("sm_test_25c");
app.setInstallType(SM_APP_INSTALL_PRELOADED);
constexpr size_t arraySize(T (&)[N]) { return N; }
} // namespace
-RUNNER_TEST(security_manager_190_prepare_app_threads_malloc)
+RUNNER_CHILD_TEST(security_manager_190_prepare_app_threads_malloc)
{
TemporaryTestUser tmpUser(APP_TEST_USER, GUM_USERTYPE_NORMAL, false);
tmpUser.create();
Api::cleanupApp(app.getAppId(), uid, pid);
}
-RUNNER_TEST(security_manager_200_prepare_app_perf)
+RUNNER_CHILD_TEST(security_manager_200_prepare_app_perf)
{
constexpr int8_t nThreads = 32;
constexpr int8_t nConcurrentAppsSamples[] = { 0 /* 1 app w/ nThreads */, 1, 2, 4, 8, 16, 32 };
}
}
-RUNNER_TEST(security_manager_400_prepare_app_series_with_concurrent_install_stress)
+RUNNER_CHILD_TEST(security_manager_400_prepare_app_series_with_concurrent_install_stress)
{
std::srand(std::time(nullptr)); // use current time as seed for random generator
TemporaryTestUser tmpUser(APP_TEST_USER, GUM_USERTYPE_NORMAL, false);