Software dependency package capacity detection method and system and medium

A detection method and software technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as restricting the application, impact of software dependencies, and inability to guarantee the security of library packages, so as to solve security problems and versions Effects of compatibility issues

Active Publication Date: 2019-12-06
NAT UNIV OF DEFENSE TECH
View PDF6 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003]1. Compatibility issues: Due to the increase of functions and modification of defects, the software package will be upgraded from time to time. When developers refer to dependent packages, they will generally follow the When using a certain version of the package
Compatibility issues may arise if two software packages in the system use different versions of a library package
[0004]2. Security issues:

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Software dependency package capacity detection method and system and medium
  • Software dependency package capacity detection method and system and medium
  • Software dependency package capacity detection method and system and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0106] This embodiment is similar to the means of the first embodiment, but the technical problem to be solved is different.

[0107] Such as Figure 5 As shown, the software dependency package capability detection method of this embodiment includes the step of judging whether the interface provided by the software library to be tested is consistent with the expected function, and the step includes:

[0108] S1) Obtain the input software to be tested;

[0109] S2) Obtain the list of functions called by the library package of the software to be tested, and determine whether there is a function prototype of the function with the same name in the preset second deep dependency model of each library package called by the library package of the software to be tested. The second deep dependency model Record the list of external function prototypes expected by the software to be tested;

[0110] S3) Obtain each external function of the software to be tested, obtain the corresponding...

Embodiment 3

[0130] In this embodiment, the functions of Embodiment 1 and Embodiment 2 are actually implemented in a modular manner to reuse the functional modules, thereby realizing the integration of the functions of Embodiment 1 and Embodiment 2. On this basis, this embodiment provides a method for detecting and analyzing the required minimum dependent library package set when the software library package is running, so as to determine whether the software library package can run normally on a certain version of the operating system . The specific technical means used include, by checking whether the library package that the software library package depends on exists in the target operating system, and comparing the version, number of digits, format, size, etc. of the library package with the target operating system to determine whether the target is compatible. Whether the operating system is compatible with installing the software library package; at the same time, it is also possible...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a software dependency package capability detection method and system and a medium. The method for judging whether the to-be-tested software is compatible with the target systemor not comprises: after the input to-be-tested software is obtained, judging whether the to-be-tested software is compatible with the target system or not through dependency library detection, library package calling function detection and external function test case execution detection, and outputting a compatibility detection report. The method for judging whether the interface provided by theto-be-tested software library is consistent with the expected function or not comprises: after input to-be-tested software is obtained, judging whether the interface provided by the to-be-tested software library is consistent with the expected function or not through library package calling function detection and external function test case execution detection, and outputting an expected functiondetection report. Whether the to-be-tested software is compatible with the target system or not is judged and is consistent with the expected function, so that the compatibility and safety problems ofthe software dependent package can be effectively solved.

Description

technical field [0001] The invention relates to the execution detection technology of computer operating system and application software, in particular to a method, system and medium for detecting the ability of software dependent packages. Background technique [0002] The modern Linux operating system manages and installs application software in the form of a package manager, such as the apt tool under the Ubutnu operating system, the yum tool under the CentOS, and so on. Through the package manager, you can automatically install, configure, uninstall, and upgrade software packages. At the same time, based on the dynamic link mechanism of elf files under Linux, each software package can refer to functions or data structures in other library packages. The relationship caused by function references between library packages is called dependency, and functions or data structures are provided for other Packages that a software package uses are called dependent packages. The i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/36
CPCG06F11/3684
Inventor 秦莹汤佳伟马俊李小玲朱浩董攀高珑杨沙洲谭郁松吴庆波
Owner NAT UNIV OF DEFENSE TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products