Commit 5681ff04 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Ben Walker
Browse files

autorun: add per-agent test configurations



Allow agents to selectively enable which tests they run in an optional
file, ~/autorun-spdk.conf.

Change-Id: I52440884cbe599aeb1270dc4f6ee85f5acb9a0c2
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Signed-off-by: default avatarSeth Howell <seth.howell@intel.com>
parent 73c95f54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,5 +6,5 @@ rootdir=$(readlink -f $(dirname $0))

# Runs agent scripts
$rootdir/autobuild.sh
sudo $rootdir/autotest.sh
sudo $rootdir/autotest.sh ~/autorun-spdk.conf
$rootdir/autopackage.sh
+62 −30
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


rootdir=$(readlink -f $(dirname $0))
source "$rootdir/scripts/autotest_common.sh"
source "$rootdir/test/nvmf/common.sh"
@@ -78,20 +94,32 @@ timing_exit unittest

timing_enter lib

if [ $SPDK_TEST_BLOCKDEV -eq 1 ]; then
	run_test test/lib/bdev/blockdev.sh
fi

if [ $SPDK_TEST_EVENT -eq 1 ]; then
	run_test test/lib/event/event.sh
fi

if [ $SPDK_TEST_NVME -eq 1 ]; then
	run_test test/lib/nvme/nvme.sh
	if [ $RUN_NIGHTLY -eq 1 ]; then
		run_test test/lib/nvme/hotplug.sh intel
		run_test test/lib/nvme/nvmemp.sh
	fi
fi

run_test test/lib/env/env.sh

if [ $SPDK_TEST_IOAT -eq 1 ]; then
	run_test test/lib/ioat/ioat.sh
fi

timing_exit lib


if [ $(uname -s) = Linux ]; then
if [ $(uname -s) = Linux ] && [ $SPDK_TEST_ISCSI -eq 1 ]; then
	export TARGET_IP=127.0.0.1
	export INITIATOR_IP=127.0.0.1

@@ -112,6 +140,7 @@ if [ $(uname -s) = Linux ]; then
	run_test test/lib/iscsi/iscsi.sh
fi

if [ $SPDK_TEST_NVMF -eq 1 ]; then
	timing_enter nvmf

	run_test test/nvmf/fio/fio.sh
@@ -137,10 +166,13 @@ run_test test/nvmf/host/identify_kernel_nvmf.sh
	timing_exit host

	timing_exit nvmf
fi

if [ $SPDK_TEST_VHOST -eq 1 ]; then
	timing_enter vhost
	run_test ./test/vhost/spdk_vhost.sh --integrity
	timing_exit vhost
fi

timing_enter cleanup
rbd_cleanup