]> git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/test/env/env.sh
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / test / env / env.sh
1 #!/usr/bin/env bash
2
3 testdir=$(readlink -f $(dirname $0))
4 rootdir=$(readlink -f $testdir/../..)
5 source $rootdir/test/common/autotest_common.sh
6
7 run_test "env_memory" $testdir/memory/memory_ut
8 run_test "env_vtophys" $testdir/vtophys/vtophys
9 run_test "env_pci" $testdir/pci/pci_ut
10
11 argv="-c 0x1 "
12 if [ $(uname) = Linux ]; then
13 # The default base virtaddr falls into a region reserved by ASAN.
14 # DPDK will try to find the nearest available address space by
15 # trying to do mmap over and over, which will take ages to finish.
16 # We speed up the process by specifying an address that's not
17 # supposed to be reserved by ASAN. Regular SPDK applications do
18 # this implicitly.
19 argv+="--base-virtaddr=0x200000000000"
20 fi
21 run_test "env_dpdk_post_init" $testdir/env_dpdk_post_init/env_dpdk_post_init $argv
22
23 if [ $(uname) = Linux ]; then
24 # This tests the --match-allocations DPDK parameter which is only
25 # supported on Linux
26 run_test "env_mem_callbacks" $testdir/mem_callbacks/mem_callbacks
27 fi