CN113971035A - Method for checking differential upgrade package and computer equipment - Google Patents

Method for checking differential upgrade package and computer equipment Download PDF

Info

Publication number
CN113971035A
CN113971035A CN202010721976.3A CN202010721976A CN113971035A CN 113971035 A CN113971035 A CN 113971035A CN 202010721976 A CN202010721976 A CN 202010721976A CN 113971035 A CN113971035 A CN 113971035A
Authority
CN
China
Prior art keywords
user system
upgrade
upgrade package
differential
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010721976.3A
Other languages
Chinese (zh)
Inventor
余辉文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202010721976.3A priority Critical patent/CN113971035A/en
Publication of CN113971035A publication Critical patent/CN113971035A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses a method for checking a differential upgrade package and computer equipment, wherein the method comprises the following steps: acquiring a differential upgrade package to be checked, and determining a user system to be upgraded corresponding to the differential upgrade package; upgrading the user system according to the differential upgrade package, and detecting whether a target user system corresponding to the differential upgrade package is obtained; if the target user system corresponding to the differential upgrade package is obtained, detecting whether the upgrade state of the target user system is a success state; and if the upgrading state is a successful state, determining that the differential upgrading packet is successfully checked. The user system is upgraded according to the differential upgrade package, if the target user system is obtained after the upgrade is finished, and the upgrade state of the target user system is a successful state, namely the target user system can be upgraded next time, the differential upgrade package is determined to be successfully checked; the method provided by the invention does not need manual participation, and improves the inspection efficiency and the inspection accuracy.

Description

Method for checking differential upgrade package and computer equipment
Technical Field
The invention relates to the technical field of testing, in particular to a method for checking a differential upgrade package and computer equipment.
Background
The differential upgrading is an upgrading mode which is convenient for a user to update the equipment firmware to repair the system, the differential upgrading is to upgrade the system based on the differential data of two different versions, a complete data packet is not required to be downloaded in the differential upgrading, the transmission quantity of network data can be reduced, the upgrading can be carried out on the basis of the existing system, and the upgrading time of the user is greatly saved.
Before issuing the differential upgrade package, a tester needs to check the differential upgrade package to determine that the upgrade function of the differential upgrade package is normal. At present, the inspection process of the differential upgrade package is basically performed manually, time and labor are consumed by manually inspecting the differential upgrade package, and the error rate of the inspection result is high.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
In order to solve the above technical problems, a primary object of the present invention is to provide a method for inspecting a differential upgrade package, which can automatically inspect the differential upgrade package to improve inspection efficiency and inspection accuracy.
In a first aspect, the present invention provides a method for verifying a differential upgrade package, the method comprising:
acquiring a differential upgrade package to be checked, and determining a user system to be upgraded corresponding to the differential upgrade package;
upgrading the user system according to the differential upgrade package, and detecting whether a target user system corresponding to the differential upgrade package is obtained;
if the target user system corresponding to the differential upgrade package is obtained, detecting whether the upgrade state of the target user system is a success state;
and if the upgrading state is a successful state, determining that the differential upgrading packet is successfully checked.
As a further improved technical solution, the obtaining of the differential upgrade package to be checked and determining the user system to be upgraded corresponding to the differential upgrade package specifically include:
acquiring a differential upgrade package to be checked, and reading an initial version number corresponding to the differential upgrade package;
if the version number of a preset user system is inconsistent with the initial version number, acquiring a complete upgrade package corresponding to the initial version number;
and upgrading the preset user system according to the complete upgrade package to obtain a user system to be upgraded, wherein the version number of the user system to be upgraded is the initial version number.
As a further improved technical solution, the obtaining a differential upgrade package to be checked and determining a user system to be upgraded corresponding to the differential upgrade package further includes:
and if the version number of the preset user system is consistent with the initial version number, taking the preset user system as the user system to be upgraded.
As a further improved technical solution, the upgrading the user system according to the differential upgrade package, and detecting whether a target user system corresponding to the differential upgrade package is obtained specifically includes:
clearing a user partition of the user system;
performing power-off upgrade on the user system with the user partition removed based on the differential upgrade packet;
and when the upgrade is finished, detecting whether the upgraded user system is the target user system corresponding to the differential upgrade package.
As a further improved technical solution, when the upgrade is completed, detecting whether the upgraded user system is the target user system corresponding to the differential upgrade package, before, the method further includes:
monitoring an upgrade report;
and if the upgrade report is monitored, judging that the upgrade is finished.
As a further improved technical solution, when the upgrade is completed, detecting whether the upgraded user system is the target user system corresponding to the differential upgrade package, specifically includes:
when the upgrade is finished, restarting the upgraded user system;
if the user system after the upgrade is restarted successfully, acquiring the version number of the user system after the upgrade;
and if the version number of the upgraded user system is consistent with the target version number corresponding to the differential upgrade package, judging to obtain the target user system.
As a further improved technical solution, if the target user system corresponding to the differential upgrade package is obtained, detecting whether the upgrade state of the target user system is a successful state, specifically including:
if the target user system is obtained, detecting whether the upgrading function of the target user system is in an available state;
and if the upgrading function is in the available state, judging that the upgrading state is an upgrading success state.
As a further improved technical solution, if the target user system is obtained, detecting whether an upgrade function of the target user system is in an available state specifically includes:
if the target user system is obtained, whether the target user system can enter an upgrading system is detected;
correspondingly, if the upgrade function is in an available state, it is determined that the upgrade state is an upgrade successful state, which specifically includes:
and if the upgrade system is successfully entered, judging that the upgrade state is an upgrade successful state.
As a further improved technical solution, if the target user system is obtained, detecting whether the system can be upgraded, specifically including:
if the target user system is obtained, entering an upgrading system for the first time;
if the first time of entering the upgrading system is successful, clearing the data partition and restarting the target user system;
if the target user system is restarted successfully, detecting whether the target user system can enter an upgrading system for the second time;
correspondingly, if the upgrade system is successfully entered, the upgrade state is determined to be the upgrade successful state, which specifically includes:
and if the second time of entering the upgrading system is successful, judging that the upgrading state is the upgrading successful state.
In a second aspect, the present invention provides a computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the following steps when executing the computer program:
acquiring a differential upgrade package to be checked, and determining a user system to be upgraded corresponding to the differential upgrade package;
upgrading the user system according to the differential upgrade package, and detecting whether a target user system corresponding to the differential upgrade package is obtained;
if the target user system corresponding to the differential upgrade package is obtained, detecting whether the upgrade state of the target user system is a success state;
and if the upgrading state is a successful state, determining that the differential upgrading packet is successfully checked.
In a third aspect, the present invention provides a computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the steps of:
acquiring a differential upgrade package to be checked, and determining a user system to be upgraded corresponding to the differential upgrade package;
upgrading the user system according to the differential upgrade package, and detecting whether a target user system corresponding to the differential upgrade package is obtained;
if the target user system corresponding to the differential upgrade package is obtained, detecting whether the upgrade state of the target user system is a success state;
and if the upgrading state is a successful state, determining that the differential upgrading packet is successfully checked.
Compared with the prior art, the embodiment of the invention has the following advantages:
in the embodiment of the invention, a differential upgrade package to be checked is obtained, and a user system to be upgraded corresponding to the differential upgrade package is determined; upgrading the user system according to the differential upgrade package, and detecting whether a target user system corresponding to the differential upgrade package is obtained; if the target user system corresponding to the differential upgrade package is obtained, detecting whether the upgrade state of the target user system is a success state; and if the upgrading state is a successful state, determining that the differential upgrading packet is successfully checked. The user system is upgraded according to the differential upgrade package, if the target user system is obtained after the upgrade is finished, and the upgrade state of the target user system is a successful state, namely the target user system can be upgraded next time, the differential upgrade package is determined to be successfully checked; the method provided by the invention does not need manual participation, and improves the inspection efficiency and the inspection accuracy.
Drawings
FIG. 1 is a schematic diagram of a method for verifying a differential upgrade package in an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a process of checking a plurality of differential upgrade packages according to a method of checking differential upgrade packages according to an embodiment of the present invention;
fig. 3 is an internal structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The inventor finds that before sending the differential upgrade package, a tester needs to check the differential upgrade package to determine that the upgrade function of the differential upgrade package is normal. At present, the inspection process of the differential upgrade package is basically performed manually, time and labor are consumed by manually inspecting the differential upgrade package, and the error rate of the inspection result is high.
In order to solve the above problems, in the embodiment of the present invention, a differential upgrade package to be checked is obtained, and a user system to be upgraded corresponding to the differential upgrade package is determined; upgrading the user system according to the differential upgrade package, and detecting whether a target user system corresponding to the differential upgrade package is obtained; if the target user system corresponding to the differential upgrade package is obtained, detecting whether the upgrade state of the target user system is a success state; and if the upgrading state is a successful state, determining that the differential upgrading packet is successfully checked. The user system is upgraded according to the differential upgrade package, if the target user system is obtained after the upgrade is finished, and the upgrade state of the target user system is a successful state, namely the target user system can be upgraded next time, the differential upgrade package is determined to be successfully checked; the method provided by the invention does not need manual participation, and improves the inspection efficiency and the inspection accuracy.
The method for checking the differential upgrade package provided by the embodiment of the invention can be applied to television equipment and is used for checking the differential upgrade package for differentially upgrading the user system of the television equipment.
Various non-limiting embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a method for checking a differential upgrade package in an embodiment of the present invention is shown, where the method includes:
and S1, acquiring the differential upgrade package to be checked, and determining the user system to be upgraded corresponding to the differential upgrade package.
In this embodiment of the present invention, the differential upgrade package may be stored in the television apparatus, and the differential upgrade package is acquired from the television apparatus to check the acquired differential upgrade package. The differential upgrade package can be stored in an external device, the television device is connected with the external device, and the television device can obtain the differential upgrade package from the external device to check the obtained differential upgrade package.
In the embodiment of the present invention, the differential upgrade package is used to upgrade a user system to be upgraded, an initial version number and a target version number can be determined according to the differential upgrade package, and the differential upgrade package is used to upgrade the user system corresponding to the initial version number to the user system corresponding to the target version number. For example, the initial version number corresponding to the differential upgrade package is a1, the target version number corresponding to the differential upgrade package is Y, and the user system corresponding to a1 may be upgraded to the user system corresponding to Y based on the differential upgrade package.
In the embodiment of the present invention, the version number of the user system to be upgraded is an initial version number corresponding to the differential upgrade package, and in specific implementation, the user system to be upgraded is determined according to the obtained differential upgrade package, and specific processes of obtaining the differential upgrade package to be checked and determining the user system to be upgraded corresponding to the differential upgrade package are described in detail later.
And S2, upgrading the user system according to the differential upgrade package, and detecting whether a target user system corresponding to the differential upgrade package is obtained.
In the embodiment of the present invention, the version number of the target user system is a target version number corresponding to the differential upgrade package. The initial version number corresponding to the differential upgrade package is A1, the target version number corresponding to the differential upgrade package is Y, the differential upgrade package is marked as A1toY, the user system (the version number is A1) is upgraded according to the A1toY, and whether the target user system with the version number of Y is obtained after upgrading is detected.
Specifically, before the user system is upgraded, the user partition of the user system is cleared first, so that the upgraded user system is prevented from being started independently of data in the user partition; and after the user partition of the user system is cleared, upgrading the user system according to the differential upgrading packet.
And after upgrading, detecting whether the upgraded system can be restarted successfully or not, if the upgraded system is restarted successfully, detecting whether the version number of the upgraded system is consistent with the target version number, and if the version number of the upgraded system is consistent with the target version number, judging to obtain the target user system corresponding to the differential upgrade package. And upgrading the user system according to the differential upgrade package, and detecting whether a specific process of a target user system corresponding to the differential upgrade package is obtained, which will be described in detail later.
And S3, if the target user system corresponding to the differential upgrade package is obtained, detecting whether the upgrade state of the target user system is a success state.
In the embodiment of the present invention, the detecting whether the upgrade status of the target user system is a successful status means detecting whether the upgrade function of the target user system is in an available status. If the upgrading function of the target user system is in the available state, the upgrading state of the target user is judged to be in the successful state, and if the upgrading function of the target user system is not in the available state, the upgrading state of the target user is judged not to be in the successful state.
Specifically, if the target user system can enter the upgrade system, the upgrade function of the target user system is considered to be in an available state, after the target user system enters the upgrade system, operations such as upgrading, clearing data and the like can be selected, and the user system of the television equipment can be upgraded next time through the upgrade system. That is, if the target user system can be upgraded for the next time, the upgrade function of the target user system is considered to be in an available state, and if the target user system cannot be upgraded for the next time, the upgrade function of the target user system is considered not to be in an available state. The specific process of detecting whether the upgrade status of the target user system is a successful status will be explained in detail later.
In the embodiment of the invention, if the user system is upgraded, an upgrade report is generated, that is, the user system can be determined to be upgraded according to the upgrade report. And when the user system is upgraded, restarting the upgraded user system for the first time.
And S4, if the upgrading state is a success state, determining that the differential upgrading packet is successfully verified.
In the embodiment of the invention, if the upgraded user system is the target user system and the upgrade state of the target user system is the success state, the differential upgrade package is determined to be successfully checked.
In the embodiment of the invention, a differential upgrade package to be checked is obtained, and a user system to be upgraded corresponding to the differential upgrade package is determined; upgrading the user system according to the differential upgrade package, and detecting whether a target user system corresponding to the differential upgrade package is obtained; if the target user system corresponding to the differential upgrade package is obtained, detecting whether the upgrade state of the target user system is a success state; and if the upgrading state is a successful state, determining that the differential upgrading packet is successfully checked. The user system is upgraded according to the differential upgrade package, if the target user system is obtained after the upgrade is finished, and the upgrade state of the target user system is a successful state, namely the target user system can be upgraded next time, the differential upgrade package is determined to be successfully checked; the method provided by the invention does not need manual participation, and improves the inspection efficiency and the inspection accuracy.
Next, a specific process of acquiring the differential upgrade package to be checked and determining the user system to be upgraded corresponding to the differential upgrade package is described.
Specifically, step S1 includes:
and S11, acquiring the differential upgrade package to be checked, and reading the initial version number corresponding to the differential upgrade package.
In the embodiment of the invention, the differential upgrade package to be checked is used for upgrading the user system corresponding to the initial version number to the user system corresponding to the target version number, that is, the differential upgrade package corresponds to an initial version number and a target version number, and the initial version number can be determined according to the differential upgrade package. For example, a differential upgrade package to be checked may be denoted as A1toY, where an initial version number corresponding to the differential upgrade package is A1, and a target version number corresponding to the differential upgrade package is Y.
And S12a, if the version number of the preset user system is not consistent with the initial version number, acquiring a complete upgrade package corresponding to the initial version number.
In the embodiment of the invention, the preset user system is a user system of the television equipment; the version number of the preset user system may be consistent with the initial version number, and may also be consistent with the initial version number; in order to reduce repeated operations, it is first determined whether the version number of the preset user system is consistent with the initial version number, and if the version number of the preset user system is not consistent with the initial version number, the preset user system needs to be upgraded to obtain the user system with the version number as the initial version number.
In the embodiment of the present invention, the complete upgrade package corresponding to the initial version number is used to upgrade a preset user system, so as to obtain the user system corresponding to the initial version number. The complete upgrade package can be stored in the television equipment, a plurality of complete upgrade packages with different version numbers are stored in the television equipment, and the complete upgrade package corresponding to the initial version number is obtained from the complete upgrade packages with different version numbers; the complete upgrade package may be stored in the external device, and the complete upgrade package corresponding to the initial version number may be determined in the external device and then transmitted to the television device.
S13a, upgrading the preset user system according to the complete upgrade package to obtain a user system to be upgraded, wherein the version number of the user system to be upgraded is the initial version number.
In the embodiment of the present invention, the complete upgrade package corresponding to the initial version number may upgrade a user system of any version to a user system corresponding to the initial version number. For example, the version number of the preset user system is a5, the initial version number is a1, the upgrade completion package corresponding to a1 is obtained, and the preset user system with the version number of a5 is upgraded to the user system with the version number of a 1.
And S12b, if the version number of the preset user system is consistent with the initial version number, taking the preset user system as the user system to be upgraded.
In the embodiment of the present invention, the step S12b and the step S12a are parallel steps. In order to reduce repeated operation, if the version number of the preset user system is consistent with the initial version number corresponding to the complete upgrade package, the preset user system does not need to be upgraded, and the preset user system is directly used as the user system to be upgraded. For example, if the version number of the preset user system is a1, and the initial version number is a1, the preset user system is used as the user system to be upgraded.
Next, a specific process of upgrading the user system according to the differential upgrade package and detecting whether a target user system corresponding to the differential upgrade package is obtained is introduced.
Specifically, step S2 includes:
and S21, clearing the user partition of the user system.
In the embodiment of the invention, the data in the user partition is user data generated by user behaviors when the television equipment runs; and clearing the user partition of the user system, namely clearing the data of the user partition. Specifically, the data of the user partition includes: DATA of the DATA partition, DATA of the system partition, and DATA of the vendor partition, DATA of the user partition not including initial DATA, the initial DATA including: keys, physical addresses, root certificates, etc. of the television apparatus are used for data representing the identity of the television apparatus. Clearing the user partition of data includes: clearing the DATA of the DATA partition, the system partition and the vendor partition. After the data of the user partition is cleared, the upgraded user system can be started independently of the data in the user partition.
And S22, performing power-off upgrade on the user system with the user data removed based on the differential upgrade package.
In the embodiment of the invention, because the user partition is cleared, the user system cannot be accessed, and therefore, the user system is forcibly upgraded according to the differential upgrade package. Specifically, a forced upgrade instruction is received, and the user system is forcibly upgraded according to the differential upgrade package.
In the embodiment of the present invention, the condition for triggering the forced upgrade instruction includes: and pressing a power button of the television equipment for a preset time, namely, forcibly upgrading the user system according to the differential upgrading packet when the power button of the television equipment is pressed for the preset time.
In the embodiment of the present invention, the "performing power-off upgrade on the user system after clearing the user data based on the differential upgrade package" means: upgrading the user system with the user data emptied based on the differential upgrade package, and executing power-off operation in the upgrading process; the number of times of performing the power-off operation is a preset number, which may be 5 times, or the preset number may be 3 times.
In specific implementation, if power failure occurs in the upgrading process, the system may be powered off due to misoperation of a user, or power failure may be caused due to objective reasons, for example, power failure occurs in the upgrading process; after the power supply is restarted, the power supply can be upgraded again or continuously upgraded. If the power-off operation is executed in the upgrading process and the upgrading is still successful, it can be determined that the differential upgrading packet can still be upgraded when the power-off fault occurs.
And S23, when the upgrade is finished, detecting whether the upgraded user system is the target user system corresponding to the differential upgrade package.
In the embodiment of the present invention, before the step S23, it is required to first determine whether the upgrade is completed, specifically, before the step S23, the method includes: monitoring an upgrade report, and if the upgrade report is monitored, judging that the user system is upgraded.
In the embodiment of the present invention, the upgrade report is generated by an upgrade system, and the upgrade system may be used to upgrade a user system. Entering an upgrade system (recovery) of the television equipment, selecting operations such as upgrading and clearing data in the upgrade system, if the upgrade operation is selected, upgrading a user system of the television equipment in the upgrade system, generating an upgrade report when the upgrade is completed, and if the upgrade report is monitored, judging that the user system is upgraded.
In this embodiment of the present invention, if an upgrade report is monitored, it is determined that the upgrade is completed, and it is further detected whether the upgraded user system is the target user system corresponding to the differential upgrade package, specifically, step S23 includes:
s231, restarting the upgraded user system when the upgrade is completed;
s232, if the user system after the upgrade is restarted successfully, the version number of the user system after the upgrade is obtained.
In the embodiment of the invention, when the upgrade is finished, whether the upgraded user system can be normally started needs to be detected, and the upgraded user system is restarted. Whether the upgraded user system is started successfully or not can be determined according to whether the user system enters the starting interface or not, namely, if the user system enters the starting interface, the user system after being upgraded is determined to be restarted successfully, and if the user system does not enter the starting interface, the user system after being upgraded is determined to be restarted unsuccessfully. Or, it may also be determined whether the upgraded user system is successfully started according to whether the user system enters the television interface to play the program, that is, if the user system enters the television interface to play the program, the user system may be considered to be successfully started. And after the upgraded user system is determined to be restarted successfully, acquiring the version number of the upgraded user system.
And S233, if the version number of the upgraded user system is consistent with the target version number corresponding to the differential upgrade package, judging to obtain the target user system.
In the embodiment of the invention, whether the user system can be upgraded to the user system corresponding to the target version number by the differential upgrade package is further verified. And acquiring the version number of the upgraded user system to judge whether the user system is upgraded to the target version corresponding to the differential data packet. For example, the initial version number corresponding to the differential upgrade package is a1, the target version number corresponding to the differential upgrade package is a4, the user system corresponding to a1 is upgraded based on the differential upgrade package, and if the upgraded user system version number is a4, the target user system is determined to be obtained.
Next, the following is introduced: and if the target user system corresponding to the differential upgrade package is obtained, detecting whether the upgrade state of the target user system is a successful state.
Specifically, step S3 includes:
and S31, if the target user system is obtained, detecting whether the upgrading function of the target user system is in an available state.
In the embodiment of the invention, if the target user system can enter the upgrading system, the upgrading function of the target user system is considered to be in an available state, after the target user system enters the upgrading system, the operations of upgrading, clearing data and the like can be selected, and the user system of the television equipment can be upgraded next time through the upgrading system. That is, if the target user system can be upgraded for the next time, the upgrade function of the target user system is considered to be in an available state, and if the target user system cannot be upgraded for the next time, the upgrade function of the target user system is considered not to be in an available state.
And S32, if the upgrading function is in the available state, judging that the upgrading state is the upgrading success state.
In the embodiment of the invention, if the upgrading function is in the available state, the upgrading state is judged to be the upgrading success state. In step S2, it is determined that the target user system corresponding to the differential upgrade package is obtained, and then it is determined that the upgrade state of the target user system is the upgrade success state, that is, the user system is upgraded by the differential upgrade package, the obtained upgraded user system is the target version corresponding to the differential upgrade package, and the upgrade function of the upgraded user system is normal, so that it can be determined that the differential upgrade package is successfully verified.
Specifically, step S31 includes:
s311, if the target user system is obtained, whether the system can be upgraded is detected.
In this embodiment of the present invention, corresponding to step S311, in step S32, if the upgrade function is in the available state, determining that the upgrade state is the upgrade successful state specifically includes:
s321, if the upgrade system is successfully entered, judging that the upgrade state is the upgrade successful state.
In the embodiment of the invention, whether the upgrading state is the upgrading successful state is determined by detecting whether the upgrading system can be entered, that is, if the upgrading system can be entered, the upgrading state is determined to be the upgrading successful state, that is, the target user system can be upgraded next time.
Specifically, step S311 includes:
s3111, if the target user system is obtained, entering an upgrading system for the first time.
In the embodiment of the invention, if the target user system is obtained, whether the upgrade system (recovery) can be accessed can be directly detected. If it is detected that the upgraded user system is the target user system, the target user system is restarted (the upgraded user system is determined to be the target system, and then the upgraded user system is entered for the first time) and then the upgraded system is entered for the first time. That is, the first entry to upgrade the system is through the user's system entry.
S3112, if the first time of entering the upgrade system is successful, clearing the data partition and restarting the target user system.
In the embodiment of the invention, if the first time of entering the upgrading system is successful, the upgraded user system is determined to be capable of being upgraded for the next time; after entering the upgrading system, the upgrading system can select operations such as upgrading and clearing data.
Further, entering the upgrade system may be related to DATA in the target user system, or, if there is no DATA in the user system, it may not enter the upgrade system, and the DATA partition (DATA partition) is cleared in the upgrade system; clearing the DATA partition, i.e., clearing the DATA in the DATA partition. It should be noted that, in step S21, before the user system is upgraded according to the differential upgrade package, the data of the user partition is already cleared, and the data of the user partition includes: DATA of the DATA partition, DATA of the system partition, and DATA of the vendor partition, i.e., DATA of the DATA partition has been cleared; however, between step S2 and this step, there may be data generated by the user operation, and the generated data may make the first time entering into the upgrade system successful.
In the embodiment of the invention, if the first time of entering the upgrading system is unsuccessful, the data partition is cleared, the target user system is restarted, and the target user system is restarted. However, between step S2 and this step, there may be data generated by user operation, and the generated data may make the first time entering into upgrading the system unsuccessful. That is, whether the first entry into the upgraded system was successful or unsuccessful, the data partition needs to be cleared and the target user system restarted.
S3113, if the target user system is restarted successfully, whether the system can be upgraded for the second time is detected.
In the embodiment of the present invention, it is determined in step S232 that the user system after the upgrade is restarted is successful, and in theory, the target user system (the user system after the upgrade) is also successfully restarted, and after the target user system is successfully restarted, whether the user system can enter the upgrade system for the second time is detected. In step S3112, the DATA partition is cleared, and if the upgrade system is entered for the second time, it is determined that the entry into the upgrade system is not related to the DATA in the DATA partition, it is determined that the entry into the upgrade system is successful.
In this embodiment of the present invention, after entering the upgrade system for the first time, the data of the user partition is not cleared, there may be a situation that the first time entering the upgrade system succeeds, and a situation that the second time entering the upgrade system succeeds and has data depending on the user partition, and after the target user system can be restarted successfully, the data of the user partition is cleared, specifically, step S3113 includes:
s31131, if the target user system is restarted successfully, clearing the user partition, and entering an upgrading system for the second time.
In the embodiment of the invention, if the target user system is restarted successfully, the user partition is cleared. The user partition includes partitions under the user system, such as a DATA partition (DATA partition), a system partition (system partition), and a vendor partition. The upgraded user system may generate some DATA during the verification process, and the generated DATA may not be completely present in the DATA partition. In an embodiment of the present invention, the clearing the DATA in the user partition includes clearing DATA of a DATA partition, a system partition, and a vendor partition, and does not include clearing initial DATA, where the initial DATA includes: keys, physical addresses, root certificates, etc. of the television apparatus are used for data representing the identity of the television apparatus.
In the embodiment of the invention, the user partition is cleared, the television equipment cannot start the upgraded user system, so that the second time of entering the upgrading system cannot enter through the upgraded user system, and the user partition is cleared and then directly enters the upgrading system.
In this embodiment of the present invention, corresponding to steps S311 to S323, in step S321, if the upgrade system is successfully entered, it is determined that the upgrade state is an upgrade successful state, which specifically includes:
and S3211, if the second time of entering the upgrade system is successful, determining that the upgrade state is the upgrade successful state.
In the embodiment of the invention, if the second time of entering the upgrading system is successful, the entering of the upgrading system does not depend on the data of the user partition, and the successful entering of the upgrading system indicates that the upgraded user system can be upgraded for the next time (the upgrading function is in an available state).
In the embodiment of the invention, through the checking process, the user system to be upgraded can be upgraded to the target version through the differential upgrade package, the upgraded user system is started without depending on data in the user partition, the upgraded user system can be upgraded next time, and the success of the differential upgrade package checking can be further determined.
In the embodiment of the present invention, the number of the differential upgrade packages is several, and when it is determined that one differential upgrade package of the several differential upgrade packages is successfully verified, the step of obtaining the differential upgrade package to be verified and determining the user system to be upgraded corresponding to the differential upgrade package is performed for another differential upgrade package of the several differential upgrade packages until it is determined that the several differential upgrade packages are successfully verified.
Television devices may have undergone multiple upgrades before the latest version of the user system is released, but the version numbers of the user systems of multiple television devices of the same model are not completely consistent. For the television equipment with the same model, after the upgrade package is pushed by the server, the user selects whether to upgrade, possibly, part of the users select upgrade, and the other part of the users select not to upgrade, so that the version numbers of the user systems of the television equipment are different. When a user system of a television device is to be upgraded to a user system corresponding to a target version number, a differential upgrade package with different initial version numbers is required. For example, the version number of the user system of the television apparatus may include: a1, A2, …, An, with the target version number of Y, it is necessary to deploy An A1toY differential upgrade package (upgrade a user system with version number of A1to a user system with version number of Y), An A2toY differential upgrade package (upgrade a user system with version number of A2to a user system with version number of Y), and n differential upgrade packages such as An AntoY differential upgrade package (upgrade a user system with version number of An to a user system with version number of Y). Before the differential upgrade package is issued, the differential upgrade package needs to be verified, that is, there are several differential upgrade packages to be verified.
In the embodiment of the invention, each differential upgrade package has an initial version number and a target version number corresponding to the differential upgrade package, the initial version numbers corresponding to any two differential upgrade packages in the plurality of differential upgrade packages are not consistent, and the target version numbers corresponding to each differential upgrade package in the plurality of differential upgrade packages are consistent.
In the embodiment of the present invention, each of the plurality of differential upgrade packages is to be verified, the plurality of differential upgrade packages may be verified in sequence, and specifically, each differential upgrade package is sorted according to each initial version number corresponding to each differential upgrade package, and the plurality of differential upgrade packages are verified in sequence. And sequencing the differential upgrade packages according to the initial version numbers respectively corresponding to the differential upgrade packages, wherein the differential upgrade packages with small initial version numbers can be arranged before the differential upgrade packages with large initial version numbers.
For example, if the initial version number corresponding to the first differential upgrade package in the two differential upgrade packages is a1, the initial version number corresponding to the second differential upgrade package in the two differential upgrade packages is a2, and the initial version number a1 is smaller than the initial version number a2, the first differential upgrade package is arranged before the second differential upgrade package, and during inspection, the first differential upgrade package is inspected first, and after the first differential upgrade package is successfully verified, the second differential upgrade package is inspected again until it is determined that the plurality of differential upgrade packages are successfully verified.
Referring to fig. 2, a process of verifying a plurality of differential upgrade packages by the method for verifying differential upgrade packages according to the embodiment of the present invention includes:
step 1, setting i to be 1;
step 2, acquiring a differential upgrade package AitoY to be inspected, wherein i is more than or equal to 1 and less than or equal to n;
step 3, upgrading the whole user system package to an Ai version;
step 4, clearing the user partition of the user system of the Ai version;
step 5, upgrading the user system corresponding to the Ai version number according to the differential upgrade package AitoY, and randomly powering off for preset times in the upgrading process;
step 6, checking whether the user system is upgraded;
step 7, if the user system is upgraded, checking whether the upgraded user system can be started;
step 8, if the upgraded user system can be started, checking whether the version number of the upgraded user system is Y;
step 9, if the version number of the upgraded user system is Y, restarting the user system corresponding to Y, and checking whether the upgraded system can be accessed;
step 10, if the upgrade system can be entered, clearing the DATA partition, and checking whether the user system corresponding to the Y can be entered after the restart;
step 11, if the user system corresponding to the Y can be entered after restarting, determining that the verification of the differential upgrade package is successful;
step 12, judging whether i is equal to n, if i is not equal to n, assigning i +1 as i, and entering step 2; if i is equal to n, the test is ended.
Before the differential upgrade package is issued, the plurality of differential upgrade packages need to be verified, in the prior art, the differential upgrade packages are all verified in a manual mode, 2 hours or more are needed for verifying one differential upgrade package, several days are needed for verifying the plurality of differential upgrade packages, and the error rate of verification in the manual mode is high. The invention optimizes the inspection process, and provides the method for inspecting the differential upgrade package without manual participation, thereby improving the inspection efficiency and the inspection accuracy.
An embodiment of the present invention further provides a computer device, which may be a terminal, and an internal structure of the computer device is shown in fig. 3. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of verifying a differential upgrade package. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that fig. 3 is only a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The embodiment of the invention provides computer equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the computer equipment is characterized in that the processor executes the computer program and realizes the following steps:
acquiring a differential upgrade package to be checked, and determining a user system to be upgraded corresponding to the differential upgrade package;
upgrading the user system according to the differential upgrade package, and detecting whether a target user system corresponding to the differential upgrade package is obtained;
if the target user system corresponding to the differential upgrade package is obtained, detecting whether the upgrade state of the target user system is a success state;
and if the upgrading state is a successful state, determining that the differential upgrading packet is successfully checked.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps:
acquiring a differential upgrade package to be checked, and determining a user system to be upgraded corresponding to the differential upgrade package;
upgrading the user system according to the differential upgrade package, and detecting whether a target user system corresponding to the differential upgrade package is obtained;
if the target user system corresponding to the differential upgrade package is obtained, detecting whether the upgrade state of the target user system is a success state;
and if the upgrading state is a successful state, determining that the differential upgrading packet is successfully checked.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (11)

1. A method of verifying a differential upgrade package, the method comprising:
acquiring a differential upgrade package to be checked, and determining a user system to be upgraded corresponding to the differential upgrade package;
upgrading the user system according to the differential upgrade package, and detecting whether a target user system corresponding to the differential upgrade package is obtained;
if the target user system corresponding to the differential upgrade package is obtained, detecting whether the upgrade state of the target user system is a success state;
and if the upgrading state is a successful state, determining that the differential upgrading packet is successfully checked.
2. The method for verifying a differential upgrade package according to claim 1, wherein the obtaining of the differential upgrade package to be verified and the determining of the user system to be upgraded corresponding to the differential upgrade package specifically include:
acquiring a differential upgrade package to be checked, and reading an initial version number corresponding to the differential upgrade package;
if the version number of a preset user system is inconsistent with the initial version number, acquiring a complete upgrade package corresponding to the initial version number;
and upgrading the preset user system according to the complete upgrade package to obtain a user system to be upgraded, wherein the version number of the user system to be upgraded is the initial version number.
3. The method for verifying a differential upgrade package according to claim 2, wherein the obtaining of the differential upgrade package to be verified and the determining of the user system to be upgraded corresponding to the differential upgrade package further comprise:
and if the version number of the preset user system is consistent with the initial version number, taking the preset user system as the user system to be upgraded.
4. The method for verifying a differential upgrade package according to claim 1, wherein the upgrading the user system according to the differential upgrade package and detecting whether a target user system corresponding to the differential upgrade package is obtained specifically includes:
clearing a user partition of the user system;
performing power-off upgrade on the user system with the user partition removed based on the differential upgrade packet;
and when the upgrade is finished, detecting whether the upgraded user system is the target user system corresponding to the differential upgrade package.
5. The method of claim 4, wherein when the upgrade is completed, detecting whether the upgraded ue is the target ue corresponding to the differential upgrade package, further comprises:
monitoring an upgrade report;
and if the upgrade report is monitored, judging that the upgrade is finished.
6. The method for verifying a differential upgrade package according to claim 4, wherein, when the upgrade is completed, detecting whether the upgraded user system is a target user system corresponding to the differential upgrade package specifically includes:
when the upgrade is finished, restarting the upgraded user system;
if the user system after the upgrade is restarted successfully, acquiring the version number of the user system after the upgrade;
and if the version number of the upgraded user system is consistent with the target version number corresponding to the differential upgrade package, judging to obtain the target user system.
7. The method according to claim 1, wherein if the target user system corresponding to the differential upgrade package is obtained, detecting whether the upgrade status of the target user system is a successful status includes:
if the target user system is obtained, detecting whether the upgrading function of the target user system is in an available state;
and if the upgrading function is in the available state, judging that the upgrading state is an upgrading success state.
8. The method of claim 7, wherein if the target user system is obtained, detecting whether an upgrade function of the target user system is in an available state specifically comprises:
if the target user system is obtained, whether the target user system can enter an upgrading system is detected;
correspondingly, if the upgrade function is in an available state, it is determined that the upgrade state is an upgrade successful state, which specifically includes:
and if the upgrade system is successfully entered, judging that the upgrade state is an upgrade successful state.
9. The method for verifying a differential upgrade package according to claim 8, wherein the detecting whether the target user system can be entered into the upgrade system if the target user system is obtained specifically includes:
if the target user system is obtained, entering an upgrading system for the first time;
if the first time of entering the upgrading system is successful, clearing the data partition and restarting the target user system;
if the target user system is restarted successfully, detecting whether the target user system can enter an upgrading system for the second time;
correspondingly, if the upgrade system is successfully entered, the upgrade state is determined to be the upgrade successful state, which specifically includes:
and if the second time of entering the upgrading system is successful, judging that the upgrading state is the upgrading successful state.
10. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1to 9 when executing the computer program.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1to 9.
CN202010721976.3A 2020-07-24 2020-07-24 Method for checking differential upgrade package and computer equipment Pending CN113971035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010721976.3A CN113971035A (en) 2020-07-24 2020-07-24 Method for checking differential upgrade package and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010721976.3A CN113971035A (en) 2020-07-24 2020-07-24 Method for checking differential upgrade package and computer equipment

Publications (1)

Publication Number Publication Date
CN113971035A true CN113971035A (en) 2022-01-25

Family

ID=79585687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010721976.3A Pending CN113971035A (en) 2020-07-24 2020-07-24 Method for checking differential upgrade package and computer equipment

Country Status (1)

Country Link
CN (1) CN113971035A (en)

Similar Documents

Publication Publication Date Title
CN112231228A (en) Firmware upgrade test method, device, platform, equipment and storage medium
CN113504932A (en) Firmware data updating method and device
CN113971035A (en) Method for checking differential upgrade package and computer equipment
CN111176917A (en) Method, system, terminal and storage medium for testing functional stability of CPU SST-BF
CN107203471B (en) Joint debugging method, service platform and computer storage medium
CN115580550A (en) Network card stability testing method, device, equipment and storage medium
CN115687119A (en) Interface fuzzy test system based on generation and variation modes
CN113010422A (en) Mirror image file testing method and device, electronic equipment and readable storage medium
CN114138587A (en) Reliability verification method, device and equipment for upgrading server power firmware
KR101123685B1 (en) System and method for upgrading program in terminal with dynamic software upgrade technology
CN114153503A (en) BIOS control method, device and medium
CN112346994A (en) Test information correlation method and device, computer equipment and storage medium
CN110908725A (en) Application program starting method and device, electronic equipment and readable medium
CN114265782B (en) Application program based shell adding tool testing method, storage medium and electronic equipment
CN113890825B (en) Interactive upgrade test method and device of equipment, storage medium and electronic equipment
CN115454465B (en) Automatic updating method of CPLD firmware
CN114791832B (en) IOS system repairing method and device when equipment space is insufficient and related components
CN115454820A (en) Firmware upgrade exception test method and device, computer equipment and storage medium
CN115599682A (en) Environment availability detection method, device, equipment and storage medium
CN115098403A (en) Network environment checking and repairing method, system, device and medium for testing machine
CN113138914A (en) Resource interaction system testing method and device, storage medium and computer equipment
CN104853187A (en) Method for testing electronic equipment starting performance and device and system thereof
CN115705293A (en) Program checking method, program checking device, electronic equipment and storage medium
CN117033202A (en) BIOS automatic continuous integrated test system
CN114470789A (en) Data restoration method, device, system, game server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination