The invention discloses a compression and decompression
test platform and method based on special hardware, virtual
electronic equipment and a storage medium, the platform is deployed in a computing
system comprising a special compression and decompression hardware unit, and a kernel mode driving module is in communication connection with the special compression and decompression hardware unit. The user mode
test program module is connected with the kernel mode drive module through a character device interface; registering a character device to create an interface with the dedicated compression / decompression hardware unit; in response to a user mode instruction received through character equipment, distributing a
source data buffer area and a target
data buffer area through a DMA-BUF HEAP mechanism; establishing a zero-copy
shared memory channel of a user mode and a kernel mode; writing the to-be-tested data into a
source data buffer area; allocating a
shared memory buffer area and managing for compression and decompression operations by utilizing a DMA
memory management mechanism of the kernel; and determining a test mode,
processing the target and outputting a test result. Repeated development of test tools is avoided, and cost is saved.