// Use of this source code is governed by an apache-2.0 license that can be
// found in the LICENSE file.
+#include <common/pkgmgr_query.h>
#include <common/utils/subprocess.h>
#include <unit_tests/common/smoke_utils.h>
}
TEST_F(SmokeTest, RecoveryMode_Tpk_Update) {
+ std::string pkgid = "smokeapp16";
+
RemoveAllRecoveryFiles("/tpk-recovery", params.test_user.uid);
+ ci::PkgQuery::Instance().GetResult(pkgid, params.test_user.uid, true);
bf::path path_old = kSmokePackagesDirectory / "RecoveryMode_Tpk_Update.tpk";
bf::path path_new = kSmokePackagesDirectory / "RecoveryMode_Tpk_Update_2.tpk";
tpk_backend.Kill();
if (tpk_backend.Wait() == 9) {
- std::string pkgid = "smokeapp16";
std::string appid = "smokeapp16.RecoveryModeTpkUpdate";
std::string exec = "native";
bf::path recovery_file = FindRecoveryFile("/tpk-recovery",
}
TEST_F(SmokeTest, RecoveryMode_ForDelta) {
+ std::string pkgid = "smoketpk35";
+
RemoveAllRecoveryFiles("/tpk-recovery", params.test_user.uid);
+ ci::PkgQuery::Instance().GetResult(pkgid, params.test_user.uid, true);
bf::path path_old = kSmokePackagesDirectory / "RecoveryMode_ForDelta.tpk";
bf::path path_new = kSmokePackagesDirectory / "RecoveryMode_ForDelta.delta";
tpk_backend.Kill();
if (tpk_backend.Wait() == 9) {
- std::string pkgid = "smoketpk35";
std::string appid = "smoketpk35.RecoveryMode_ForDelta";
std::string exec = "smoketpk35";
bf::path recovery_file = FindRecoveryFile("/tpk-recovery",
}
TEST_F(SmokeTest, RecoveryMode_ForMountUpdate) {
+ std::string pkgid = "smoketpk38";
RemoveAllRecoveryFiles("/tpk-recovery", params.test_user.uid);
+ ci::PkgQuery::Instance().GetResult(pkgid, params.test_user.uid, true);
bf::path path_old =
kSmokePackagesDirectory / "RecoveryMode_ForMountUpdate.tpk";
tpk_backend.Kill();
if (tpk_backend.Wait() == 9) {
- std::string pkgid = "smoketpk38";
std::string appid = "smoketpk38.RecoveryMode_ForMountUpdate";
std::string exec = "smoketpk38";
bf::path recovery_file = FindRecoveryFile("/tpk-recovery",