Test method

A test method and technology to be tested, applied in the computer field, can solve problems such as low test efficiency of system call interface, achieve the effect of realizing batch test and improving test efficiency

Active Publication Date: 2020-05-01
亿度慧达教育科技(北京)有限公司
View PDF9 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, one of the technical problems solved by the embodiments of the present application is to pro

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
  • Test method
  • Test method
  • Test method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] refer to figure 1 , shows a flowchart of steps of a testing method according to Embodiment 1 of the present application.

[0025] The testing method of the present embodiment comprises the following steps:

[0026] Step S101, acquiring information about a system call interface to be tested.

[0027] The operating system kernel provides a series of kernel functions, which are provided to users through a set of interfaces called system calls, and are called and used by users. The function of the system call is to pass the request of the application program to the system kernel, then call the corresponding kernel function to complete the required processing, and finally return the processing result to the application program. The system call interface is the interface between the application program and the system kernel, and is the bridge between the application program and the system kernel.

[0028] In this embodiment, the information of the system call interface to ...

Embodiment 2

[0041] refer to figure 2 , shows a flowchart of steps of a testing method according to Embodiment 2 of the present application.

[0042] In this embodiment, a test of multiple system call interfaces is taken as an example.

[0043] The testing method of the present embodiment comprises the following steps:

[0044] Step S201, according to the function signature of the system call interface to be tested, obtain the information of the system call interface.

[0045] A function signature is an expression of a function, mainly composed of the name of the function and the type and type (such as value, reference or output) of each of its formal parameters. Through the function signature, you can know the relevant information of the function, such as input and output information.

[0046] The system call interface also has a corresponding function signature. In this embodiment, the information of the system call interface is obtained through the function signature, which is easy ...

Embodiment 3

[0086] refer to image 3 , shows a flowchart of steps of a testing method according to Embodiment 3 of the present application.

[0087] This embodiment illustrates the test method provided by this application in the form of a specific example. In this embodiment, the device under test adopts a Linux operating system, and multiple devices under test are tested at the same time.

[0088] The testing method of the present embodiment comprises the following steps:

[0089] Step S301, receiving a test target input by a user.

[0090] In this embodiment, when it is necessary to test the system call interface, the user declares the test target, selects the scope of the system call interface to be tested, and determines the input of the test command in the test template for the system call interface to be tested according to its function signature scope.

[0091] In this embodiment, fuzzing is taken as an example, and the generated template is also a fuzzing template.

[0092] F...

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 provides a test method, and belongs to the technical field of computers. The test method comprises the steps of obtaining information of a to-be-tested system call interface; generatinga test template for testing the system call interface according to the information of the system call interface and a set generation rule, the test template which comprises a test instruction for performing a call test on the system call interface; and sending the test template to at least one to-be-tested device through the test server, and indicating each to-be-tested device to perform a call test on a local system call interface according to the test instruction in the test template. Therefore, on one hand, test instructions of all to-be-tested system call interfaces can be generated systematically; and on the other hand, for a plurality of to-be-tested devices needing to be tested, the same test template can be used for testing a plurality of local system call interfaces, batch testingof the system call interfaces of the to-be-tested devices is achieved, and therefore the testing efficiency of the system call interfaces is effectively improved.

Description

technical field [0001] The embodiment of the present application relates to the field of computer technology, and in particular to a testing method. Background technique [0002] The operating system is a computer program that manages and controls computer hardware and software resources. It is the most basic system software that runs directly on the "bare metal". Any other software must be supported by the operating system to run. The system call interface is the interface between the application program and the system kernel, and is the bridge between the application program and the system kernel. The system call interface provided by the operating system has the characteristics of generalization and the difficulty of hot update when the operating system is running. Moreover, the system call interface provided by the operating system should ensure system security in any calling mode. Therefore, the operating system needs a test method for generalized security testing of ...

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/3684G06F11/3688
Inventor 王春宇
Owner 亿度慧达教育科技(北京)有限公司
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