]>
git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/test/env/env.sh
3 testdir
=$
(readlink
-f $
(dirname $0))
4 rootdir
=$
(readlink
-f $testdir/..
/..
)
5 source $rootdir/test
/common
/autotest_common.sh
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
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
19 argv
+="--base-virtaddr=0x200000000000"
21 run_test
"env_dpdk_post_init" $testdir/env_dpdk_post_init
/env_dpdk_post_init
$argv
23 if [ $
(uname
) = Linux
]; then
24 # This tests the --match-allocations DPDK parameter which is only
26 run_test
"env_mem_callbacks" $testdir/mem_callbacks
/mem_callbacks