CN105653414A - Method for realizing automatic switching between DOS and other test platforms - Google Patents

Method for realizing automatic switching between DOS and other test platforms Download PDF

Info

Publication number
CN105653414A
CN105653414A CN201610200374.7A CN201610200374A CN105653414A CN 105653414 A CN105653414 A CN 105653414A CN 201610200374 A CN201610200374 A CN 201610200374A CN 105653414 A CN105653414 A CN 105653414A
Authority
CN
China
Prior art keywords
dos
test
uefi
platform
operating system
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
Application number
CN201610200374.7A
Other languages
Chinese (zh)
Inventor
郭毅
王佩
孙连震
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201610200374.7A priority Critical patent/CN105653414A/en
Publication of CN105653414A publication Critical patent/CN105653414A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for realizing automatic switching between DOS and other test platforms, which utilizes UEFI? The Shell identifies an operating system boot partition in a UEFI mode, calls an operating system boot file and starts an operating system; does the DOS boot disk boot into UEFI? Shell, after the test passes, will write a PASS signature file, then PASS UEFI? And judging whether a DOS test PASS mark file exists under the Shell to realize the automatic platform switching of UEFI and DOS, Windows and Linux. The method of the invention does not need manual operation of a tester when the platform is switched, reduces the operation action of the tester and realizes automatic switching. Especially, under the condition that one operator tests a plurality of machines at the same time, the testing time can be saved, and the testing efficiency is improved. From UEFI? The shell platform enters DOS, or is tested on the UEFI platform, or calls an operating system to guide files to enter the operating system, and the program automatically judges that the missing test condition caused by human errors does not occur, so that the test quality is ensured.

Description

A kind of method realizing DOS and the automatic switchover of other test platforms
Technical field
The present invention relates to server product technical field of measurement and test, it is specifically related to a kind of method realizing DOS and the automatic switchover of other test platforms, specifically utilizing the booting operating system subregions such as UEFIShell Windows and the Linux that can recognise that UEFI pattern, call operation System guides file can start the operating system. First DOS boot disk is directed into UEFIShell during server product production test, by judging whether under UEFIShell that DOS tests PASS tab file, realizes the platform automatic switchover of UEFI and DOS, Windows and Linux. Decrease test man's operation action and testing time, improve testing efficiency, it is ensured that test quality.
Background technology
In current server product plant produced is tested, mostly carrying out on-line testing under the platforms such as DOS, Windows, Linux or UEFI, due to the limitation of testing tool and test environment, on-line testing is likely to be divided into two to test even more than platform.
DOS can be modified the Grub mode guided automatically into Windows, but it is difficulty with automatically into Linux and UEFI, therefore test is all divided into two steps to carry out by most of factories, the first step is first tested under DOS, test under DOS by rear, test man converse manual switching carry out again under Linux or UEFI platform test, it is impossible to realize automatically switch. By test man's manually switch test platform, it is easy to test leakage situation occurs. Particularly when a test man tests multiple board, test man easily obscures, it is possible to be made directly next platform test, causes test leakage, impact test quality.
EFI, Extensible Firmware Interface, the abbreviation of English name ExtensibleFirmwareInterface, is a kind of upgrading scheme substituting BIOS in the computer system of following class PC of company's release of the leading PC technical research of Intel one.
Novel UEFI, full name " unified Extensible Firmware Interface " (UnifiedExtensibleFirmwareInterface), is a kind of standard that style interface is described in detail.This interface, is loaded in a kind of operating system automatically from the operating environment of pretrigger for operating system.
Summary of the invention
The technical problem to be solved in the present invention is: for problem above, and the present invention proposes a kind of method realizing DOS and the automatic switchover of other test platforms.
The technical solution adopted in the present invention is:
A kind of method realizing DOS and the automatic switchover of other test platforms, described method utilizes the booting operating system subregions such as Windows and the Linux of UEFIShell identification UEFI pattern, call operation System guides file, starts the operating system; First DOS boot disk is directed into UEFIShell during server product production test, test by after can write a PASS tab file, then pass through and under UEFIShell, judge whether that DOS tests PASS tab file, realize the platform automatic switchover of UEFI and DOS, Windows and Linux.
Described method operating procedure is as follows:
A) USB flash disk is made DOS boot disk, puts into DOS platform test tool, this testing tool test by after can write a PASS tab file, then perform reset command;
B) write efi program, called after scan.efi, be used for pointing out operator to scan product ID, and judge that whether there is this serial number product DOS in USB flash disk tests PASS tab file, if there is no then perform exit order, automatically into DOS platform; If existed, return 0;
C) uefishell self-starting script STARTUP.NSH is write, first scan.efi is called, if Programm can.efi returns 0, then represent that this product is tested already by DOS, proceed by the test of UEFI platform, or guide the operating system such as Windows, Linux guiding file ((SuSE) Linux OS be efi boot bootx64.efi, Windows operating system be EFI Microsoft Boot bootmgfw.efi), guide machine to enter operating system, be operated the test of system platform. If not returning 0, scan.efi calling system order exit to exit uefishell, board starts from the second startup item automatically.
D) scan.efi and the STARTUP.NSH editted is put in DOS boot disk, DOS boot disk is inserted tester table, starting up, first BIOSSetup it is manually entered, bootfrombuild-inuefishell is set to the first startup item, DOS boot disk is set to the second startup item, preserves setting and restarts machine.
Tester table can be realized by aforesaid operations to automatically switch between the platforms such as UEFI, DOS, Windows, Linux, it is not necessary to test man's manual operation.
In step a), when needs start other operating systems from USB flash disk, corresponding operating system file is copied in USB flash disk.
The invention have the benefit that
The inventive method without test man's manual operation, decreases test man's operation action when platform switches, it is achieved that automatization switches. Particularly when an operator tests multiple board simultaneously, it is also possible to save the testing time, improve testing efficiency. Enter DOS from UEFIshell platform, or test at UEFI platform, or call operation System guides file enters operating system, by procedure judges, does not have the situation of human error test leakage, it is ensured that the quality of test.
Accompanying drawing explanation
Fig. 1 is the inventive method flow chart.
Detailed description of the invention
Below in conjunction with Figure of description, according to detailed description of the invention, the present invention is further described:
Embodiment 1:
A kind of method realizing DOS and the automatic switchover of other test platforms, described method utilizes the booting operating system subregions such as Windows and the Linux of UEFIShell identification UEFI pattern, call operation System guides file, starts the operating system;First DOS boot disk is directed into UEFIShell during server product production test, test by after can write a PASS tab file, then pass through and under UEFIShell, judge whether that DOS tests PASS tab file, realize the platform automatic switchover of UEFI and DOS, Windows and Linux.
Embodiment 2
As it is shown in figure 1, on the basis of embodiment 1, described in the present embodiment, method operating procedure is as follows:
A) USB flash disk is made DOS boot disk, puts into DOS platform test tool, this testing tool test by after can write a PASS tab file, then perform reset command;
B) write efi program, called after scan.efi, be used for pointing out operator to scan product ID, and judge that whether there is this serial number product DOS in USB flash disk tests PASS tab file, if there is no then perform exit order, automatically into DOS platform; If existed, return 0;
C) uefishell self-starting script STARTUP.NSH is write, first scan.efi is called, if Programm can.efi returns 0, then represent that this product is tested already by DOS, proceed by the test of UEFI platform, or guide the operating system such as Windows, Linux guiding file ((SuSE) Linux OS be efi boot bootx64.efi, Windows operating system be EFI Microsoft Boot bootmgfw.efi), guide machine to enter operating system, be operated the test of system platform. If not returning 0, scan.efi calling system order exit to exit uefishell, board starts from the second startup item automatically.
D) scan.efi and the STARTUP.NSH editted is put in DOS boot disk, DOS boot disk is inserted tester table, starting up, first BIOSSetup it is manually entered, bootfrombuild-inuefishell is set to the first startup item, DOS boot disk is set to the second startup item, preserves setting and restarts machine.
Tester table can be realized by aforesaid operations to automatically switch between the platforms such as UEFI, DOS, Windows, Linux, it is not necessary to test man's manual operation.
Embodiment 3
On the basis of embodiment 2, the present embodiment, in step a), when needs start other operating systems from USB flash disk, copies to corresponding operating system file in USB flash disk.
Embodiment of above is merely to illustrate the present invention; and it is not limitation of the present invention; those of ordinary skill about technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes fall within scope of the invention, and the scope of patent protection of the present invention should be defined by the claims.

Claims (3)

1. one kind realizes the DOS method automatically switched with other test platforms, it is characterised in that: described method utilizes UEFIShell to identify the booting operating system subregion of UEFI pattern, call operation System guides file, starts the operating system; First DOS boot disk is directed into UEFIShell during test, test by after can write a PASS tab file, then pass through and under UEFIShell, judge whether that DOS tests PASS tab file, realize the platform automatic switchover of UEFI and DOS, Windows and Linux.
2. a kind of method realizing DOS and the automatic switchover of other test platforms according to claim 1, it is characterised in that described method operating procedure is as follows:
A) USB flash disk is made DOS boot disk, puts into DOS platform test tool, this testing tool test by after can write a PASS tab file, then perform reset command;
B) write efi program, called after scan.efi, be used for pointing out operator to scan product ID, and judge that whether there is this serial number product DOS in USB flash disk tests PASS tab file, if there is no then perform exit order, automatically into DOS platform; If existed, return 0;
C) uefishell self-starting script STARTUP.NSH is write, first scan.efi is called, if Programm can.efi returns 0, then represent that this product is tested already by DOS, proceed by the test of UEFI platform, or guide the guiding file of other operating systems, guide machine to enter operating system, be operated the test of system platform; If not returning 0, scan.efi calling system order exit to exit uefishell, board starts from the second startup item automatically;
D) scan.efi and the STARTUP.NSH editted is put in DOS boot disk, DOS boot disk is inserted tester table, starting up, first BIOSSetup it is manually entered, bootfrombuild-inuefishell is set to the first startup item, DOS boot disk is set to the second startup item, preserves setting and restarts machine.
3. a kind of method realizing DOS and the automatic switchover of other test platforms according to claim 2, it is characterised in that: in step a), when needs start other operating systems from USB flash disk, corresponding operating system file is copied in USB flash disk.
CN201610200374.7A 2016-04-01 2016-04-01 Method for realizing automatic switching between DOS and other test platforms Pending CN105653414A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610200374.7A CN105653414A (en) 2016-04-01 2016-04-01 Method for realizing automatic switching between DOS and other test platforms

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610200374.7A CN105653414A (en) 2016-04-01 2016-04-01 Method for realizing automatic switching between DOS and other test platforms

Publications (1)

Publication Number Publication Date
CN105653414A true CN105653414A (en) 2016-06-08

Family

ID=56496972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610200374.7A Pending CN105653414A (en) 2016-04-01 2016-04-01 Method for realizing automatic switching between DOS and other test platforms

Country Status (1)

Country Link
CN (1) CN105653414A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6681351B1 (en) * 1999-10-12 2004-01-20 Teradyne, Inc. Easy to program automatic test equipment
CN101201776A (en) * 2006-12-14 2008-06-18 英业达股份有限公司 Method for integrating and testing platform of multiple operating systems
CN105354122A (en) * 2015-12-07 2016-02-24 浪潮电子信息产业股份有限公司 Function test optimization method for dual-purpose hard disk backboard of server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6681351B1 (en) * 1999-10-12 2004-01-20 Teradyne, Inc. Easy to program automatic test equipment
CN101201776A (en) * 2006-12-14 2008-06-18 英业达股份有限公司 Method for integrating and testing platform of multiple operating systems
CN105354122A (en) * 2015-12-07 2016-02-24 浪潮电子信息产业股份有限公司 Function test optimization method for dual-purpose hard disk backboard of server

Similar Documents

Publication Publication Date Title
CN102541591B (en) Automatic guiding method of computer U-disc operating system compatible with multioperation system platform
CN102521105B (en) Output method of power on self test information, virtual machine manager and processor
CN103593269A (en) Automatic cyclic test method of restart pressure of multiple PCIe devices
EP0920663B1 (en) Method and system for testing computer system software
CN105354122A (en) Function test optimization method for dual-purpose hard disk backboard of server
CN103593281A (en) Test system and test method
CN103677887A (en) Information processing method and electronic device
CN115357515B (en) Debugging method and device of multi-core system, computer equipment and storage medium
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN104834526A (en) Manufacturing method for motion control card driver installation package
CN113315675B (en) White box switch U-Boot automatic testing method, system and storage medium
CN104915228A (en) Application program language setting method and device
CN107220085A (en) A kind of method of automatic upgrading RAID card firmware
CN105893233B (en) Method and system for automatically testing firmware
CN101727371A (en) Method for adding and running memory testing tool in BIOS
CN105653414A (en) Method for realizing automatic switching between DOS and other test platforms
CN112965895A (en) Desktop application program automatic test method, device, equipment and storage medium
CN110096888B (en) Method and system for accelerating verification and analyzing SMM potential safety hazard
CN107612786B (en) Method and system for testing router
CN115756935A (en) Abnormal fault positioning method, device and equipment of embedded software system
US9740592B2 (en) Supporting debugging of program and graphical user interface for supporting debugging
CN112068713B (en) Event processing method, device, electronic equipment and readable medium
CN115080382A (en) Code testing method, device, equipment and medium
CN112148376A (en) Terminal starting method and device
CN110928798A (en) Code testing method, device and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160608