2015-09-21 15:52:41 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2016-01-05 22:31:56 +00:00
|
|
|
set -e
|
|
|
|
|
2015-09-21 15:52:41 +00:00
|
|
|
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
|
|
|
|
2016-08-10 17:21:45 +00:00
|
|
|
timing_enter env
|
2015-10-08 19:40:44 +00:00
|
|
|
|
2017-08-25 20:17:29 +00:00
|
|
|
timing_enter memory
|
|
|
|
$testdir/memory/memory_ut
|
|
|
|
timing_exit memory
|
|
|
|
|
2015-10-08 19:40:44 +00:00
|
|
|
timing_enter vtophys
|
2016-11-22 20:03:26 +00:00
|
|
|
$testdir/vtophys/vtophys
|
2015-10-08 19:40:44 +00:00
|
|
|
timing_exit vtophys
|
|
|
|
|
2016-11-22 19:55:55 +00:00
|
|
|
timing_enter pci
|
|
|
|
$testdir/pci/pci_ut
|
|
|
|
timing_exit pci
|
|
|
|
|
2018-12-13 15:54:01 +00:00
|
|
|
timing_enter env_dpdk_post_init
|
2019-01-22 13:04:30 +00:00
|
|
|
argv="-c 0x1 "
|
2019-01-10 14:39:50 +00:00
|
|
|
if [ `uname` = Linux ]; then
|
|
|
|
# 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
|
|
|
|
$testdir/env_dpdk_post_init/env_dpdk_post_init $argv
|
2018-12-13 15:54:01 +00:00
|
|
|
timing_exit env_dpdk_post_init
|
|
|
|
|
2018-12-11 23:34:09 +00:00
|
|
|
if [ `uname` = Linux ]; then
|
|
|
|
# This tests the --match-allocations DPDK parameter which is only
|
|
|
|
# supported on Linux
|
|
|
|
timing_enter mem_callbacks
|
|
|
|
$testdir/mem_callbacks/mem_callbacks
|
|
|
|
timing_exit mem_callbacks
|
|
|
|
fi
|
|
|
|
|
2017-12-18 21:20:41 +00:00
|
|
|
report_test_completion "env"
|
2016-08-10 17:21:45 +00:00
|
|
|
timing_exit env
|