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:
Michal Berger 2023-03-15 11:52:05 +01:00 committed by David Ko
parent 7cdf6b7377
commit fa633b2825
2 changed files with 6 additions and 15 deletions

View File

@ -4,21 +4,8 @@
# 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))
testdir=$rootdir # to get the storage space for tests
source "$rootdir/test/common/autotest_common.sh"
out=$PWD
source "$rootdir/test/common/autobuild_common.sh"
MAKEFLAGS=${MAKEFLAGS:--j16}
cd $rootdir
@ -36,7 +23,7 @@ fi
timing_exit porcelain_check
if [[ $SPDK_TEST_RELEASE_BUILD -eq 1 ]]; then
run_test "packaging" $rootdir/test/packaging/packaging.sh
build_packaging
$MAKE clean
fi

View File

@ -436,6 +436,10 @@ build_native_dpdk() {
run_test "build_native_dpdk" _build_native_dpdk
}
build_packaging() {
run_test "packaging" "$rootdir/test/packaging/packaging.sh"
}
out=$output_dir
SPDK_WORKSPACE=$(mktemp -dt "spdk_$(date +%s).XXXXXX")