CN105224459B - A kind of method that test b MC reads and writes BIOS configuration features by OEM orders under LINUX platforms - Google Patents
A kind of method that test b MC reads and writes BIOS configuration features by OEM orders under LINUX platforms Download PDFInfo
- Publication number
- CN105224459B CN105224459B CN201510682790.0A CN201510682790A CN105224459B CN 105224459 B CN105224459 B CN 105224459B CN 201510682790 A CN201510682790 A CN 201510682790A CN 105224459 B CN105224459 B CN 105224459B
- Authority
- CN
- China
- Prior art keywords
- test
- bios
- file
- library
- tested
- 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.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 252
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000008569 process Effects 0.000 claims abstract description 27
- 238000009434 installation Methods 0.000 claims description 3
- 230000004048 modification Effects 0.000 claims description 3
- 238000012986 modification Methods 0.000 claims description 3
- 238000005192 partition Methods 0.000 claims description 3
- 230000004044 response Effects 0.000 description 10
- 230000001429 stepping effect Effects 0.000 description 9
- 230000008859 change Effects 0.000 description 6
- 108010028984 3-isopropylmalate dehydratase Proteins 0.000 description 5
- 230000002596 correlated effect Effects 0.000 description 3
- 230000000875 corresponding effect Effects 0.000 description 3
- 238000004088 simulation Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
Abstract
The method for reading and writing BIOS configuration features by OEM orders the invention discloses test b MC under a kind of LINUX platforms, it realizes that process is:Build test environment;Structure test library file;Testing results library file, the test library file include testing progress breakpoint file and test result output file, are then tested:Test program is added into starting up;Each test library is tested successively, completes backed off after random;Cancel start testing results program after the completion of test;Test result is shown in test program.Under a kind of LINUX platforms test b MC by OEM orders read and write BIOS configuration features method compared with prior art, there is high efficiency, high accuracy, high universalizable, high ornamental, it is highly practical, it is easy to spread.
Description
Technical field
The present invention relates to field of computer technology, test b MC leads under specifically a kind of highly practical, LINUX platforms
The method for crossing OEM orders read-write BIOS configuration features.
Background technology
BMC is an independent board being installed on server master board, also has server master board to provide to IPMI now
Support.Autonomous characteristic good IPMI is just overcome in the past based on the limitation suffered by the way to manage of operating system, and core
On piece additionally provides a large amount of undefined functions, can carry out posting for secondary development by user except the defined register address that dispatches from the factory
Storage.These registers need to access by OEM orders.Some clients can propose to go to change by BMC using OEM orders
BIOS sets or obtains BIOS current settings.Due to having dependence between some BIOS setting options, each, which is set, needs solely
It is vertical to carry out, and reset node is needed so that it comes into force, it is accomplished manually the work that the test to this type is a time and effort consuming
Make.
In the test to substantial amounts of OEM orders, by automatic test script, man-machine interactively process is reduced as far as possible,
To realize the BMC OEM command functions testing goals to product.Based on this, test b MC under a kind of LINUX platforms is now provided and is led to
The method for crossing OEM orders read-write BIOS configuration features.
The content of the invention
The technical assignment of the present invention is to be directed to above shortcoming, there is provided is tested under a kind of highly practical, LINUX platforms
The method that BMC reads and writes BIOS configuration features by OEM orders.
A kind of method that test b MC reads and writes BIOS configuration features by OEM orders under LINUX platforms, it was implemented
Cheng Wei:
Build test environment;
Structure test library file;
Testing results library file, the test library file include testing progress breakpoint file and test result output file, so
After tested:
Test program is added into starting up;
Each test library is tested successively, completes backed off after random;
Cancel start testing results program after the completion of test;
Test result is shown in test program.
The build process of the test environment is:
Setup test environment first, selection, disk partition and the selection of software kit of the test environment including operating system,
Setting option modification confirms in BIOS;
Then the installation configuration of operating system is carried out, after installing operating system, system carries Ipmitool instruments.
The test library file content represents that the table content includes by form:Sequence number, command functions title, access
Whether sequence, expected value, test mark, is marked wherein whether testing mark by CHECK, when marking CHECK, then ignores this
Test item.
The filename of the test library file storage is respectively to read BIOS arrange parameters and write BIOS arrange parameters
Command set storehouse.
Before library test is tested, test library file needs to be pre-processed, and the process of the pretreatment is:Compiled in excel
Volume, convert file formats often represent the test item at row end in test library with compatible Linux by CHECK marks
It is enabled.
It is described test library test detailed process be:
Test breakpoint information is obtained first;
Judge test library and whether need to be tested, whether the test item in test library needs is tested;
Then choose cache lines of certain a line as the content of BIOS setting options of breakpoint file, cache lines without content then
Write phase is set into BIOS, cache lines have content then to enter BIOS setting read phases;
The detailed process of the write phase is:
Obtain the test command row and CHECK marks of test item title, remainder bytes;
The current test library of basis, test item and the test option operation writing commands of no CHECK mark, and by option content
The cache lines of write break point file, and reset node;
Have CHECK marks then directly ignores the test item, and orientation necessary information enters test result output file, and initially
Change is recycled into conditional-variable;
The detailed process of the read phase is:
Obtain test item title, command line and CHECK marks;
Cache lines content is read as expected value;
During no CHECK marks, corresponding read command is run, identical by return value compared with expected value, test passes through, assignment
Outcome variable is PASS, and necessary information is oriented into test result output file, stepping test option progress and test aggregate scheduling;
Different then test crash, assigned result variable are FAIL, other operations are same as above;
There are CHECK marks then to ignore current test item, initialization correlated variables impacts to avoid to follow-up test;
Aggregate scheduling is tested in stepping, and circulation is tested.
The method that test b MC reads and writes BIOS configuration features by OEM orders under a kind of LINUX platforms of the present invention, has
Advantages below:
High efficiency, test process are all automatically performed with interpretation of result process by script;High accuracy, test unmanned plane are handed over
Mutual process, the error for avoiding human factor from producing, automatically switches and reads BIOS configuration phases and write BIOS configuration phases, pass through test
Breakpoint file contacts two test libraries and ensures that accurately collaboration carries out for two stage test;Versatility, defines test library rule
Model, for the self-defined demand of different clients, only need to safeguard form test command collection storehouse, without to foot according to specification
Any change of this progress;Ornamental, test result output file content is simple and clear, easy to the test of fast positioning results abnormity
, it is highly practical, it is easy to spread.
Embodiment
With reference to specific embodiment, the invention will be further described.
IPMI is intelligent platform management interface(Intelligent Platform Management Interface)'s
Abbreviation, is to manage a kind of industrial standard that the ancillary equipment used in the business system based on Intel structures uses, the mark
It is accurate to be formulated by companies such as Intel, Hewlett-Packard, NEC, Dell computer and SuperMicro.User can not only utilize IPMI to supervise
Depending on the physical health feature of server, it is directly right to access its to the command line of BMC 16 systems of transmission to can also use raw parameters
The register answered.
Ipmitool instruments are one of BMC instruments that industry is generally acknowledged, support very comprehensive control and setting to BMC etc. to grasp
Make.
2.0 specifications of root world IPMI, BMC is sent visit order, simulation Client application field according to by Ipmitool instruments
Scape.Running this instrument can realize that sending BIOS by BMCOEM orders configures write order, reruns script automatically after restarting
Go forward side by side and study in BIOS configuration phases, judge to set by return value and whether come into force, so followed under the control of test breakpoint file
Ring, comprehensive coverage test content.
Based on this, the present invention provides test b MC under a kind of LINUX platforms and reads and writes BIOS configuration features by OEM orders
Method, this method access the OEM orders in test library file by building test library file in advance, using automatic test script
Collection, sends BMC by IPMITOOL instruments and writes BIOS configuration orders, and the application action of simulation client in practice, restarts with life
Whether effect BIOS, which matches somebody with somebody to postpone, retransmits read command, judge to set by return value and come into force, provide test result, reach and BMC is read
The purpose that BIOS configuration class OEM command functions carry out scientific and effective test is write, its specific implementation process is:
Build test environment;
Structure test library file;
Testing results library file, the test library file include testing progress breakpoint file and test result output file, so
After tested:
Test program is added into starting up;
Each test library is tested successively, completes backed off after random;
Cancel start testing results program after the completion of test;
Test result is shown in test program.
The build process of the test environment is:
Setup test environment first, selection, disk partition and the selection of software kit of the test environment including operating system,
Setting option modification confirms in BIOS;
Then the installation configuration of operating system is carried out, after installing operating system, system carries Ipmitool instruments.
The test library file content represents that the table content includes by form:Sequence number, command functions title, access
Whether sequence, expected value, test mark, is marked wherein whether testing mark by CHECK, when marking CHECK, then ignores this
Test item, wherein writing the embodiment that Req3 in BIOS configuration testing library files is each setting option multi-options of BIOS, is separated with "/",
It is recommended that when building library file, the BIOS settings given tacit consent to are placed on finally, can so ensure to terminate posterior nodal point in test
BIOS sets and remains default value, and concrete structure is as shown in the table.
Table 1 writes the citing of BIOS configuration testing library files standard
Table 2 reads the citing of BIOS configuration testing library files standard
The filename of the test library file storage is respectively to read BIOS arrange parameters and write BIOS arrange parameters
Command set storehouse.
Before library test is tested, test library file needs to be pre-processed, and the process of the pretreatment is:Compiled in excel
Volume, convert file formats often represent the test item at row end in test library with compatible Linux by CHECK marks
It is enabled.
It is described test library test detailed process be:
Test breakpoint information is obtained first;
Judge test library and whether need to be tested, whether the test item in test library needs is tested;
Then choose cache lines of certain a line as the content of BIOS setting options of breakpoint file, cache lines without content then
Write phase is set into BIOS, cache lines have content then to enter BIOS setting read phases;
The detailed process of the write phase is:
Obtain the test command row and CHECK marks of test item title, remainder bytes;
The current test library of basis, test item and the test option operation writing commands of no CHECK mark, and by option content
The cache lines of write break point file, and reset node;
Have CHECK marks then directly ignores the test item, and orientation necessary information enters test result output file, and initially
Change is recycled into conditional-variable;
The detailed process of the read phase is:
Obtain test item title, command line and CHECK marks;
Cache lines content is read as expected value;
During no CHECK marks, corresponding read command is run, identical by return value compared with expected value, test passes through, assignment
Outcome variable is PASS, and necessary information is oriented into test result output file, stepping test option progress and test aggregate scheduling;
Different then test crash, assigned result variable are FAIL, other operations are same as above;
There are CHECK marks then to ignore current test item, initialization correlated variables impacts to avoid to follow-up test;
Aggregate scheduling is tested in stepping, and circulation is tested.
The instantiation for wherein testing library test is as follows:
Folder location where acquisition instrument.
Cur_Dir=$(cd "$(dirname "$0")";pwd)。
# builds testing progress breakpoint file and test result output file.
if [ ! -e $Cur_Dir/Count.tmp ] ; then
touch $Cur_Dir/Count.tmp
touch $Cur_Dir/OEM_Result.csv
Script is added starting up by #.
Reboot=`less /etc/rc.d/rc.local | grep "RUN_OEM_test.sh" | awk '$1~/^
sh/ {print $2}'`
if [ -z $Reboot ] ; then
echo "sh $Cur_Dir/RUN_OEM_test.sh" >> /etc/rc.d/rc.local
fi
# test breakpoint file the first row record test library numberings(Only one test library herein).
echo 1 >$Cur_Dir/Count.tmp
# the second row record test item numbering, tests the 1st behavior gauge outfit of library file, test item is by 2.
echo 2 >>$Cur_Dir/Count.tmp
# the third lines record test option progress, many BIOS setting options have multiple options.
echo 1 >>$Cur_Dir/Count.tmp
# fourth lines record test aggregate scheduling.
echo 1 >>$Cur_Dir/Count.tmp
echo "NO.,Command Name,EXPECT,RESPONSE,RESULT,check_raw" >$Cur_Dir/
OEM_Result.csv
fi
# successively tests (only one test library herein) each test library, completes backed off after random.
while true
do
CMD_Count=`cat $Cur_Dir/Count.tmp |awk 'NR==1{print $1}'`
case $CMD_Count in
1)RW_BIOS_configuration ;;
#2) ******* ;;
#3) ******* ;;
#4) ******* ;;
#5) ******* ;;
Cancel start Run Script after the completion of # tests.
*) sed -i '/RUN_OEM_test.sh/d' /etc/rc.d/rc.local
echo OEM Command test completed.
exit ;;
esac
done
###### test functions ######
function RW_BIOS_configuration()
{
# test library files are stored in the OEM_TestLib files of current directory, the entitled Read BIOS of file
Configuration from BMC.csv and Write BIOS configuration to BMC.csv, respectively read
The command set storehouse of BIOS arrange parameters and write-in BIOS arrange parameters.
# test libraries are edited in excel, since identifications of the windows and Linux to file newline is variant, so
First convert file formats are with compatible Linux, and often the CHECK marks at row end represent the enabled of the test item, file in test library
Format compatibilities can influence the judgement to this mark.
dos2unix $Cur_Dir/OEM_TestLib/Read\ BIOS\ configuration\ from\
BMC.csv
dos2unix $Cur_Dir/OEM_TestLib/Write\ BIOS\ configuration\ to\ BMC.csv
# obtains test breakpoint information.
OFFSET_Count=`cat $Cur_Dir/Count.tmp |awk 'NR==2{print $1}'`
CHOISE_Count=`cat $Cur_Dir/Count.tmp |awk 'NR==3{print $1}'`
NO=`cat $Cur_Dir/Count.tmp |awk 'NR==4{print $1}'`
# obtains test command row, and the command line that a byte is first carried out before being circulated into one layer is obtained to judge the test
Whether storehouse, which needs, is tested.
NetFn=`cat $Cur_Dir/OEM_TestLib/Write\ BIOS\ configuration\ to\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $3}'`
while [[ $NetFn != "" ]]
do
# obtains test command row, and the command line that a byte is first carried out before being circulated into two layers is obtained to judge the test
Whether item needs to be tested.
Req3=`cat $Cur_Dir/OEM_TestLib/Write\ BIOS\ configuration\ to\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $7}' |awk -F "/" '{print $'$
CHOISE_Count'}'`
while [[ $Req3 != "" ]]
do
Cache lines of the # by the use of the 5th row of breakpoint file as the content of BIOS setting options, cache lines then enter without content
BIOS sets write phase, and cache lines have content then to enter BIOS setting read phases.
CHOISE_CHECK=`cat $Cur_Dir/Count.tmp |awk 'NR==5{print $1}'`
# write phases
if [[ "$CHOISE_CHECK" == "" ]]; then
# obtains the test command row and CHECK marks of test item title, remainder bytes.
Command=`cat $Cur_Dir/OEM_TestLib/Write\ BIOS\ configuration\ to\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $2}'`
#NetFn=`cat $Cur_Dir/OEM_TestLib/Write\ BIOS\ configuration\ to\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $3}'`
CMD=`cat $Cur_Dir/OEM_TestLib/Write\ BIOS\ configuration\ to\ BMC.csv
|awk -F, 'NR=='$OFFSET_Count'{print $4}'`
Req1=`cat $Cur_Dir/OEM_TestLib/Write\ BIOS\ configuration\ to\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $5}'`
Req2=`cat $Cur_Dir/OEM_TestLib/Write\ BIOS\ configuration\ to\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $6}'`
#Req3=`cat $Cur_Dir/OEM_TestLib/Write\ BIOS\ configuration\ to\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $7}'`
CHECK=`cat $Cur_Dir/OEM_TestLib/Write\ BIOS\ configuration\ to\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $9}' |awk '{print $1}'`
# is without CHECK marks then according to current test library, test item and test option operation writing commands, and by option
Hold the cache lines of write break point file, and reset node.
if [ "$CHECK" != "CHECK" ] ;then
ipmitool raw $NetFn $CMD $Req1 $Req2 $Req3
CHOISE_CHECK=`cat $Cur_Dir/OEM_TestLib/Write\ BIOS\ configuration\
to\ BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $7}' |awk -F "/" '{print $'$
CHOISE_Count'}' |awk -F "0x" '{print $2}'`
sed -i '5c '$CHOISE_CHECK'' $Cur_Dir/Count.tmp
reboot
exit
# has CHECK marks then directly to ignore the test item, and orientation necessary information enters test result output file, and initially
Change is recycled into conditional-variable.
Else
RESULT=N/A
check_raw=""
EXPECT=""
RESPONSE=""
echo "$NO,$Command,#$EXPECT,#$RESPONSE,$RESULT,$check_raw" >>$Cur_
Dir/OEM_Result.csv
sed -i '4c '$[$NO + 1]'' $Cur_Dir/Count.tmp
Req3=""
Fi
Else
# read phases, under normal circumstances, test result is provided in read phase.
# obtains test item title, command line and CHECK marks.
Command=`cat $Cur_Dir/OEM_TestLib/Read\ BIOS\ configuration\ from\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $2}'`
NetFn=`cat $Cur_Dir/OEM_TestLib/Read\ BIOS\ configuration\ from\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $3}'`
CMD=`cat $Cur_Dir/OEM_TestLib/Read\ BIOS\ configuration\ from\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $4}'`
Req1=`cat $Cur_Dir/OEM_TestLib/Read\ BIOS\ configuration\ from\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $5}'`
Req2=`cat $Cur_Dir/OEM_TestLib/Read\ BIOS\ configuration\ from\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $6}'`
Req3=`cat $Cur_Dir/OEM_TestLib/Read\ BIOS\ configuration\ from\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $7}'`
CHECK=`cat $Cur_Dir/OEM_TestLib/Read\ BIOS\ configuration\ from\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $9}' |awk '{print $1}'`
# reads cache lines content as expected value.
EXPECT=`cat $Cur_Dir/Count.tmp |awk 'NR==5{print $1}'`
# initializes return value.
RESPONSE=""
# then, runs corresponding read command without CHECK marks, and return value is identical compared with expected value, and test passes through, assignment
Outcome variable is PASS, and necessary information is oriented into test result output file, stepping test option progress and test aggregate scheduling;
Different then test crash, assigned result variable are FAIL, other operations are same as above.
if [ "$CHECK" != "CHECK" ] ;then
RESPONSE=`ipmitool raw $NetFn $CMD $Req1 $Req2 $Req3`
if [ x"$RESPONSE" = x" 01 $EXPECT" ] ;then
RESULT=PASS
check_raw=""
echo
$NO,$Command,#$EXPECT,#$RESPONSE,$RESULT,$check_raw" >>$Cur_Dir/OEM_
Result.csv
sed -i '4c '$[$NO + 1]'' $Cur_Dir/Count.tmp
sed -i '3c '$[$CHOISE_Count + 1]'' $Cur_Dir/Count.tmp
CHOISE_Count=`cat $Cur_Dir/Count.tmp |awk 'NR==3{print $1}'`
Req3=`cat $Cur_Dir/OEM_TestLib/Write\ BIOS\ configuration\ to\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $7}' |awk -F "/" '{print $'$
CHOISE_Count'}'`
Else
RESULT=FAIL
check_raw="$NetFn $CMD $Req1 $Req2 $Req3"
echo "$NO,$Command,#$EXPECT,#$RESPONSE,$RESULT,$check_raw" >>$
Cur_Dir/OEM_Result.csv
sed -i '4c '$[$NO + 1]'' $Cur_Dir/Count.tmp
sed -i '3c '$[$CHOISE_Count + 1]'' $Cur_Dir/Count.tmp
CHOISE_Count=`cat $Cur_Dir/Count.tmp |awk 'NR==3{print $1}'`
Req3=`cat $Cur_Dir/OEM_TestLib/Write\ BIOS\ configuration\ to\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $7}' |awk -F "/" '{print $'$
CHOISE_Count'}'`
Fi
Else
# has CHECK marks then to ignore current test item, and initialization correlated variables impacts to avoid to follow-up test.
RESULT=N/A
check_raw=""
EXPECT=""
RESPONSE=""
echo "$NO,$Command,#$EXPECT,#$RESPONSE,$RESULT,$check_raw" >>$Cur_
Dir/OEM_Result.csv
Aggregate scheduling is tested in # steppings, and the stepping of test item progress is in the outer completion of two layers of circulation.
sed -i '4c '$[$NO + 1]'' $Cur_Dir/Count.tmp
# control loops enter mark, program is jumped out two layers of circulation.
Req3=""
fi
# initializes cache lines.
sed -i '5d' $Cur_Dir/Count.tmp
echo >>$Cur_Dir/Count.tmp
fi
done
# two layer of circulation is outer, stepping test item progress, initialization test option progress and reacquire test breakpoint and into
Enter the indexed variable of one layer of circulation.
sed -i '2c '$[$OFFSET_Count + 1]'' $Cur_Dir/Count.tmp
sed -i '3c 1' $Cur_Dir/Count.tmp
OFFSET_Count=`cat $Cur_Dir/Count.tmp |awk 'NR==2{print $1}'`
CHOISE_Count=`cat $Cur_Dir/Count.tmp |awk 'NR==3{print $1}'`
NO=`cat $Cur_Dir/Count.tmp |awk 'NR==4{print $1}'`
NetFn=`cat $Cur_Dir/OEM_TestLib/Write\ BIOS\ configuration\ to\
BMC.csv |awk -F, 'NR=='$OFFSET_Count'{print $3}'`
Done
# one layer of circulation is outer, initialization test item progress and stepping test library progress.
sed -i '2c 2' $Cur_Dir/Count.tmp
sed -i '1c '$[$CMD_Count+1]'' $Cur_Dir/Count.tmp
}
Test method and result explanation.
Assign after script can perform authority, direct Run Script, system can restart repeatedly in test process;
When test item expected value is identical with return value, test result PASS;
When there is test item CHECK to indicate(Embodied in library file is tested), ignore current test item, test result is
N/A;
When test item expected value is different from return value, test result FAIL, and made test in check_raw
Command line embodies, easy to manually recheck.
The present invention realizes the completion BMC under Linux platform and passes through OEM orders read-write by automatic test script
The test of BIOS configuration features.Testing process is ensured to restart in test process and is not lost test still by test breakpoint document control
Progress, switches between writing BIOS configuration phases and writing BIOS configuration phases automatically.Built for the OEM specifications that different user issues
Test command Ji Ku, test process are completed by shell script completely, it is no longer necessary to any artificial interaction, i.e. test life
Making the building process of Ji Ku becomes the unique phases that error occurs.Test command Ji Ku is form, easy to safeguard.
To sum up, which has the features such as high-accuracy, high efficiency, high universalizable, is produced suitable for Servers-all
Product, during the BMC of extensive utilization to RACK products is tested at present.
Above-mentioned embodiment is only the specific case of the present invention, and scope of patent protection of the invention includes but not limited to
Above-mentioned embodiment, it is any meet the present invention a kind of LINUX platforms under test b MC by OEM orders read-write BIOS match somebody with somebody
The appropriate change that the those of ordinary skill for putting claims the and any technical fields of the method for function does it
Or replace, it should all fall into the scope of patent protection of the present invention.
Claims (3)
1. a kind of method that test b MC reads and writes BIOS configuration features by OEM orders under LINUX platforms, it is characterised in that it has
Body realizes that process is:
Test environment is built, the build process of the test environment is:Setup test environment first, the test environment include operation and are
Setting option modification confirms in the selection of system, disk partition and the selection of software kit, BIOS;Then the installation for carrying out operating system is matched somebody with somebody
Put, after installing operating system, system carries Ipmitool instruments;
Structure test library file, the test library file content represent that the table content includes by form:Sequence number, command functions
Whether title, access sequence, expected value, test mark, is marked wherein whether testing mark by CHECK, when marking CHECK
When, then ignore the test item;
Testing results library file, the test library file include testing progress breakpoint file and test result output file, Ran Houjin
Row test:
Test program is added into starting up;
Each test library is tested successively, completes backed off after random;
Cancel start testing results program after the completion of test;
Test result is shown in test program;
The detailed process of above-mentioned test library test is:
Test breakpoint information is obtained first;
Judge test library and whether need to be tested, whether the test item in test library needs is tested;
Then cache lines of certain a line of breakpoint file as the content of BIOS setting options are chosen, cache lines then enter without content
BIOS sets write phase, and cache lines have content then to enter BIOS setting read phases;
The detailed process of the write phase is:
Obtain the test command row and CHECK marks of test item title, remainder bytes;
The current test library of basis, test item and the test item operation writing commands of no CHECK marks, and test item content is write
The cache lines of breakpoint file, and restart operating system;
Have CHECK marks then directly ignores the test item, N/A information is write test result output file, and initialize and treat
The test command of test arranges and enters test command row to be tested;
The detailed process of the read phase is:
Obtain test item title, command line and CHECK marks;
Cache lines content is read as expected value;
During no CHECK marks, corresponding read command is run, identical by return value compared with expected value, test passes through, assigned result
Variable is PASS, and writes test result output file, stepping test option progress and test aggregate scheduling;Different then test is lost
Lose, assigned result variable is FAIL, other operations are same as above;
There are CHECK marks then to ignore current test item, initialize stepping testing progress;
Aggregate scheduling is tested in stepping, and circulation is tested.
2. test b MC reads and writes BIOS configuration features by OEM orders under a kind of LINUX platforms according to claim 1
Method, it is characterised in that the filename of the test library file storage is respectively to read BIOS arrange parameters and write-in BIOS to set
Put the command set storehouse of parameter.
3. test b MC reads and writes BIOS configuration features by OEM orders under a kind of LINUX platforms according to claim 1
Method, it is characterised in that before library test is tested, test library file needs to be pre-processed, and the process of the pretreatment is:
Edited in excel, convert file formats are often represented by CHECK marks at row end in test library and are somebody's turn to do with compatible Linux
Test item enables.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510682790.0A CN105224459B (en) | 2015-10-21 | 2015-10-21 | A kind of method that test b MC reads and writes BIOS configuration features by OEM orders under LINUX platforms |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510682790.0A CN105224459B (en) | 2015-10-21 | 2015-10-21 | A kind of method that test b MC reads and writes BIOS configuration features by OEM orders under LINUX platforms |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105224459A CN105224459A (en) | 2016-01-06 |
CN105224459B true CN105224459B (en) | 2018-04-13 |
Family
ID=54993444
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510682790.0A Active CN105224459B (en) | 2015-10-21 | 2015-10-21 | A kind of method that test b MC reads and writes BIOS configuration features by OEM orders under LINUX platforms |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105224459B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105912488B (en) * | 2016-05-20 | 2019-02-05 | 英业达科技有限公司 | Computer installation and its control method |
CN106649005A (en) * | 2016-09-30 | 2017-05-10 | 郑州云海信息技术有限公司 | Automatic pressure testing method of memory ras (Reliability, Availability and Serviceability) characteristics on the basis of shell |
CN107220150A (en) * | 2017-05-27 | 2017-09-29 | 郑州云海信息技术有限公司 | A kind of method of testing and system for changing BIOS option by IPMI instruments based on linux system |
CN110018847B (en) * | 2018-01-10 | 2021-01-12 | 北京思朗科技有限责任公司 | Configurable register and data access method based on same |
CN108199923A (en) * | 2018-01-23 | 2018-06-22 | 平安普惠企业管理有限公司 | Server test method, device, computer equipment and readable storage medium storing program for executing |
CN108768759A (en) * | 2018-04-03 | 2018-11-06 | 郑州云海信息技术有限公司 | A kind of Black-box Testing method and its terminal test platform based on IPMI protocol |
CN108920198B (en) * | 2018-06-29 | 2020-08-21 | 苏州浪潮智能科技有限公司 | Method, system and server for changing system energy efficiency mode in BIOS |
CN113076140B (en) * | 2021-03-26 | 2023-02-28 | 山东英信计算机技术有限公司 | GPIO (general purpose input/output) configuration detection method and device and server |
CN113157594A (en) * | 2021-05-24 | 2021-07-23 | 宁畅信息产业(北京)有限公司 | User permission testing method and device, electronic equipment and storage medium |
CN113776782A (en) * | 2021-08-12 | 2021-12-10 | 惠州Tcl云创科技有限公司 | MTF test method, test equipment and computer readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1369802A (en) * | 2001-02-14 | 2002-09-18 | 英业达股份有限公司 | Method for recording and automatically restoring flow state |
CN104954504A (en) * | 2015-05-05 | 2015-09-30 | 浪潮电子信息产业股份有限公司 | Method for automatically configuring BMC (baseboard management controller) management IP (internet protocol) |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9015455B2 (en) * | 2011-07-07 | 2015-04-21 | Intel Corporation | Processsor integral technologies for BIOS flash attack protection and notification |
-
2015
- 2015-10-21 CN CN201510682790.0A patent/CN105224459B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1369802A (en) * | 2001-02-14 | 2002-09-18 | 英业达股份有限公司 | Method for recording and automatically restoring flow state |
CN104954504A (en) * | 2015-05-05 | 2015-09-30 | 浪潮电子信息产业股份有限公司 | Method for automatically configuring BMC (baseboard management controller) management IP (internet protocol) |
Also Published As
Publication number | Publication date |
---|---|
CN105224459A (en) | 2016-01-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105224459B (en) | A kind of method that test b MC reads and writes BIOS configuration features by OEM orders under LINUX platforms | |
CN105389255B (en) | The automated testing method that a kind of BMC OEM orders return value compares with fix information | |
US8549522B1 (en) | Automated testing environment framework for testing data storage systems | |
CN104980454B (en) | A kind of resource data sharing method, server and system | |
CN112580295A (en) | Automatic verification method, system and device for multi-core SoC chip | |
US9720704B2 (en) | Data driven hardware chips initialization via hardware procedure framework | |
US7647583B2 (en) | Method and apparatus for emulating a hardware/software system using a computer | |
CN107783816A (en) | The method and device that creation method and device, the big data cluster of virtual machine create | |
ITTO980722A1 (en) | PROCEDURE FOR INSTALLING AND / OR VERIFYING THE SOFTWARE FOR A COMPUTER SYSTEM MADE TO ORDER, AND COMPUTER SYSTEM FOR | |
CN102375778A (en) | Method and system for automatically testing digital signal processor (DSP) | |
WO2019134113A1 (en) | Automated test method and system | |
CN107391176B (en) | Efficient configuration data change processing method | |
TW201229749A (en) | An automated operating system test framework | |
CN111045780A (en) | Application migration method suitable for cross-kubernets cluster | |
CN109416667A (en) | With dynamic and configurable response, serial device emulator using two storage levels | |
CN103279408A (en) | RAID (redundant array of inexpensive disk) performance testing method | |
US20240004832A1 (en) | System and method for providing a container environment in a single file | |
CN103176903B (en) | The test method and equipment of MapReduce distributed system program | |
CN109582347B (en) | Method and device for acquiring front-end codes | |
CN112711427A (en) | Method and device for acquiring mirror image file | |
CN113779918A (en) | SoC simulation method, device, computing equipment and computer storage medium | |
CN108334313A (en) | Continuous integrating method, apparatus and code management system for large-scale SOC research and development | |
CN101667126A (en) | Method for burning computer serial number | |
CN115034173A (en) | Test method of chip simulation model | |
CN114997102A (en) | Physical layer verification method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |