numam-spdk/test/lib/env/env.sh
Ben Walker 10f9391a22 test: Shorten some relative paths using readlink
Core dumps stop working if the path is longer than 64 bytes.
Use readlink to shorten some of the very long relative paths.

Change-Id: I5e7eb6580ca581c5ac3a71afb7b62953836e2660
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
2017-04-07 08:14:34 -07:00

20 lines
306 B
Bash
Executable File

#!/usr/bin/env bash
set -e
testdir=$(readlink -f $(dirname $0))
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
timing_enter env
timing_enter vtophys
$testdir/vtophys/vtophys
timing_exit vtophys
timing_enter pci
$testdir/pci/pci_ut
timing_exit pci
timing_exit env