From 24a4dec7f91e9b6f0a8279f6eaeebbb35ba49c4f Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Tue, 9 Aug 2022 14:18:05 +0200 Subject: ci: add functional tests to verification/merge jobs Ref: ICN-732 Signed-off-by: Mauro Sardara Change-Id: Iabfce26c446c502dc1d8f50da0d607791ce392e9 --- scripts/build-packages.sh | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'scripts/build-packages.sh') diff --git a/scripts/build-packages.sh b/scripts/build-packages.sh index d7684e400..a17e180f7 100644 --- a/scripts/build-packages.sh +++ b/scripts/build-packages.sh @@ -1,4 +1,4 @@ -# Copyright (c) 2017-2019 Cisco and/or its affiliates. +# Copyright (c) 2017-2022 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -28,9 +28,9 @@ function build_package() { echo "*******************************************************************" # Make the package - make -C ${SCRIPT_PATH}/.. INSTALL_PREFIX=/usr test package-release + make -C "${SCRIPT_PATH}/.." BUILD_PATH="${SCRIPT_PATH}/../packages" INSTALL_PREFIX=/usr test package-release - pushd ${SCRIPT_PATH}/../build-release-${ID} + pushd ${SCRIPT_PATH}/../packages find . -not -name '*.deb' -not -name '*.rpm' -print0 | xargs -0 rm -rf -- || true rm *Unspecified* *Development* *development* || true popd @@ -40,6 +40,21 @@ function build_package() { echo "*******************************************************************" } +function functional_test() { + echo "*******************************************************************" + echo "********************* STARTING FUNCTIONAL TESTS *******************" + echo "*******************************************************************" + + # Run functional tests + pushd ${SCRIPT_PATH}/.. + BUILD_SOFTWARE=0 DOCKERFILE="tests/Dockerfile.ci" bash ./tests/run-functional.sh + popd + + echo "*******************************************************************" + echo "********** FUNCTIONAL TESTS COMPLETED SUCCESSFULLY ***************" + echo "*******************************************************************" +} + build_sphinx() { setup @@ -69,6 +84,7 @@ case "${1}" in ;; packages) build_package + functional_test ;; *) usage -- cgit 1.2.3-korg