ASSERT_FALSE(bf::exists(recovery_info->unpacked_dir()));
}
+TEST_F(SmokeTest, InstallationMode_GlobalServiceAppWithUiAppId) {
+ bf::path path = kSmokePackagesDirectory /
+ "InstallationMode_GlobalServiceAppWithUiAppId.wgt";
+ std::string pkgid = "smokewgt46";
+ std::string ui_appid = "smokewgt46.uiapp";
+ std::string service_appid = "smokewgt46.serviceapp";
+ ASSERT_EQ(backend.Install(path), ci::AppInstaller::Result::OK);
+ ASSERT_TRUE(ValidatePackage(pkgid, {ui_appid, service_appid}, params));
+}
+
+TEST_F(SmokeTest, InstallationMode_GlobalServiceAppWithoutUiAppId) {
+ bf::path path = kSmokePackagesDirectory /
+ "InstallationMode_GlobalServiceAppWithoutUiAppId.wgt";
+ std::string pkgid = "smokewgt47";
+ std::string service_appid = "smokewgt47.serviceapp";
+ ASSERT_EQ(backend.Install(path), ci::AppInstaller::Result::OK);
+ ASSERT_TRUE(ValidatePackage(pkgid, {service_appid}, params));
+}
+
+TEST_F(SmokeTest, InstallationMode_UIServiceAppWithUiAppId) {
+ bf::path path = kSmokePackagesDirectory /
+ "InstallationMode_UIServiceAppWithUiAppId.wgt";
+ std::string pkgid = "smokewgt48";
+ std::string ui_appid = "smokewgt48.uiapp";
+ std::string service_appid = "smokewgt48.serviceapp";
+ ASSERT_EQ(backend.Install(path), ci::AppInstaller::Result::OK);
+ ASSERT_TRUE(ValidatePackage(pkgid, {ui_appid, service_appid}, params));
+}
+
+TEST_F(SmokeTest, InstallationMode_UIServiceAppWithoutUiAppId) {
+ bf::path path = kSmokePackagesDirectory /
+ "InstallationMode_UIServiceAppWithoutUiAppId.wgt";
+ std::string pkgid = "smokewgt49";
+ ASSERT_EQ(backend.Install(path), ci::AppInstaller::Result::ERROR);
+}
+
+TEST_F(SmokeTest, InstallationMode_UIAppWithoutUiAppId) {
+ bf::path path = kSmokePackagesDirectory /
+ "InstallationMode_UIAppWithoutUiAppId.wgt";
+ std::string pkgid = "smokewgt50";
+ ASSERT_EQ(backend.Install(path), ci::AppInstaller::Result::ERROR);
+}
+
} // namespace smoke_test
int main(int argc, char** argv) {