CN109558136A - A kind of verification method test exemple automation compiling and uploaded - Google Patents
A kind of verification method test exemple automation compiling and uploaded Download PDFInfo
- Publication number
- CN109558136A CN109558136A CN201811325614.1A CN201811325614A CN109558136A CN 109558136 A CN109558136 A CN 109558136A CN 201811325614 A CN201811325614 A CN 201811325614A CN 109558136 A CN109558136 A CN 109558136A
- Authority
- CN
- China
- Prior art keywords
- compiling
- test
- test case
- file
- automation
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses the verification methods a kind of test exemple automation compiling and uploaded.Include: the naming rule for defining test case, define test exemple automation and compile bibliographic structure, configure Python script, Python script is called to realize automation compiling and the upload server of test case.The method realizes the single test exemple automation compiling of Windows exploitation environment and the automation compiling of batch testing use-case, reduces the time cost manually compiled.Windows exploitation environmental testing use-case automation method for uploading solves the problems, such as that Windows exploitation environment and Linux develop environment man-machine interactively, greatly improves the efficiency and quality of verifying, reduces verifying cost.
Description
Technical field
The present invention relates to chip checking fields, refer specifically to a kind of verification method test exemple automation compiling and uploaded.
Background technique
Modern Software Development Tools can be very good to realize the compiling to test case, and be easy to learn and use, but right
The compiling management of test case, there are no perfect solutions.The compiling of current test case is also in manual entry rank
Section.
Keil MDK-ARM is a Integrated Development ring for the support ARM microprocessor that Keil software company, the U.S. produces
Border.MDK-ARM contains the components such as the Keil C compiler of industrial standard, macro compiler, debugger, real-time kernel.With industry
Interior leading ARM C/C++ Compile toolchain, perfection support Cortex-M, Cortex-R4, ARM7, ARM9 family device, include
The numerous major company's microprocessor chips of ST, Atmem, Freescale, NXP, TI.
Under a windows environment, and verification platform is under Linux environment for many companies of exploitation environment of test case,
The HEX file of test case wants manual FTP to upload to the SVN under Linux.The method of manual entry meets simple test reluctantly
Use-case debugging is but unable to satisfy modern more and more large-scale integrated verification.
Python is a kind of emerging scripting language, compares other object-oriented languages, advantage is clearly.
Python supports the level concepts such as polymorphic, operator overloading and multiple inheritance, and grammer is succinct, easy to learn.Python is open source
Code, it is completely free for using and developing.By writing script with Python, development efficiency can be greatly improved.
Summary of the invention
The object of the invention is due up the naming rule of test case and the bibliographic structure of compiling, realizes single test case
A kind of management method of compiling and the batch processing of batch testing use-case
1) technical solution of the present invention feature is as follows: single test exemple automation compiling.It is empty by arranging different storages
Between program file possess different memory space identification fields, different compiler languages possesses different suffix names, realizes single
The compiling of one test exemple automation.
2) same module testing use-case batch compilation.Possess identical mould by arranging all test cases under same module
Block identification field, different test cases have different numbers, realize the batch compilation of test case under same module.
3) program file list batch compilation.By arranging listed files load test use-case naming rule, file is realized
All test case batch compilations in list.
4) compiling destination file uploads automatically.Specification is write by arranging script configuration file, realizes compiling destination file
Automatic upload server.
This method includes the following steps:
1) according to the affiliated memory space of test case, test case memory space identification field is named, defines corresponding deposit
Store up space sct file
2) programming language according to selected by test case names test case suffix
3) according to test case said module, test case module id field and number are named
4) it according to testing requirement, defines test exemple automation and compiles bibliographic structure
5) according to project demand, script configuration file is set
The bibliographic structure of exploitation environment is wherein defined in step 4),
1) test exemple automation compiling first class catalogue is established, main function is the second-level directory comprising different function
2) three second-level directories are established, respectively debugging engineering catalogue, compiling emulation catalogue, source file catalogue
3) Keil project file of the debugging engineering catalogue storage for debugging
4) destination file, script configuration file and python foot that compiling emulation catalogue storage program file, compiling export
This
5) source file catalogue stores test case program file
Script configuration file is wherein set in step 5)
1) output directory of destination file is set
2) user Keil installation directory is set
3) account and password of user FTP are set
Starting automation compiling compiles bibliographic structure according to test exemple automation with script, Python script is uploaded, and adjusts
Function is encapsulated with Keil, compiles the test case with this verification method naming rule, generates the identification of Linux verification platform
CDE file simultaneously passes through FTP upload server.
The present invention has the advantages that
1) by the naming rule of agreement test case and the bibliographic structure of compiling, realize the compiling of single test case and
The batch processing of batch testing use-case.
2) realize that the batch-automated compiling of test case is improved instead of the work of manpower using Python
To the service efficiency of hardware resource and human resources.
3) realize that the automation of test case uploads using Python, solve test case in Windows and
The problem of manually being uploaded under Linux difference exploitation environment.
Detailed description of the invention
Fig. 1 is the use frame diagram of script of the present invention.
Specific embodiment
This method is described with an actual verification example below.
Firstly, naming test case and setting sct file as requested:
1) according to the affiliated memory space of test case, test case memory space identification field, such as _ c is named to deposit for CMS
Storage area;Scatter_cms.sct file is configured according to the affiliated memory space of test case
2) programming language according to selected by test case names test case suffix, such as .s that assembler language .c is selected to select C
Language
3) according to test case said module, test case module id field and number, such as WDT module, choosing are named
Use wdt as module id field, 001 as first test case number, and 002 as second test case number
4) according to above step, for example code is stored in the area CMS, selection programming language is compilation, slave module WDT, compiles
Number wdt_001_c.s is named as 001 test case
5) it is compiled using listed files, needs to define listed files wdt.lst, such as compiling case is wdt_001_c.s
It is as follows to be loaded into wdt.lst format by wdt_002_c.c:
wdt_001_c.s
wdt_002_c.c
Secondly, establishing the bibliographic structure of exploitation environment
1) first class catalogue of windows_env_new automation compiling catalogue
2) second-level directory of mdk automation compiling catalogue, includes Keil sample engineering TestCase.uvproj
3) second-level directory of run automation compiling catalogue uploads script carmv1.py, script configuration comprising automatic compiling
Program file func_lib.h needed for file pro.cfg, scatter_cms.sct memory allocation sct file, compiling
func_lib.s
4) second-level directory of src automation compiling catalogue, includes source file demo_001_n.c
Then, the configuration file of python script is configured
1) project directory that setting compiling result uploads, such as ftp_up_path="/project/arm280/tb_
common"
2) setting user Keil is according to catalogue, mdk_dir=C: Keil
3) account and password of user FTP are configured,
Ftp_svr=10.2.11.11
Ftp_user=zhang112
Ftp_pass=hello123
Finally, calling the DOS system under Windows, start python script, as shown in Figure 1
1) carmv1.py filename searches for filaname under src catalogue and compiles and upload
2) carmv1.py-t casename search for src under casename start meet all texts as defined in file designation
Part is compiled and is uploaded
3) All Files as defined in file designation that meet that carmv1.py-mmodule searches for that module under src starts are compiled
It translates and uploads
4) carmv1.py-f caselist compiles test case recorded in caselist file.
Above by specific embodiment and embodiment, invention is explained in detail, but these are not composition pair
Limitation of the invention.Without departing from the principles of the present invention, those skilled in the art can also make many deformations and change
Into these also should be regarded as protection scope of the present invention.
Claims (7)
1. the verification method a kind of test exemple automation compiling and uploaded, main naming rule by agreement test case and
The bibliographic structure of compiling, realizes single test exemple automation compiling and the automation compiling of batch testing use-case, and feature exists
In main to be realized by following steps:
1) according to the affiliated memory space of test case, test case memory space identification field is named, it is empty to define corresponding storage
Between sct file;
2) programming language according to selected by test case names test case suffix;
3) according to test case said module, test case module id field and number are named;
4) it according to testing requirement, defines test exemple automation and compiles bibliographic structure;
5) according to project demand, script configuration file is set, starting automation compiles and uploads script.
2. verification method according to claim 1, which is characterized in that the step 2) names test case suffix, passes through
The program file for arranging different memory spaces possesses different memory space identification fields, and different programming languages possesses different
Suffix name realizes single test exemple automation compiling.
3. verification method according to claim 1, which is characterized in that the step 3) names test case module id word
Section and number possess identical module id field, different test cases by arranging all test cases under same module
There are different numbers, realizes the batch compilation of test case under same module.
4. verification method according to claim 1, which is characterized in that if compiled using listed files, it is also necessary to about
Determine listed files load test use-case naming rule, realizes all test case batch compilations in listed files.
5. verification method according to claim 1, which is characterized in that the catalogue knot of definition exploitation environment in the step 4)
Structure, comprising:
1) establish test exemple automation compiling first class catalogue: main function is the second-level directory comprising different function;
2) three second-level directories are established: respectively debugging engineering catalogue, compiling emulation catalogue, source file catalogue, in which: debugging work
Journey catalogue is used to store the Keil project file of debugging;Compiling emulation catalogue is used to store the result of program file, compiling output
File, script configuration file and python script;Source file catalogue is for storing test case program file.
6. verification method according to claim 1, which is characterized in that script configuration file, packet are arranged in the step 5)
It includes:
1) output directory of destination file is set
2) user Keil installation directory is set
3) account and password of user FTP are set.
7. verification method according to claim 1, the middle starting automation compiling of the step 5) and upload script, Python
Script compiles bibliographic structure according to test exemple automation, and Keil is called to encapsulate function, and compiling has this verification method name rule
Test case then generates the CDE file of Linux verification platform identification and passes through FTP upload server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811325614.1A CN109558136A (en) | 2018-11-08 | 2018-11-08 | A kind of verification method test exemple automation compiling and uploaded |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811325614.1A CN109558136A (en) | 2018-11-08 | 2018-11-08 | A kind of verification method test exemple automation compiling and uploaded |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109558136A true CN109558136A (en) | 2019-04-02 |
Family
ID=65866150
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811325614.1A Pending CN109558136A (en) | 2018-11-08 | 2018-11-08 | A kind of verification method test exemple automation compiling and uploaded |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109558136A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112463579A (en) * | 2019-09-09 | 2021-03-09 | 英业达科技有限公司 | System and method for generating configuration file and testing by using configuration file |
CN117688902A (en) * | 2023-12-20 | 2024-03-12 | 成都北中网芯科技有限公司 | Parameterized chip simulation case management method, system and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530225A (en) * | 2013-09-10 | 2014-01-22 | 武汉烽火网络有限责任公司 | Automatic compilation testing method and automatic compilation testing platform for realizing same |
US20140372069A1 (en) * | 2012-02-14 | 2014-12-18 | Analytical Instruments Systems, Inc. | Web-Based Multi-Sensor/Instrument Control System |
CN106445564A (en) * | 2016-12-23 | 2017-02-22 | 携程旅游网络技术(上海)有限公司 | Mixed reference method and mixed reference system for items with different programming languages of platform |
CN108197351A (en) * | 2017-12-13 | 2018-06-22 | 北京时代民芯科技有限公司 | A kind of emulation verification method by monolithic processor controlled integrated circuit |
-
2018
- 2018-11-08 CN CN201811325614.1A patent/CN109558136A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140372069A1 (en) * | 2012-02-14 | 2014-12-18 | Analytical Instruments Systems, Inc. | Web-Based Multi-Sensor/Instrument Control System |
CN103530225A (en) * | 2013-09-10 | 2014-01-22 | 武汉烽火网络有限责任公司 | Automatic compilation testing method and automatic compilation testing platform for realizing same |
CN106445564A (en) * | 2016-12-23 | 2017-02-22 | 携程旅游网络技术(上海)有限公司 | Mixed reference method and mixed reference system for items with different programming languages of platform |
CN108197351A (en) * | 2017-12-13 | 2018-06-22 | 北京时代民芯科技有限公司 | A kind of emulation verification method by monolithic processor controlled integrated circuit |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112463579A (en) * | 2019-09-09 | 2021-03-09 | 英业达科技有限公司 | System and method for generating configuration file and testing by using configuration file |
CN112463579B (en) * | 2019-09-09 | 2024-04-12 | 英业达科技有限公司 | System and method for generating configuration file and testing using configuration file |
CN117688902A (en) * | 2023-12-20 | 2024-03-12 | 成都北中网芯科技有限公司 | Parameterized chip simulation case management method, system and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109976761B (en) | Software development kit generation method and device and terminal equipment | |
US8028268B2 (en) | System and method for building software package for embedded system | |
CN102591777B (en) | A kind of unit test code generation method and device | |
US10338907B2 (en) | Cloud service framework for toolkit deployment | |
CN106406960B (en) | Method for rapidly deploying software in linux environment | |
CN101799506B (en) | Chip test method, device and system based on script control | |
CN106648755B (en) | Method and device for dynamically loading dex in android art environment | |
CN105468427A (en) | Implementation method and system of automatic compilation and release | |
CN109558136A (en) | A kind of verification method test exemple automation compiling and uploaded | |
JP2021501953A (en) | Software environment for controlling engine debugging, testing, calibration, and tuning | |
US7376935B2 (en) | Design-time system and method to enable programming assistance across languages and compilation boundaries | |
US20200097260A1 (en) | Software application developer tools platform | |
CN112463596B (en) | Test case data processing method, device and equipment and processing equipment | |
CN108121658B (en) | Method for testing LINUX end tested software based on WINDOWS end testing tool | |
Phan et al. | The Challenges of Shift Left Static Analysis | |
CN108446120A (en) | A kind of detection method, device and the terminal device of SDK accesses installation kit | |
Frye | Module Systems and Developer Productivity. | |
CN113791942B (en) | Method and device for automatically distributing test tasks | |
KR102614060B1 (en) | Automatic analysis method for converting general applications into software-as-a-service applications | |
CN103984629B (en) | The method and system of webpage automatic test are realized using TCL | |
Etzel et al. | Extending EAST-ADL for modeling and analysis of partitions on functional architectures | |
WO2024041135A1 (en) | Compilation method, compiler, computing device, and computer-readable storage medium | |
Kaur et al. | SFrame: Design & Development of Smart Framework to Port Linux Kernel on ARM based Raspberry Pi | |
Jaikamal et al. | Advanced Techniques for Simulating ECU C-code on the PC | |
CN115495351A (en) | Code testing method, device, equipment and storage medium |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190402 |