CN114490422A - Method for monitoring files in industrial software by using Makefile - Google Patents
Method for monitoring files in industrial software by using Makefile Download PDFInfo
- Publication number
- CN114490422A CN114490422A CN202210166844.8A CN202210166844A CN114490422A CN 114490422 A CN114490422 A CN 114490422A CN 202210166844 A CN202210166844 A CN 202210166844A CN 114490422 A CN114490422 A CN 114490422A
- Authority
- CN
- China
- Prior art keywords
- configuration file
- global configuration
- makefile
- service process
- file
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
A method for monitoring files in industrial software by using Makefile is characterized in that a global configuration file is formed and a service process for loading the global configuration file is constructed in a semiconductor test project, and a preset rule is constructed according to the Makefile and depends on the global configuration file; and the monitoring module of the Makefile acquires whether part or all of the parameters in the global configuration file are modified by the user according to a preset rule, if so, corresponding execution actions are obtained according to the preset rule, so that the service process reloads the global configuration file and takes effect, and the service process does not reload the global configuration file and takes effect directly until the service process is finished. Therefore, the invention only needs to reload the global configuration file for effective when the user modifies the related file, thereby avoiding the performance loss caused by frequently loading an unchanged configuration file.
Description
Technical Field
The invention relates to the field of Automatic Test Equipment (ATE for short) of semiconductors, in particular to a method for monitoring files in industrial software by using Makefile.
Background
An automated test equipment is a device that is controlled by a computer to perform tests on devices, circuit boards, subsystems, and the like. And the computer programming replaces manual labor, and the test sequence is automatically completed. According to the test requirements, drawings and reference schemes of customers, the automatic test equipment is developed and designed by adopting MCU, PLC and PC based on VB and VC development platforms and utilizing technologies such as TestStand, LabVIEW, JTAG/Boundary Scan and the like.
An Integrated Development Environment (IDE) may assist in developing application software, i.e., programming software, of a program. After the software programming is completed, the source files therein need to be compiled and how to compile, those library files need to be created and how to create them, and how to finally generate the desired executable files.
In general, the source files in software engineering are countless and are respectively placed in a plurality of catalogues according to types, functions and modules. If there is a global profile settings and a Server process loading the global profile in a semiconductor test project, the prior art is that, no matter whether the global profile settings is modified by a user, the global profile settings must be reloaded every time a test process is executed, that is, the global profile settings that are not changed are frequently loaded, thereby causing a performance loss of the test.
Disclosure of Invention
The invention aims to provide a method for monitoring files in industrial software by using Makefile, which can provide the capabilities of monitoring changes of various configuration files and executing corresponding actions for semiconductor test engineering by using a Makefile detection mechanism.
In order to achieve the purpose, the technical scheme of the invention is as follows:
a method for monitoring files in industrial software by using Makefile comprises the following steps:
step S1: in a semiconductor test project, forming a global configuration file and constructing a service process loading the global configuration file, and constructing a preset rule according to Makefile and depending on the global configuration file, wherein parameters in the global configuration file are modified through a user interface;
step S2: the Makefile monitoring module acquires whether part or all of the parameters in the global configuration file are modified by a user according to a preset rule, if so, the step S3 is executed, and if not, the step S4 is executed;
step S3: obtaining a corresponding execution action according to the predetermined rule, so that the service process reloads the global configuration file and takes the service process into effect, and executing step S5;
step S4: the service process does not reload the global configuration file, and makes the service process take effect directly, and step S5 is executed;
step S5: and (6) ending.
Further, the predetermined rule obtains a corresponding execution action to execute a notification program to send a notification message to the service process, so that the service process reloads the global configuration file to enable the global configuration file to take effect after receiving the notification message.
Further, the global configuration file is a setings.json file, and the service process is a Server process.
According to the technical scheme, the method for monitoring the files in the industrial software by using the Makefile provided by the invention solves the problem that whether the configuration files and the like are regenerated after the related files are changed in the semiconductor automatic test engineering or not by designating the change of the files as the trigger conditions of a series of actions; that is, the reloading is effective only when the user modifies the relevant file, thereby avoiding the performance loss caused by frequently loading an unchanging configuration file.
Drawings
FIG. 1 is a schematic flow chart illustrating a method for monitoring files in industrial software by using Makefile in an embodiment of the present invention
Detailed Description
The following describes the present invention in further detail with reference to fig. 1.
At present, technicians in the industry generally use files convenient for engineering compilation management of Makefile to construct an integrated development environment tool; the Makefile file has the application of managing various compiling unit files of engineering and can assist in developing application software of programs.
In particular, Makefile defines a set of rules that specify which files need to be compiled first, which files need to be compiled later, and which files need to be recompiled, or even more complex functional operations. The Makefile file describes the rules of compilation and linking of the entire project.
The invention utilizes the detection mechanism of Makefile, and can provide the capabilities of monitoring changes of various configuration files and executing corresponding actions for semiconductor test engineering.
The method generalizes the characteristics of detecting file changes and generating files by the Makefile, namely: after monitoring some file changes, Makefile is used to perform a series of actions, for example, starting a program or notifying a service for notification or update.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for monitoring a file in industrial software by using Makefile according to an embodiment of the present invention. As shown in fig. 1, the apparatus includes:
step S1: in a semiconductor test project, forming a global configuration file and constructing a service process loading the global configuration file, and constructing a preset rule according to Makefile and depending on the global configuration file, wherein parameters in the global configuration file are modified through a user interface;
step S2: the Makefile monitoring module acquires whether part or all of the parameters in the global configuration file are modified by a user according to a preset rule, if so, the step S3 is executed, and if not, the step S4 is executed;
step S3: obtaining a corresponding execution action according to the predetermined rule, so that the service process reloads the global configuration file and takes the service process into effect, and executing step S5;
step S4: the service process does not reload the global configuration file, and makes the service process take effect directly, and step S5 is executed;
step S5: and (6) ending.
Example 1
In an embodiment of the present invention, the global configuration file is a setings.json file, and the service process is a Server process. The preset rule obtains a corresponding execution action, namely, a notification program is executed to send a notification message to the service process, so that the Server process reloads the settings.
Specifically, when a user modifies a part (for example, configuration parameters) of the global configuration file settings.json, in order to make the global configuration file revalidated only after the user modifies the setings.json file, a predetermined rule may be first defined in the Makefile and depends on the setings.json file, and then an action in the rule may be to execute a simple notification program to send a "notification" to the Server process, so that the Server process reloads the setings.json file to make the file revalidated after receiving the notification, so that the file is reloaded to be validated only when the user modifies the setings.json file, and performance loss caused by frequently loading an unchanged setings.json file is avoided.
In conclusion, the method of the invention can save energy to write codes for monitoring the change of the file system, and directly utilizes the mature mechanism of Makefile to simplify the operation.
That is, the service process only needs to focus on the corresponding action executed after the file is changed, and can automatically detect and execute the function of the corresponding action by calling in the program by using the existing function of Makefile.
The above description is only for the preferred embodiment of the present invention, and the embodiment is not intended to limit the scope of the present invention, so that all the equivalent structural changes made by using the contents of the description and the drawings of the present invention should be included in the scope of the present invention.
Claims (3)
1. A method for monitoring files in industrial software by using Makefile is characterized by comprising the following steps:
step S1: in a semiconductor test project, forming a global configuration file and constructing a service process loading the global configuration file, and constructing a preset rule according to Makefile and depending on the global configuration file, wherein parameters in the global configuration file are modified through a user interface;
step S2: the Makefile monitoring module acquires whether part or all of the parameters in the global configuration file are modified by a user according to a preset rule, if so, the step S3 is executed, and if not, the step S4 is executed;
step S3: obtaining a corresponding execution action according to the predetermined rule, so that the service process reloads the global configuration file and takes the service process into effect, and executing step S5;
step S4: the service process does not reload the global configuration file, and makes the service process take effect directly, and step S5 is executed;
step S5: and (6) ending.
2. The method as claimed in claim 2, wherein the corresponding execution action obtained by the predetermined rule is to execute a notification program to send a notification message to the service process, so that the service process reloads the global configuration file to make it effective after receiving the notification message.
3. The method for monitoring files in industrial software by using Makefile according to claim 1, wherein the global configuration file is a setings.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210166844.8A CN114490422A (en) | 2022-02-23 | 2022-02-23 | Method for monitoring files in industrial software by using Makefile |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210166844.8A CN114490422A (en) | 2022-02-23 | 2022-02-23 | Method for monitoring files in industrial software by using Makefile |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114490422A true CN114490422A (en) | 2022-05-13 |
Family
ID=81481541
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210166844.8A Pending CN114490422A (en) | 2022-02-23 | 2022-02-23 | Method for monitoring files in industrial software by using Makefile |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114490422A (en) |
-
2022
- 2022-02-23 CN CN202210166844.8A patent/CN114490422A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8954930B2 (en) | System and method for reducing test effort by object risk analysis | |
CN111400119B (en) | Multi-project and multi-platform self-adaptive chip design FPGA prototype verification method and system | |
CN110554965B (en) | Automated fuzz testing method, related equipment and computer readable storage medium | |
US20090055804A1 (en) | Method and device for automatically evaluating the quality of a software source code | |
US9983979B1 (en) | Optimized dynamic matrixing of software environments for application test and analysis | |
CN107329889B (en) | Method for automatically testing C compiler | |
Wahler et al. | CAST: Automating software tests for embedded systems | |
CN105389262A (en) | Method and device for generating test suggestions in allusion to interface tests | |
CN109284222B (en) | Software unit, project testing method, device and equipment in data processing system | |
CN114924737A (en) | Battery management system source code integration test method and device and electronic equipment | |
Schneid et al. | Static analysis of BPMN-based process-driven applications | |
CN110928760A (en) | Unit testing method and device in embedded system | |
EP2885712B1 (en) | Imperative attribution for elements in managed runtimes | |
KR20190094779A (en) | Automatically Generate Device for PLC Instruction Compiler Test-Case | |
CN114490422A (en) | Method for monitoring files in industrial software by using Makefile | |
CN111984524A (en) | Fault injection method, fault simulation method, fault injection device, and storage medium | |
KR20080013422A (en) | Method for building software project | |
CN115470141A (en) | Fault simulation method, device and related equipment | |
CN111581081B (en) | Automatic test system and method | |
CN110928798A (en) | Code testing method, device and equipment | |
Samara | A practical approach for detecting logical error in object oriented environment | |
CN109358564B (en) | Method and device for detecting configuration software and computer readable storage medium | |
KR102160951B1 (en) | Mobile app auto-test device | |
KR101761732B1 (en) | Apparatus and method for detecting error of application source code | |
CN113286090B (en) | Multi-drive dynamic configuration method, loading method and related device for camera |
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 |