Allow to run AUTOBUILD test in two versions: * full - original one * tiny - minimalistic, currently only check format and check so deps We want to reduce first phase of per-patch (called Pre-Tests) by running only basic tests. To accomplish that we will run autobuild test in tiny version. Full version will be executed in second phase of per-patch (called Tests). Signed-off-by: Pawel Piatek <pawelx.piatek@intel.com> Change-Id: I87d503ec272080ab238cf5129c44f92d8bb690ed Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14481 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-by: Michal Berger <michal.berger@intel.com>
29 lines
580 B
Bash
Executable File
29 lines
580 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
|
|
source "$conf"
|
|
|
|
echo "Test configuration:"
|
|
cat "$conf"
|
|
|
|
# Runs agent scripts
|
|
$rootdir/autobuild.sh "$conf"
|
|
if ((SPDK_TEST_UNITTEST == 1 || SPDK_RUN_FUNCTIONAL_TEST == 1)); then
|
|
sudo -E $rootdir/autotest.sh "$conf"
|
|
fi
|
|
|
|
if [[ $SPDK_TEST_AUTOBUILD != 'tiny' ]]; then
|
|
$rootdir/autopackage.sh "$conf"
|
|
fi
|