The invention relates to a test method and
system for a power-down protection function of a storage
server mainboard. The test method and
system are applied to a storage
server supporting an
NVDIMM. The method comprises the steps that before power-down of the storage
server mainboard, first data is written into a memory space of the
NVDIMM through an memset2.efi command; the storage server mainboard is powered down; after a certain time threshold of a time interval, the storage server mainboard is powered on again; second data in the memory space of the
NVDIMM is output through an memcheck2.efi command, and the first data is compared with the second data; and if the first data and the second data are identical, it is judged that the power-down protection function of the storage server mainboard is qualified, and otherwise it is judged that the power-down protection function of the storage server mainboard is not qualified. The
system comprises a data writing module, a power-down control module, a secondary power-on module, a data output and comparison module and a power-down protection function judgment module. The test method and system are high in test coverage, good in test portability, easy to operate and convenient to popularize.