Commit 5bbac65d authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Jim Harris
Browse files

autorun: make config setup common to all scripts



Change-Id: I0e497953164012ea2887f3bf1f4d91b783d6b6e5
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent bf2795c6
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -4,7 +4,9 @@ set -e

rootdir=$(readlink -f $(dirname $0))

conf=~/autorun-spdk.conf

# Runs agent scripts
$rootdir/autobuild.sh
sudo $rootdir/autotest.sh ~/autorun-spdk.conf
$rootdir/autopackage.sh
$rootdir/autobuild.sh "$conf"
sudo $rootdir/autotest.sh "$conf"
$rootdir/autopackage.sh "$conf"
+0 −17
Original line number Diff line number Diff line
#!/usr/bin/env bash

if [[ ! -z $1 ]]; then
	if [ -f $1 ]; then
		source $1
	fi
fi

# Set defaults for missing test config options
: ${SPDK_TEST_ISCSI=1}; export SPDK_TEST_ISCSI
: ${SPDK_TEST_NVME=1}; export SPDK_TEST_NVME
: ${SPDK_TEST_NVMF=1}; export SPDK_TEST_NVMF
: ${SPDK_TEST_VHOST=1}; export SPDK_TEST_VHOST
: ${SPDK_TEST_BLOCKDEV=1}; export SPDK_TEST_BLOCKDEV
: ${SPDK_TEST_IOAT=1}; export SPDK_TEST_IOAT
: ${SPDK_TEST_EVENT=1}; export SPDK_TEST_EVENT
: ${SPDK_TEST_BLOBFS=1}; export SPDK_TEST_BLOBFS


rootdir=$(readlink -f $(dirname $0))
source "$rootdir/scripts/autotest_common.sh"
source "$rootdir/test/nvmf/common.sh"
+16 −0
Original line number Diff line number Diff line
@@ -3,6 +3,22 @@ ulimit -c unlimited

export RUN_NIGHTLY=0

if [[ ! -z $1 ]]; then
	if [ -f $1 ]; then
		source $1
	fi
fi

# Set defaults for missing test config options
: ${SPDK_TEST_ISCSI=1}; export SPDK_TEST_ISCSI
: ${SPDK_TEST_NVME=1}; export SPDK_TEST_NVME
: ${SPDK_TEST_NVMF=1}; export SPDK_TEST_NVMF
: ${SPDK_TEST_VHOST=1}; export SPDK_TEST_VHOST
: ${SPDK_TEST_BLOCKDEV=1}; export SPDK_TEST_BLOCKDEV
: ${SPDK_TEST_IOAT=1}; export SPDK_TEST_IOAT
: ${SPDK_TEST_EVENT=1}; export SPDK_TEST_EVENT
: ${SPDK_TEST_BLOBFS=1}; export SPDK_TEST_BLOBFS

config_params='--enable-debug --enable-werror'

export UBSAN_OPTIONS='halt_on_error=1:print_stacktrace=1:abort_on_error=1'