diff options
author | Luca Muscariello <muscariello@ieee.org> | 2022-08-10 18:25:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2022-08-10 18:25:53 +0000 |
commit | 86b55b5095488b4ade662a03234e6d084c170458 (patch) | |
tree | 33a65a68548458a5101f206be183feefbf64fa67 /scripts/build-packages.sh | |
parent | c7d2d5d49f79c49614ec154199708f6488ba7ad6 (diff) | |
parent | 24a4dec7f91e9b6f0a8279f6eaeebbb35ba49c4f (diff) |
Merge "ci: add functional tests to verification/merge jobs"
Diffstat (limited to 'scripts/build-packages.sh')
-rw-r--r-- | scripts/build-packages.sh | 22 |
1 files changed, 19 insertions, 3 deletions
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 |