2015-09-21 15:52:41 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
2018-03-22 23:10:42 +00:00
|
|
|
rootdir=$(readlink -f $testdir/../..)
|
2018-02-27 22:14:08 +00:00
|
|
|
source $rootdir/test/common/autotest_common.sh
|
2015-09-21 15:52:41 +00:00
|
|
|
|
2019-12-19 23:03:30 +00:00
|
|
|
run_test "env_memory" $testdir/memory/memory_ut
|
|
|
|
run_test "env_vtophys" $testdir/vtophys/vtophys
|
|
|
|
run_test "env_pci" $testdir/pci/pci_ut
|
2017-08-25 20:17:29 +00:00
|
|
|
|
2019-01-22 13:04:30 +00:00
|
|
|
argv="-c 0x1 "
|
2019-06-12 07:48:32 +00:00
|
|
|
if [ $(uname) = Linux ]; then
|
2019-01-10 14:39:50 +00:00
|
|
|
# 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
|
2019-12-19 23:03:30 +00:00
|
|
|
run_test "env_dpdk_post_init" $testdir/env_dpdk_post_init/env_dpdk_post_init $argv
|
2018-12-13 15:54:01 +00:00
|
|
|
|
2019-06-12 07:48:32 +00:00
|
|
|
if [ $(uname) = Linux ]; then
|
2018-12-11 23:34:09 +00:00
|
|
|
# This tests the --match-allocations DPDK parameter which is only
|
|
|
|
# supported on Linux
|
2019-12-19 23:03:30 +00:00
|
|
|
run_test "env_mem_callbacks" $testdir/mem_callbacks/mem_callbacks
|
2018-12-11 23:34:09 +00:00
|
|
|
fi
|