Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #6008

Open
wants to merge 47 commits into
base: sprint/25Q1
Choose a base branch
from
Open

test #6008

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
a36d154
test
agampa263 Jan 15, 2025
8cfd673
Update CMakeLists.txt
agampa263 Jan 15, 2025
f88e774
Update AVInput.cpp
agampa263 Jan 17, 2025
be74dbf
Update CMakeLists.txt
agampa263 Jan 19, 2025
ad8f78c
Create buildrdkservies.sh
agampa263 Jan 19, 2025
7119fd8
Update CMakeLists.txt
agampa263 Jan 19, 2025
655ca9b
Update DeviceIdentification.h
agampa263 Jan 20, 2025
ebac34c
Update DeviceIdentification.cpp
agampa263 Jan 20, 2025
6c6034b
Update DeviceIdentification.cpp
agampa263 Jan 20, 2025
02b368b
Update DeviceIdentification.cpp
agampa263 Jan 22, 2025
e975877
Update DeviceIdentification.cpp
agampa263 Jan 22, 2025
9807d9c
testingnew
agampa263 Jan 23, 2025
0e74935
Merge branch 'sprint/25Q1' of https://github.com/agampa263/rdkservice…
agampa263 Jan 23, 2025
ba3afef
changes
agampa263 Jan 23, 2025
584968f
test
agampa263 Jan 23, 2025
06fe342
tesing
agampa263 Jan 23, 2025
a1d604c
test
agampa263 Jan 23, 2025
5edfe36
rdkcentral
agampa263 Jan 23, 2025
da2a811
test
agampa263 Jan 23, 2025
70fa450
rdkshell
agampa263 Jan 23, 2025
92fb5a5
fixed
agampa263 Jan 23, 2025
9be2ff5
test
agampa263 Jan 23, 2025
b905168
test
agampa263 Jan 23, 2025
0e900cc
usbaccess
agampa263 Jan 23, 2025
f01b5c2
DATACAPTURE
agampa263 Jan 23, 2025
5cf47b8
test
agampa263 Jan 23, 2025
728ee10
TEXTTOSPEECH
agampa263 Jan 23, 2025
4ec61db
SCREENCAPTURE
agampa263 Jan 23, 2025
02bf0e7
DEVICEDIAGNOSTICS
agampa263 Jan 23, 2025
8811972
LOCATIONSYNC
agampa263 Jan 26, 2025
79f1b67
TELEMETRY
agampa263 Jan 26, 2025
142d2de
USBACCESS
agampa263 Jan 28, 2025
6620669
USERPREFERENCES
agampa263 Jan 28, 2025
ecefee8
DEVICEINFO
agampa263 Jan 28, 2025
2044a64
WAREHOUSE
agampa263 Jan 28, 2025
75eafff
SYSTEMAUDIOPLAYER
agampa263 Jan 28, 2025
20c3759
MIRACAST
agampa263 Jan 28, 2025
0024e85
FRAMERATE
agampa263 Jan 28, 2025
d87720e
AVINPUT
agampa263 Jan 28, 2025
c3d4ed3
SYSTEMAUDIOPLAYER
agampa263 Jan 28, 2025
038256f
BLUETOOTH
agampa263 Jan 28, 2025
9001f2c
HDMIINPUT
agampa263 Jan 30, 2025
f8a06a6
test
agampa263 Jan 30, 2025
74df9cf
test
agampa263 Jan 30, 2025
273c880
DEVICEINFO
agampa263 Jan 31, 2025
99aacf1
NETWORK
agampa263 Jan 31, 2025
1dd914a
DATACAPTURE
agampa263 Jan 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/native_full_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build Component in Native Environment RDKServices

on:
pull_request:
branches: [ 'sprint/**' ]
paths: ['**/*.c', '**/*.cpp', '**/*.cc', '**/*.cxx', '**/*.h', '**/*.hpp']

jobs:
build-breakpad-wrapper-on-pr:
name: Build RDKServices component in github rdkcentral
runs-on: ubuntu-latest
container:
image: ghcr.io/rdkcentral/docker-rdk-ci:latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: native build
run: |
chmod +x cov_build.sh
sh -e cov_build.sh
2 changes: 1 addition & 1 deletion AVInput/AVInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* limitations under the License.
**/

#include "AVInput.h"
#include "AVInput.h
#include "dsMgr.h"
#include "hdmiIn.hpp"
#include "compositeIn.hpp"
Expand Down
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

###
# If not stated otherwise in this file or this component's LICENSE
# file the following copyright and licenses apply:
Expand All @@ -18,8 +19,9 @@
###

cmake_minimum_required(VERSION 3.3)
project (rdkservices VERSION 1.0 LANGUAGES C CXX)

find_package(WPEFramework)
find_package(WPEFramework NAMES WPEFramework Thunder)

# All packages that did not deliver a CMake Find script (and some deprecated scripts that need to be removed)
# are located in the cmake directory. Include it in the search.
Expand All @@ -36,7 +38,7 @@ endif()

option(PLUGIN_OCICONTAINER "Include OCIContainer plugin" OFF)

if(RDK_SERVICES_L1_TEST)
if(RDK_SERVICES_L1_TEST OR RDK_SERVICES_COVERITY)
include(l1tests.cmake)
endif()

Expand Down Expand Up @@ -417,6 +419,7 @@ if(PLUGIN_CONTENTPROTECTION)
add_subdirectory(ContentProtection)
endif()


if(WPEFRAMEWORK_CREATE_IPKG_TARGETS)
set(CPACK_GENERATOR "DEB")
set(CPACK_DEB_COMPONENT_INSTALL ON)
Expand Down
5 changes: 1 addition & 4 deletions DeviceIdentification/DeviceIdentification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@
#include "tracing/Logging.h"
#include "UtilsJsonRpc.h"
#include "UtilsController.h"
#ifdef USE_THUNDER_R4
#include <interfaces/IDeviceInfo.h>
#else
#include <interfaces/IDeviceInfo2.h>
#endif /* USE_THUNDER_R4 */


#define API_VERSION_NUMBER_MAJOR 1
#define API_VERSION_NUMBER_MINOR 0
Expand Down
3 changes: 0 additions & 3 deletions DeviceIdentification/DeviceIdentification.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
#pragma once

#include "Module.h"
#ifndef USE_THUNDER_R4
#include <interfaces/IDeviceIdentification.h>
#endif /* USE_THUNDER_R4 */
#include <interfaces/json/JsonData_DeviceIdentification.h>

namespace WPEFramework {
Expand Down
191 changes: 191 additions & 0 deletions buildrdkservies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
#!/bin/bash
set -e

############################
# EXPERIMENTAL
# DO NOT MODIFY

############################
# 1. Install Dependencies

apt install -y build-essential cmake ninja-build meson libusb-1.0-0-dev zlib1g-dev libssl-dev tree libunwind-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-pulseaudio libcunit1-dev

pip install jsonref

############################
# 2. Build Thunder Tools

git clone https://github.com/rdkcentral/ThunderTools.git

cmake -G Ninja -S ThunderTools -B build/ThunderTools -DCMAKE_INSTALL_PREFIX="install"

cmake --build build/ThunderTools --target install

############################
# 3. Build Thunder (WPEFramework)

git clone https://github.com/rdkcentral/Thunder.git

cmake -G Ninja -S Thunder -B build/Thunder \
-DBINDING="127.0.0.1" \
-DCMAKE_BUILD_TYPE="Debug" \
-DCMAKE_INSTALL_PREFIX="install" \
-DPORT="55555" \
-DTOOLS_SYSROOT="${PWD}" \
-DINITV_SCRIPT=OFF

cmake --build build/Thunder --target install

############################
# 4. Build ThunderInterfaces

git clone https://github.com/rdkcentral/ThunderInterfaces.git

cmake -G Ninja -S ThunderInterfaces -B build/ThunderInterfaces \
-DCMAKE_INSTALL_PREFIX="install"

cmake --build build/ThunderInterfaces --target install

############################
# Build trevor-base64
if [ ! -d "trower-base64" ]; then
git clone https://github.com/xmidt-org/trower-base64.git
fi
cd trower-base64
meson setup --warnlevel 3 --werror build
ninja -C build
ninja -C build install
cd ..

############################
# 5. Build rdkservices

git clone --branch sprint/25Q1 https://github.com/agampa263/rdkservices.git

ls -al
ls -al rdkservices
ls -al rdkservices/Tests
echo "======================================================================================"
echo "before creating dir and files"
tree rdkservices/Tests
echo "======================================================================================"

cd rdkservices/Tests
echo "current working dir: "$(pwd)
echo " Empty mocks creation to avoid compilation errors"
echo "======================================================================================"
mkdir -p headers
mkdir -p headers/audiocapturemgr
mkdir -p headers/rdk/ds
mkdir -p headers/rdk/iarmbus
mkdir -p headers/rdk/iarmmgrs-hal
mkdir -p headers/rdk/halif/
mkdir -p headers/rdk/halif/deepsleep-manager
mkdir -p headers/ccec/drivers
mkdir -p headers/network
mkdir -p headers/proc
echo "dir created successfully"

echo "======================================================================================"
echo "after dir creation"
cd ..
tree Tests
cd Tests
echo "======================================================================================"



echo "empty files creation to avoid compilation errors"
echo "======================================================================================"
cd headers
echo "current working dir: "$(pwd)
touch audiocapturemgr/audiocapturemgr_iarm.h
touch ccec/drivers/CecIARMBusMgr.h
touch rdk/ds/audioOutputPort.hpp
touch rdk/ds/compositeIn.hpp
touch rdk/ds/dsDisplay.h
touch rdk/ds/dsError.h
touch rdk/ds/dsMgr.h
touch rdk/ds/dsTypes.h
touch rdk/ds/dsUtl.h
touch rdk/ds/exception.hpp
touch rdk/ds/hdmiIn.hpp
touch rdk/ds/host.hpp
touch rdk/ds/list.hpp
touch rdk/ds/manager.hpp
touch rdk/ds/sleepMode.hpp
touch rdk/ds/videoDevice.hpp
touch rdk/ds/videoOutputPort.hpp
touch rdk/ds/videoOutputPortConfig.hpp
touch rdk/ds/videoOutputPortType.hpp
touch rdk/ds/videoResolution.hpp
touch rdk/iarmbus/libIARM.h
touch rdk/iarmbus/libIBus.h
touch rdk/iarmbus/libIBusDaemon.h
touch rdk/iarmmgrs-hal/deepSleepMgr.h
touch rdk/iarmmgrs-hal/mfrMgr.h
touch rdk/iarmmgrs-hal/pwrMgr.h
touch rdk/iarmmgrs-hal/sysMgr.h
touch network/wifiSrvMgrIarmIf.h
touch network/netsrvmgrIarm.h
touch libudev.h
touch rfcapi.h
touch rbus.h
touch telemetry_busmessage_sender.h
touch maintenanceMGR.h
touch pkg.h
touch secure_wrapper.h
touch wpa_ctrl.h
touch btmgr.h
echo "files created successfully"
echo "======================================================================================"
echo "current working dir: "$(pwd)
echo "======================================================================================"
cd ../../../
echo "current working dir after cd : "$(pwd)
echo "======================================================================================"
echo "after creating dir and files"
tree rdkservices/Tests
echo "======================================================================================"
cp -r /usr/include/gstreamer-1.0/gst /usr/include/glib-2.0/* /usr/lib/x86_64-linux-gnu/glib-2.0/include/* /usr/local/include/trower-base64/base64.h .

echo "starting builing rdkservices"
ls -al rdkservices
tree rdkservices
cat rdkservices/CMakeLists.txt
cmake -G Ninja -S rdkservices -B build/rdkservices \
-DCMAKE_INSTALL_PREFIX="install" \
-DCMAKE_CXX_FLAGS="-DEXCEPTIONS_ENABLE=ON \
-I ${PWD}/rdkservices/Tests/headers \
-I ${PWD}/rdkservices/Tests/headers/audiocapturemgr \
-I ${PWD}/rdkservices/Tests/headers/rdk/ds \
-I ${PWD}/rdkservices/Tests/headers/rdk/iarmbus \
-I ${PWD}/rdkservices/Tests/headers/rdk/iarmmgrs-hal \
-I ${PWD}/rdkservices/Tests/headers/ccec/drivers \
-I ${PWD}/rdkservices/Tests/headers/network \
-include ${PWD}/rdkservices/Tests/mocks/devicesettings.h \
-include ${PWD}/rdkservices/Tests/mocks/Iarm.h \
-include ${PWD}/rdkservices/Tests/mocks/Rfc.h \
-include ${PWD}/rdkservices/Tests/mocks/RBus.h \
-include ${PWD}/rdkservices/Tests/mocks/Telemetry.h \
-include ${PWD}/rdkservices/Tests/mocks/Udev.h \
-include ${PWD}/rdkservices/Tests/mocks/pkg.h \
-include ${PWD}/rdkservices/Tests/mocks/maintenanceMGR.h \
-include ${PWD}/rdkservices/Tests/mocks/secure_wrappermock.h \
-include ${PWD}/rdkservices/Tests/mocks/WpaCtrl.h \
--coverage -Wall -Werror -Wno-error=format \
-Wl,-wrap,system -Wl,-wrap,popen -Wl,-wrap,syslog \
-DENABLE_TELEMETRY_LOGGING -DUSE_IARMBUS \
-DENABLE_SYSTEM_GET_STORE_DEMO_LINK -DENABLE_DEEP_SLEEP \
-DENABLE_SET_WAKEUP_SRC_CONFIG -DENABLE_THERMAL_PROTECTION \
-DUSE_DRM_SCREENCAPTURE -DHAS_API_SYSTEM -DHAS_API_POWERSTATE \
-DHAS_RBUS -DENABLE_DEVICE_MANUFACTURER_INFO" \
-DCOMCAST_CONFIG=OFF \

cmake --build build/rdkservices
cmake --install build/rdkservices
find . -iname "build-log.txt"
find . -iname "build-log.txt" -exec cat {} \;;
sync
echo "rdkservices build completed successfully"
exit 0
Loading
Loading