From: svaidhya Date: Wed, 29 Jan 2025 07:00:50 +0000 (+0000) Subject: SonarQube Issue X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=143dbbf20b7424daaefa08590b221fbe025a495b;p=o-du%2Fl2.git SonarQube Issue Change-Id: I281deb24f5916fdfcaf3afdd986b5f3effb86400 Signed-off-by: svaidhya --- diff --git a/.github/workflows/gerrit-novote-merge.yaml b/.github/workflows/gerrit-novote-merge.yaml index 1c6eb2caf..30a6d4f4a 100644 --- a/.github/workflows/gerrit-novote-merge.yaml +++ b/.github/workflows/gerrit-novote-merge.yaml @@ -86,7 +86,7 @@ jobs: GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }} JDK_VERSION: "17" # yamllint disable-line rule:line-length - PRE_BUILD_SCRIPT_URL: "https://raw.githubusercontent.com/o-ran-sc/ci-management/master/jjb/com-log/setup-com-log-build-deb.sh" + PRE_BUILD_SCRIPT_URL: "https://github.com/o-ran-sc/o-du-l2/blob/master/setup-com-log-build-deb.sh" SONAR_ARGS: > -Dsonar.organization=o-ran-sc -Dsonar.projectKey=o-ran-sc_o-du-l2 diff --git a/CMakeLists.txt b/CMakeLists.txt index e5561c093..fe58d4e53 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ #sonar qube testing -project( odu-l2 ) cmake_minimum_required( VERSION 2.8.12.2) +project( odu-l2 ) #No unit test present in this framework TBD in further releases. enable_testing() add_test(NAME drive_unit_tests COMMAND bash ../test/unit_test.sh) diff --git a/setup-com-log-build-deb.sh b/setup-com-log-build-deb.sh new file mode 100644 index 000000000..5aab792a2 --- /dev/null +++ b/setup-com-log-build-deb.sh @@ -0,0 +1,34 @@ +#!/bin/bash +############################################################################## +# +# Copyright (c) 2020 AT&T Intellectual Property. +# Copyright (c) 2020 Nokia. +# +# 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 +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +############################################################################## + +# Installs prerequisites needed to compile & test com/log code +# and build RPM/DEB packages on a Debian/Ubuntu machine. + +echo "--> setup-com-log-build-deb.sh" + +# Ensure we fail the job if any steps fail. +set -eux -o pipefail + +# install prereqs +sudo apt-get update && sudo apt-get -q -y install \ + autoconf-archive libjsoncpp-dev rpm valgrind + +echo "--> setup-com-log-build-deb.sh ends" +