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