Unit test method and apparatus for user state network file system

A network file system and unit testing technology, applied in the field of network files, can solve problems such as high code maintenance costs and lack of unit tests, and achieve the effects of improving service code quality, realizing interactive operations, and easy management and maintenance

Active Publication Date: 2018-03-16
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a unit testing method and device for a user-mode network file system to solve the existing problems of lack of unit testing for network systems and high code maintenance costs

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 method and apparatus for user state network file system
  • Unit test method and apparatus for user state network file system
  • Unit test method and apparatus for user state network file system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but 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.

[0041] A flow chart of a specific embodiment of the unit testing method of the user state network file system provided by the present invention is as follows: figure 1 As shown, the method includes:

[0042] Step S101: Pre-deploy the NFS-Ganesha user mode network file system source code environment and compilation tools;

[0043]In this embodiment, the source code environment of the NFS-Ganesha user mode net...

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 unit test method and apparatus for a user state network file system. The method comprises the steps of pre-deploying a source code environment and a compilation tool of the NFS-Ganesha user state network file system; introducing CUnit test tool dependency function library and lib library files in source codes of the NFS-Ganesha user state network file system, and writinga code introduction switch option, a CUnit library function and the lib library file; establishing a unit test directory, writing a unit test CmakeLists text file, introducing tested function codes, and writing a tested code test case; switching on a unit test switch, and performing NFS-Ganesha source code external compilation through cmake; and after the compilation is finished, generating a unittest result. The service code quality of the file system can be improved; the efficiency is higher and the management and maintenance are easy; and the interactive operation can be realized.

Description

technical field [0001] The invention relates to the technical field of network files, in particular to a unit testing method and device for a user state network file system. Background technique [0002] With the wide application and in-depth development of big data, cloud computing, and mass storage in enterprise information systems, the number of core storage applications for users is increasing. Among them, file data interaction through the network is a commonly used method. As enterprise data becomes larger and larger, users have higher and higher requirements for data transmission performance and stability. The code quality of each module software of the storage server has become the focus of attention of software users and developers. Therefore, it is particularly important to provide a fast, reliable, easy-to-implement and maintain network file system code quality testing method. Software testing is an important means of efficient code monitoring and solving function...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3624G06F11/3692
Inventor 臧林劼
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
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