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>
This commit is contained in:
Ben Walker 2017-04-04 16:20:16 -07:00 committed by Daniel Verkamp
parent 9d73eed8a6
commit 10f9391a22
19 changed files with 20 additions and 20 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
testdir=$(readlink -f $(dirname $0))
rootdir=$testdir/../../..
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
DB_BENCH_DIR=/usr/src/rocksdb

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
testdir=$(readlink -f $(dirname $0))
rootdir=$testdir/../../..
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
if [ ! -d /usr/local/calsoft ]; then

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
testdir=$(readlink -f $(dirname $0))
rootdir=$testdir/../../..
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
if [ ! -z $1 ]; then

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
testdir=$(readlink -f $(dirname $0))
rootdir=$testdir/../../..
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
if [ -z "$TARGET_IP" ]; then

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
testdir=$(readlink -f $(dirname $0))
rootdir=$testdir/../../..
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
function running_config() {

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
testdir=$(readlink -f $(dirname $0))
rootdir=$testdir/../../..
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
if [ -z "$TARGET_IP" ]; then

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
testdir=$(readlink -f $(dirname $0))
rootdir=$testdir/../../..
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
if [ -z "$TARGET_IP" ]; then

View File

@ -3,7 +3,7 @@
set -e
testdir=$(readlink -f $(dirname $0))
rootdir=$testdir/../../..
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
source $rootdir/test/nvmf/common.sh

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
testdir=$(readlink -f $(dirname $0))
rootdir=$testdir/../../..
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
if [ ! -d $CEPH_DIR ]; then

View File

@ -3,7 +3,7 @@
set -xe
testdir=$(readlink -f $(dirname $0))
rootdir=$testdir/../../..
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
if [ -z "$TARGET_IP" ]; then

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
testdir=$(readlink -f $(dirname $0))
rootdir=$testdir/../../..
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
if [ -z "$TARGET_IP" ]; then

View File

@ -3,7 +3,7 @@
set -e
testdir=$(readlink -f $(dirname $0))
rootdir=$testdir/../../..
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
testdir=$(readlink -f $(dirname $0))

2
test/lib/env/env.sh vendored
View File

@ -3,7 +3,7 @@
set -e
testdir=$(readlink -f $(dirname $0))
rootdir=$testdir/../../..
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
timing_enter env

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
testdir=$(readlink -f $(dirname $0))
rootdir=$testdir/../../..
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
timing_enter event

View File

@ -3,7 +3,7 @@
set -xe
testdir=$(readlink -f $(dirname $0))
rootdir="$testdir/../../.."
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
timing_enter ioat

View File

@ -3,7 +3,7 @@
set -xe
testdir=$(readlink -f $(dirname $0))
rootdir="$testdir/../../.."
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
function ssh_vm() {

View File

@ -3,7 +3,7 @@
set -e
testdir=$(readlink -f $(dirname $0))
rootdir="$testdir/../../.."
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
function linux_iter_pci {

View File

@ -3,7 +3,7 @@
set -e
testdir=$(readlink -f $(dirname $0))
rootdir="$testdir/../../.."
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/scripts/autotest_common.sh
if [ $(uname -s) = Linux ]; then

View File

@ -1,8 +1,8 @@
#!/usr/bin/env bash
basedir=$(readlink -f $(dirname $0))
rootdir=$basedir/../../..
testdir=$rootdir/..
rootdir=$(readlink -f $basedir/../../..)
testdir=$(readlink -f $rootdir/..)
qemu_src_dir="$testdir/qemu"
qemu_build_dir="$testdir/qemu/build"
qemu_install_dir="$testdir/root"