pci_endpoint_test driver creates the Endpoint Test function device (/dev/pci-endpoint-test.0) which will be used by the following pcitest utility.pci_endpoint_test can either be built-in to the kernel or built as a module.
pcitest.sh is too simple.
Do you have any demo about test the mode?