summaryrefslogtreecommitdiffstats
path: root/src/spdk/test/env/env.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:45:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:45:59 +0000
commit19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch)
tree42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/spdk/test/env/env.sh
parentInitial commit. (diff)
downloadceph-6d07fdb6bb33b1af39833b850bb6cf8af79fe293.tar.xz
ceph-6d07fdb6bb33b1af39833b850bb6cf8af79fe293.zip
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/spdk/test/env/env.sh')
-rwxr-xr-xsrc/spdk/test/env/env.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/spdk/test/env/env.sh b/src/spdk/test/env/env.sh
new file mode 100755
index 000000000..696c14b08
--- /dev/null
+++ b/src/spdk/test/env/env.sh
@@ -0,0 +1,27 @@
+#!/usr/bin/env bash
+
+testdir=$(readlink -f $(dirname $0))
+rootdir=$(readlink -f $testdir/../..)
+source $rootdir/test/common/autotest_common.sh
+
+run_test "env_memory" $testdir/memory/memory_ut
+run_test "env_vtophys" $testdir/vtophys/vtophys
+run_test "env_pci" $testdir/pci/pci_ut
+
+argv="-c 0x1 "
+if [ $(uname) = Linux ]; then
+ # The default base virtaddr falls into a region reserved by ASAN.
+ # DPDK will try to find the nearest available address space by
+ # trying to do mmap over and over, which will take ages to finish.
+ # We speed up the process by specifying an address that's not
+ # supposed to be reserved by ASAN. Regular SPDK applications do
+ # this implicitly.
+ argv+="--base-virtaddr=0x200000000000"
+fi
+run_test "env_dpdk_post_init" $testdir/env_dpdk_post_init/env_dpdk_post_init $argv
+
+if [ $(uname) = Linux ]; then
+ # This tests the --match-allocations DPDK parameter which is only
+ # supported on Linux
+ run_test "env_mem_callbacks" $testdir/mem_callbacks/mem_callbacks
+fi