Supercharge Your Innovation With Domain-Expert AI Agents!

Unit test framework suitable for embedded system

A technology for embedded system and unit testing, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problem of lack of unified structure and test result judgment method, so as to facilitate integration testing, avoid small memory, memory loss, etc. low cost effect

Inactive Publication Date: 2019-09-27
上海睿赛德电子科技有限公司
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] (1) The standard test interface module is realized abstractly, which facilitates the realization of a general-purpose test case program with a unified style, and solves the problem that the existing tests do not have a unified structure and test result judgment method;

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
  • Unit test framework suitable for embedded system
  • Unit test framework suitable for embedded system
  • Unit test framework suitable for embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0011] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described below in conjunction with the accompanying drawings. Apparently, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0012] The most critical design idea of ​​the present invention is: described unit test framework has carried out abstraction to test case structure, by abstracting the attribute and the method of all test cases into a data structure (comprising test case name, test case initialization function, test case entry function, test case cleanup function, and test case expected running time), and use the linker feature to link all test ...

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 unit test framework suitable for an embedded system. The unit test framework is used for solving the problem of standardized test of application programs in the current embedded field. The unit test framework comprises a standard test interface module, a test case exporting module, a test command analyzing module, a test unit executing module, a log module and a test result processing module. The test case exporting module abstracts a test case program into a test initialization module, a test cleaning module and a test case program entry module, and exports the test case program to a code segment specified in a program mirror image by utilizing the characteristics of a linker. The unit test framework is compiled by using a standard C language, so that a universal test interface is realized, the difficulty in compiling a test case program is reduced, the code reuse degree is improved, the development period is shortened, and the unit test framework is suitable for all embedded operation systems and can be transplanted to a bare computer system without using the embedded system for use.

Description

technical field [0001] The invention relates to the field of embedded software testing, in particular to a testing method and a testing system applied to a unit testing framework of an embedded system. Background technique [0002] With the rapid development of computer technology and the rapid rise of Internet of Things technology, the iteration speed of embedded software and hardware is getting faster and faster, which puts forward higher requirements for embedded software quality and system stability. Since embedded systems usually use real-time operating systems or bare-metal systems with limited memory, the C language unit test framework on general-purpose computer software cannot be applied to embedded software testing. Because there is no general test framework for embedded software testing, it is impossible to write reusable general test case programs, and the test coverage is low. Contents of the invention [0003] In view of the problems existing in the prior ar...

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/3688G06F11/3664
Inventor 熊谱翔朱天龙赵军涛
Owner 上海睿赛德电子科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More