1#!/usr/bin/env bash 2# SPDX-License-Identifier: BSD-3-Clause 3# Copyright (C) 2018 Intel Corporation 4# All rights reserved. 5# 6testdir=$(readlink -f $(dirname $0)) 7rootdir=$(readlink -f $testdir/../..) 8source $rootdir/test/common/autotest_common.sh 9 10run_test "env_memory" $testdir/memory/memory_ut 11run_test "env_vtophys" $testdir/vtophys/vtophys 12run_test "env_pci" $testdir/pci/pci_ut 13 14argv="-c 0x1 " 15if [ $(uname) = Linux ]; then 16 # The default base virtaddr falls into a region reserved by ASAN. 17 # DPDK will try to find the nearest available address space by 18 # trying to do mmap over and over, which will take ages to finish. 19 # We speed up the process by specifying an address that's not 20 # supposed to be reserved by ASAN. Regular SPDK applications do 21 # this implicitly. 22 argv+="--base-virtaddr=0x200000000000" 23fi 24run_test "env_dpdk_post_init" $testdir/env_dpdk_post_init/env_dpdk_post_init $argv 25 26if [ $(uname) = Linux ]; then 27 # This tests the --match-allocations DPDK parameter which is only 28 # supported on Linux 29 run_test "env_mem_callbacks" $testdir/mem_callbacks/mem_callbacks 30fi 31