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 PDFInfo
- 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
- operating system
- uefi
- disk
- 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 OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2247—Verification 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
本发明公开了一种实现DOS与其他测试平台自动切换的方法,所述方法利用UEFI?Shell识别UEFI模式的操作系统引导分区,调用操作系统引导文件,启动操作系统;测试时先把DOS启动盘引导进UEFI?Shell,测试通过后会写一个PASS标记文件,然后通过UEFI?Shell下判断是否存在DOS测试PASS标记文件,来实现UEFI与DOS、Windows和Linux的平台自动切换。本发明方法在平台切换时不用测试员手动操作,减少了测试员作业动作,实现了自动化切换。特别是在一名操作员同时测试多个机台的情况下,还可以节省测试时间,提高测试效率。从UEFI?shell平台进入DOS,或是在UEFI平台进行测试,或是调用操作系统引导文件进入操作系统,由程序自动判断,不会出现人为失误漏测的情况,保证了测试的质量。
The invention discloses a method for automatically switching between DOS and other test platforms. The method uses UEFI? Shell recognizes the operating system boot partition in UEFI mode, calls the operating system boot file, and starts the operating system; when testing, first guide the DOS boot disk into UEFI? Shell, after passing the test, will write a PASS mark file, and then pass UEFI? Under the shell, judge whether there is a DOS test PASS mark file to realize automatic switching between UEFI and DOS, Windows and Linux platforms. The method of the invention does not require manual operation by a tester when the platform is switched, reduces the work actions of the tester, and realizes automatic switching. Especially in the case of one operator testing multiple machines at the same time, it can also save testing time and improve testing efficiency. From UEFI? The shell platform enters the DOS, or the UEFI platform is used for testing, or the operating system boot file is invoked to enter the operating system, and the program automatically judges that there will be no human error or missed testing, which ensures the quality of the test.
Description
技术领域 technical field
本发明涉及服务器产品测试技术领域,具体涉及一种实现DOS与其他测试平台自动切换的方法,具体是利用UEFIShell能识别UEFI模式的Windows和Linux等操作系统引导分区,调用操作系统引导文件即可启动操作系统。服务器产品生产测试时先把DOS启动盘引导进UEFIShell,通过UEFIShell下判断是否存在DOS测试PASS标记文件,来实现UEFI与DOS、Windows和Linux的平台自动切换。减少了测试员作业动作和测试时间,提高了测试效率,保证了测试质量。 The invention relates to the technical field of server product testing, in particular to a method for automatically switching between DOS and other test platforms, in particular, using UEFIShell to identify the boot partitions of operating systems such as Windows and Linux in UEFI mode, and calling the operating system boot files to start operating system. During the production test of server products, first guide the DOS boot disk into UEFIShell, and judge whether there is a DOS test PASS mark file under UEFIShell, so as to realize the automatic switching between UEFI and DOS, Windows and Linux platforms. The tester's operation action and test time are reduced, the test efficiency is improved, and the test quality is guaranteed.
背景技术 Background technique
在当前服务器产品工厂生产测试中,大都在DOS、Windows、Linux或UEFI等平台下进行在线测试,由于测试工具和测试环境的局限性,在线测试很可能分为两个甚至多个平台进行测试。 In the current factory production test of server products, most of the online tests are conducted on platforms such as DOS, Windows, Linux or UEFI. Due to the limitations of test tools and test environments, online tests are likely to be divided into two or even multiple platforms for testing.
DOS可通过修改Grub引导的方式自动进入Windows,但是很难实现自动进入Linux和UEFI,因此大多数工厂都将测试分为两步进行,第一步先在DOS下测试,DOS下测试通过后,测试员通话手动切换再进行Linux或UEFI平台下测试,不能实现自动切换。由测试员通过手动切换测试平台,很容易出现漏测情况。特别是在一名测试员测试多个机台的情况下,测试员容易混淆,可能直接进行下一个平台测试,造成漏测,影响测试质量。 DOS can automatically enter Windows by modifying the Grub boot method, but it is difficult to automatically enter Linux and UEFI, so most factories divide the test into two steps. The first step is to test under DOS first. After the test under DOS is passed, The tester manually switches the call and then performs the test under the Linux or UEFI platform, and the automatic switching cannot be realized. It is easy for the tester to switch the test platform manually, and it is easy to miss the test. Especially in the case of one tester testing multiple machines, the tester is likely to be confused and may go directly to the next platform test, resulting in missed tests and affecting the test quality.
EFI,可扩展固件接口,英文名ExtensibleFirmwareInterface的缩写,是英特尔一个主导个人电脑技术研发的公司推出的一种在未来的类PC的电脑系统中替代BIOS的升级方案。 EFI, Extensible Firmware Interface, the abbreviation of the English name ExtensibleFirmwareInterface, is an upgrade program introduced by Intel, a company leading the research and development of personal computer technology, to replace BIOS in future PC-like computer systems.
新型UEFI,全称"统一的可扩展固件接口"(UnifiedExtensibleFirmwareInterface),是一种详细描述类型接口的标准。这种接口用于操作系统自动从预启动的操作环境,加载到一种操作系统上。 The new UEFI, full name "Unified Extensible Firmware Interface" (UnifiedExtensibleFirmwareInterface), is a standard that describes the type interface in detail. This interface is used by the operating system to automatically load an operating system from a pre-boot operating environment.
发明内容 Contents of the invention
本发明要解决的技术问题是:针对以上问题,本发明提出了一种实现DOS与其他测试平台自动切换的方法。 The technical problem to be solved by the present invention is: aiming at the above problems, the present invention proposes a method for automatically switching between DOS and other test platforms.
本发明所采用的技术方案为: The technical scheme adopted in the present invention is:
一种实现DOS与其他测试平台自动切换的方法,所述方法利用UEFIShell识别UEFI模式的Windows和Linux等操作系统引导分区,调用操作系统引导文件,启动操作系统;服务器产品生产测试时先把DOS启动盘引导进UEFIShell,测试通过后会写一个PASS标记文件,然后通过UEFIShell下判断是否存在DOS测试PASS标记文件,来实现UEFI与DOS、Windows和Linux的平台自动切换。 A method for automatically switching between DOS and other test platforms, the method uses UEFIShell to identify Windows and Linux operating system boot partitions in UEFI mode, calls the operating system boot file, and starts the operating system; when the server product is produced and tested, the DOS is first started The disk is booted into UEFIShell, and a PASS mark file will be written after the test is passed, and then the DOS test PASS mark file exists under UEFIShell to realize automatic switching between UEFI and DOS, Windows and Linux platforms.
所述方法操作步骤如下: The method operation steps are as follows:
a)将U盘做成DOS启动盘,放入DOS平台测试工具,该测试工具测试通过后会写一个PASS标记文件,然后执行重启命令; a) Make the U disk into a DOS boot disk and put it into the DOS platform test tool. After the test tool passes the test, it will write a PASS mark file, and then execute the restart command;
b)编写efi程序,命名为scan.efi,用于提示操作员扫描产品序列号,并判断U盘中是否存在该序列号产品DOS测试PASS标记文件,如果不存在则执行exit命令,自动进入DOS平台;如果存在则返回0; b) Write the efi program, named scan.efi, which is used to prompt the operator to scan the product serial number, and judge whether the serial number product DOS test PASS mark file exists in the U disk. If it does not exist, execute the exit command and automatically enter DOS platform; returns 0 if present;
c)编写uefishell自启动脚本STARTUP.NSH,首先调用scan.efi,如果程序scan.efi返回0,则表示该产品已经通过DOS测试,开始进行UEFI平台的测试,或引导Windows、Linux等操作系统的引导文件(Linux操作系统为\efi\boot\bootx64.efi,Windows操作系统为\EFI\Microsoft\Boot\bootmgfw.efi),引导机器进入操作系统,进行操作系统平台的测试。如果未返回0,scan.efi调用系统命令exit退出uefishell,机台自动从第二启动项启动。 c) Write the uefishell self-starting script STARTUP.NSH, first call scan.efi, if the program scan.efi returns 0, it means that the product has passed the DOS test, start the UEFI platform test, or boot the Windows, Linux and other operating systems Boot file (\efi\boot\bootx64.efi for Linux operating system, \EFI\Microsoft\Boot\bootmgfw.efi for Windows operating system), guide the machine to enter the operating system, and test the operating system platform. If it does not return 0, scan.efi invokes the system command exit to exit uefishell, and the device automatically starts from the second startup item.
d)将编辑好的scan.efi和STARTUP.NSH都放入DOS启动盘中,将DOS启动盘插入测试机台,开机启动,首先手动进入BIOSSetup,将bootfrombuild-inuefishell设置为第一启动项,DOS启动盘设置为第二启动项,保存设置重启机器。 d) Put the edited scan.efi and STARTUP.NSH into the DOS startup disk, insert the DOS startup disk into the test machine, start it up, first enter BIOSSetup manually, set bootfrombuild-inuefishell as the first startup item, DOS Set the startup disk as the second startup item, save the settings and restart the machine.
通过上述操作即可实现测试机台在UEFI、DOS、Windows、Linux等平台之间自动切换,无需测试员手动操作。 Through the above operations, the test machine can be automatically switched between UEFI, DOS, Windows, Linux and other platforms without manual operation by the tester.
在步骤a)中,当需要从U盘启动其他操作系统时,把相应的操作系统文件复制到U盘中。 In step a), when other operating systems need to be started from the U disk, the corresponding operating system files are copied to the U disk.
本发明的有益效果为: The beneficial effects of the present invention are:
本发明方法在平台切换时不用测试员手动操作,减少了测试员作业动作,实现了自动化切换。特别是在一名操作员同时测试多个机台的情况下,还可以节省测试时间,提高测试效率。从UEFIshell平台进入DOS,或是在UEFI平台进行测试,或是调用操作系统引导文件进入操作系统,由程序自动判断,不会出现人为失误漏测的情况,保证了测试的质量。 The method of the invention does not need manual operation by a tester when the platform is switched, reduces the work actions of the tester, and realizes automatic switching. Especially in the case of one operator testing multiple machines at the same time, it can also save testing time and improve testing efficiency. Enter DOS from the UEFI shell platform, or test on the UEFI platform, or call the operating system boot file to enter the operating system, automatically judged by the program, there will be no human error or missed test, and the quality of the test is guaranteed.
附图说明 Description of drawings
图1为本发明方法流程图。 Fig. 1 is a flow chart of the method of the present invention.
具体实施方式 detailed description
下面结合说明书附图,根据具体实施方式对本发明进一步说明: Below in conjunction with accompanying drawing of description, the present invention is further described according to specific embodiment:
实施例1: Example 1:
一种实现DOS与其他测试平台自动切换的方法,所述方法利用UEFIShell识别UEFI模式的Windows和Linux等操作系统引导分区,调用操作系统引导文件,启动操作系统;服务器产品生产测试时先把DOS启动盘引导进UEFIShell,测试通过后会写一个PASS标记文件,然后通过UEFIShell下判断是否存在DOS测试PASS标记文件,来实现UEFI与DOS、Windows和Linux的平台自动切换。 A method for automatically switching between DOS and other test platforms, the method uses UEFIShell to identify Windows and Linux operating system boot partitions in UEFI mode, calls the operating system boot file, and starts the operating system; when the server product is produced and tested, the DOS is first started The disk is booted into UEFIShell, and a PASS mark file will be written after the test is passed, and then the DOS test PASS mark file exists under UEFIShell to realize automatic switching between UEFI and DOS, Windows and Linux platforms.
实施例2 Example 2
如图1所示,在实施例1的基础上,本实施例所述方法操作步骤如下: As shown in Figure 1, on the basis of Embodiment 1, the method operation steps described in this embodiment are as follows:
a)将U盘做成DOS启动盘,放入DOS平台测试工具,该测试工具测试通过后会写一个PASS标记文件,然后执行重启命令; a) Make the U disk into a DOS boot disk and put it into the DOS platform test tool. After the test tool passes the test, it will write a PASS mark file, and then execute the restart command;
b)编写efi程序,命名为scan.efi,用于提示操作员扫描产品序列号,并判断U盘中是否存在该序列号产品DOS测试PASS标记文件,如果不存在则执行exit命令,自动进入DOS平台;如果存在则返回0; b) Write the efi program, named scan.efi, which is used to prompt the operator to scan the product serial number, and judge whether the serial number product DOS test PASS mark file exists in the U disk. If it does not exist, execute the exit command and automatically enter DOS platform; returns 0 if present;
c)编写uefishell自启动脚本STARTUP.NSH,首先调用scan.efi,如果程序scan.efi返回0,则表示该产品已经通过DOS测试,开始进行UEFI平台的测试,或引导Windows、Linux等操作系统的引导文件(Linux操作系统为\efi\boot\bootx64.efi,Windows操作系统为\EFI\Microsoft\Boot\bootmgfw.efi),引导机器进入操作系统,进行操作系统平台的测试。如果未返回0,scan.efi调用系统命令exit退出uefishell,机台自动从第二启动项启动。 c) Write the uefishell self-starting script STARTUP.NSH, first call scan.efi, if the program scan.efi returns 0, it means that the product has passed the DOS test, start the UEFI platform test, or boot the Windows, Linux and other operating systems Boot file (\efi\boot\bootx64.efi for Linux operating system, \EFI\Microsoft\Boot\bootmgfw.efi for Windows operating system), guide the machine to enter the operating system, and test the operating system platform. If it does not return 0, scan.efi invokes the system command exit to exit uefishell, and the device automatically starts from the second startup item.
d)将编辑好的scan.efi和STARTUP.NSH都放入DOS启动盘中,将DOS启动盘插入测试机台,开机启动,首先手动进入BIOSSetup,将bootfrombuild-inuefishell设置为第一启动项,DOS启动盘设置为第二启动项,保存设置重启机器。 d) Put the edited scan.efi and STARTUP.NSH into the DOS startup disk, insert the DOS startup disk into the test machine, start it up, first enter BIOSSetup manually, set bootfrombuild-inuefishell as the first startup item, DOS Set the startup disk as the second startup item, save the settings and restart the machine.
通过上述操作即可实现测试机台在UEFI、DOS、Windows、Linux等平台之间自动切换,无需测试员手动操作。 Through the above operations, the test machine can be automatically switched between UEFI, DOS, Windows, Linux and other platforms without manual operation by the tester.
实施例3 Example 3
在实施例2的基础上,本实施例在步骤a)中,当需要从U盘启动其他操作系统时,把相应的操作系统文件复制到U盘中。 On the basis of Embodiment 2, in this embodiment, in step a), when other operating systems need to be started from the U disk, the corresponding operating system files are copied to the U disk.
以上实施方式仅用于说明本发明,而并非对本发明的限制,有关技术领域的普通技术人员,在不脱离本发明的精神和范围的情况下,还可以做出各种变化和变型,因此所有等同的技术方案也属于本发明的范畴,本发明的专利保护范围应由权利要求限定。 The above embodiments are only used to illustrate the present invention, but not to limit the present invention. Those of ordinary skill in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, all Equivalent technical solutions also belong to the category of the present invention, and the scope of patent protection of the present invention should be defined by the claims.
Claims (3)
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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115033296A (en) * | 2022-05-13 | 2022-09-09 | 昆仑太科(北京)技术股份有限公司 | A method and device for booting a domestic operating system based on UEFI and Linux |
Citations (3)
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 | 英业达股份有限公司 | Multi-operating system platform integration test method |
CN105354122A (en) * | 2015-12-07 | 2016-02-24 | 浪潮电子信息产业股份有限公司 | Function test optimization method for dual-purpose hard disk backboard of server |
-
2016
- 2016-04-01 CN CN201610200374.7A patent/CN105653414A/en active Pending
Patent Citations (3)
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 | 英业达股份有限公司 | Multi-operating system platform integration test method |
CN105354122A (en) * | 2015-12-07 | 2016-02-24 | 浪潮电子信息产业股份有限公司 | Function test optimization method for dual-purpose hard disk backboard of server |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115033296A (en) * | 2022-05-13 | 2022-09-09 | 昆仑太科(北京)技术股份有限公司 | A method and device for booting a domestic operating system based on UEFI and Linux |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6530774B2 (en) | Hardware failure recovery system | |
WO2016177124A1 (en) | Method and device for implementing continuous integration test | |
CN102637144B (en) | System fault processing method and device | |
TW200416544A (en) | Recovery method of multi-functional operating system and system thereof | |
CN105068845A (en) | Method for quickly updating firmware and guiding firmware to enter operating system | |
CN102289398A (en) | Restart testing method | |
CN113315675B (en) | White box switch U-Boot automatic testing method, system and storage medium | |
CN107329792B (en) | Docker container starting method and device | |
CN103309792A (en) | Method and system for controlling log information | |
CN105718340A (en) | Crontab-based CPU stability test method | |
CN106095439A (en) | A kind of information processing method and electronic equipment | |
CN104699615B (en) | A kind for the treatment of method and apparatus of the system failure | |
CN1845077A (en) | A method for remote detection and control of computer | |
CN107220085A (en) | A kind of method of automatic upgrading RAID card firmware | |
CN106843940A (en) | A kind of fast updating method of embedded system | |
CN104834526A (en) | Manufacturing method for motion control card driver installation package | |
CN112965895A (en) | Desktop application program automatic test method, device, equipment and storage medium | |
CN108153635A (en) | Installed System Memory marginal test method, system equipment and computer readable storage medium | |
CN111538562A (en) | Linux cloud host service continuity testing method and device on cloud computing platform | |
CN105808440A (en) | Application low memory test method, apparatus and system | |
CN105653414A (en) | Method for realizing automatic switching between DOS and other test platforms | |
CN108051728A (en) | One kind is based on MOC boards hardware AC test methods and system | |
CN104111862A (en) | Method and system for obtaining IP (Internet Protocol) address of virtual machine in cloud computing platform | |
CN114327648B (en) | Driving debugging method and device, electronic equipment and storage medium | |
CN111090458B (en) | Gray release system and application release method based on gray release system |
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 |
Application publication date: 20160608 |
|
RJ01 | Rejection of invention patent application after publication |