Skip to content

Commit

Permalink
autopackage: Move packaging test to autobuild
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Berger <[email protected]>
Change-Id: Ifbe4d98f3d7a4b9970f923acd6d299d9cc02d350
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17206
Tested-by: SPDK CI Jenkins <[email protected]>
Reviewed-by: Konrad Sztyber <[email protected]>
Reviewed-by: Jim Harris <[email protected]>
  • Loading branch information
mikeBashStuff authored and jimharris committed Apr 14, 2023
1 parent 095f406 commit 8ad6098
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
17 changes: 2 additions & 15 deletions autopackage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
4 changes: 4 additions & 0 deletions test/common/autobuild_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 8ad6098

Please sign in to comment.