autopackage: Move packaging test to autobuild
Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: Ifbe4d98f3d7a4b9970f923acd6d299d9cc02d350 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17206 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
7cdf6b7377
commit
fa633b2825
@ -4,21 +4,8 @@
|
|||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# If the configuration of tests is not provided, no tests will be carried out.
|
|
||||||
if [[ ! -f $1 ]]; then
|
|
||||||
echo "ERROR: SPDK test configuration not specified"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
source "$1"
|
|
||||||
|
|
||||||
rootdir=$(readlink -f $(dirname $0))
|
rootdir=$(readlink -f $(dirname $0))
|
||||||
testdir=$rootdir # to get the storage space for tests
|
source "$rootdir/test/common/autobuild_common.sh"
|
||||||
source "$rootdir/test/common/autotest_common.sh"
|
|
||||||
|
|
||||||
out=$PWD
|
|
||||||
|
|
||||||
MAKEFLAGS=${MAKEFLAGS:--j16}
|
MAKEFLAGS=${MAKEFLAGS:--j16}
|
||||||
cd $rootdir
|
cd $rootdir
|
||||||
@ -36,7 +23,7 @@ fi
|
|||||||
timing_exit porcelain_check
|
timing_exit porcelain_check
|
||||||
|
|
||||||
if [[ $SPDK_TEST_RELEASE_BUILD -eq 1 ]]; then
|
if [[ $SPDK_TEST_RELEASE_BUILD -eq 1 ]]; then
|
||||||
run_test "packaging" $rootdir/test/packaging/packaging.sh
|
build_packaging
|
||||||
$MAKE clean
|
$MAKE clean
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -436,6 +436,10 @@ build_native_dpdk() {
|
|||||||
run_test "build_native_dpdk" _build_native_dpdk
|
run_test "build_native_dpdk" _build_native_dpdk
|
||||||
}
|
}
|
||||||
|
|
||||||
|
build_packaging() {
|
||||||
|
run_test "packaging" "$rootdir/test/packaging/packaging.sh"
|
||||||
|
}
|
||||||
|
|
||||||
out=$output_dir
|
out=$output_dir
|
||||||
SPDK_WORKSPACE=$(mktemp -dt "spdk_$(date +%s).XXXXXX")
|
SPDK_WORKSPACE=$(mktemp -dt "spdk_$(date +%s).XXXXXX")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user