]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #!/usr/bin/env bash |
2 | ||
7c673cae | 3 | testdir=$(readlink -f $(dirname $0)) |
11fdf7f2 TL |
4 | rootdir=$(readlink -f $testdir/../..) |
5 | source $rootdir/test/common/autotest_common.sh | |
7c673cae | 6 | |
f67539c2 TL |
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 | |
7c673cae | 10 | |
9f95a23c | 11 | argv="-c 0x1 " |
f67539c2 | 12 | if [ $(uname) = Linux ]; then |
9f95a23c TL |
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 | |
f67539c2 | 21 | run_test "env_dpdk_post_init" $testdir/env_dpdk_post_init/env_dpdk_post_init $argv |
9f95a23c | 22 | |
f67539c2 | 23 | if [ $(uname) = Linux ]; then |
9f95a23c TL |
24 | # This tests the --match-allocations DPDK parameter which is only |
25 | # supported on Linux | |
f67539c2 | 26 | run_test "env_mem_callbacks" $testdir/mem_callbacks/mem_callbacks |
9f95a23c | 27 | fi |