allows us to remove a lot of extra timing_* calls. The next several commits are aimed at converting the majority of the tests to this single framework of using the run_test suite or run_test case function calls. Hopefully it makes it much easier to understand the logs over time. Change-Id: I6d46982108be469a05f70c24b373e60726aa061e Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/476805 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
30 lines
1.0 KiB
Bash
Executable File
30 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
|
rootdir=$(readlink -f $testdir/../..)
|
|
source $rootdir/test/common/autotest_common.sh
|
|
|
|
run_test "case" "env_memory" $testdir/memory/memory_ut
|
|
run_test "case" "env_vtophys" $testdir/vtophys/vtophys
|
|
run_test "case" "env_pci" $testdir/pci/pci_ut
|
|
|
|
argv="-c 0x1 "
|
|
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
|
|
run_test "case" "env_dpdk_post_init" $testdir/env_dpdk_post_init/env_dpdk_post_init $argv
|
|
|
|
if [ $(uname) = Linux ]; then
|
|
# This tests the --match-allocations DPDK parameter which is only
|
|
# supported on Linux
|
|
run_test "case" "env_mem_callbacks" $testdir/mem_callbacks/mem_callbacks
|
|
fi
|
|
|
|
report_test_completion "env"
|