Add a new test flag SPDK_RUN_NON_ROOT forcing some of the SPDK applications to run as an unprivileged user. For now we implement it in nvmf tests. If enabled, nvmf_tgt will run as the user who invoked `sudo ./autotest.sh`. Running SPDK as non-root has two major prerequisites right now: * there must be an IOMMU in the system in order to use PCI devices * DPDK version must be either < 18.05 or >= 19.08-rc1 Change-Id: If1ba9dfcc09fc6cac059867408a1b54eddecfb4b Signed-off-by: Ben Walker <benjamin.walker@intel.com> Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/454679 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
host | ||
target | ||
common.sh | ||
nvmf.sh | ||
README.md |
NVMe-oF test scripts
The test scripts in this directory hierarchy can be run in isolation by passing the --iso flag when running the test script. This will set up the RDMA NIC for testing and then tear it back down again when the test is completed.