82c0c8ca03
Allow to pass configuration file as first parameter with
fallback to previous behaviour where config file is read
from home directory.
Signed-off-by: Pawel Piatek <pawelx.piatek@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6361 (master)
(cherry picked from commit 23c8f667a2
)
Change-Id: I45972b04fe5fc978bf3b2bede45aae363be3069c
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6545
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: <dongx.yi@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
23 lines
440 B
Bash
Executable File
23 lines
440 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
rootdir=$(readlink -f $(dirname $0))
|
|
|
|
default_conf=~/autorun-spdk.conf
|
|
conf=${1:-${default_conf}}
|
|
|
|
# If the configuration of tests is not provided, no tests will be carried out.
|
|
if [[ ! -f $conf ]]; then
|
|
echo "ERROR: $conf doesn't exist"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Test configuration:"
|
|
cat "$conf"
|
|
|
|
# Runs agent scripts
|
|
$rootdir/autobuild.sh "$conf"
|
|
sudo -E $rootdir/autotest.sh "$conf"
|
|
$rootdir/autopackage.sh "$conf"
|