Skip to content
Merged

merge #248

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
cda900d
Update Device_DeviceInfo.cpp
Abhinavpv28 Jul 10, 2025
e8153cb
Update Device_DeviceInfo.h
Abhinavpv28 Jul 10, 2025
255b5d1
Update data-model-generic.xml
Abhinavpv28 Jul 10, 2025
90ae35d
Update hostIf_DeviceClient_ReqHandler.cpp
Abhinavpv28 Jul 10, 2025
87f6d50
Update Device_DeviceInfo.cpp
Abhinavpv28 Jul 11, 2025
fa12702
Update Device_DeviceInfo.cpp
Abhinavpv28 Jul 11, 2025
93db364
Update Device_DeviceInfo.cpp
Abhinavpv28 Jul 11, 2025
33e2b50
Update Device_DeviceInfo.cpp
Abhinavpv28 Jul 11, 2025
5441b70
Update Device_DeviceInfo.cpp
Abhinavpv28 Jul 22, 2025
dc2505e
Update Device_DeviceInfo.cpp
Abhinavpv28 Jul 25, 2025
5502c0c
Update Device_DeviceInfo.cpp
Abhinavpv28 Jul 25, 2025
4104dc5
Update Device_DeviceInfo.cpp
Abhinavpv28 Jul 25, 2025
c204559
Merge pull request #209 from rdkcentral/develop
Abhinavpv28 Jul 25, 2025
1e4aa14
Merge branch 'develop' into feature/get_new
Abhinavpv28 Aug 20, 2025
1b63a82
Update webpa_parameter.cpp
Abhinavpv28 Aug 22, 2025
2da4e2f
Merge pull request #231 from rdkcentral/develop
Abhinavpv28 Aug 22, 2025
0738d83
Update webpa_parameter.cpp
Abhinavpv28 Aug 22, 2025
2b23142
Update webpa_parameter.cpp
Abhinavpv28 Aug 22, 2025
24f28b2
Update webpa_parameter.cpp
Abhinavpv28 Aug 23, 2025
c997974
Merge pull request #234 from rdkcentral/develop
Abhinavpv28 Aug 23, 2025
137d931
Update webpa_parameter.cpp
Abhinavpv28 Aug 23, 2025
8e011af
Update webpa_parameter.cpp
Abhinavpv28 Aug 26, 2025
1c2c38b
Merge pull request #237 from rdkcentral/develop
Abhinavpv28 Aug 26, 2025
b350a95
Merge branch 'develop' into feature/get_new
nhanasi Aug 27, 2025
2705417
Merge pull request #198 from rdkcentral/feature/get_new
nhanasi Aug 27, 2025
b112be6
1.2.4 release changelog updates
Aug 27, 2025
17fbfa9
Merge branch 'release/1.2.4'
Aug 27, 2025
364c312
Merge tag '1.2.4' into develop
Aug 27, 2025
8eb32e5
RDK-57737 [ tr69hostif ] : L1 Functional Coverage from 31.2% to 75-80…
madhubabutt Aug 28, 2025
7b12e1f
Update webpa_parameter.cpp
Abhinavpv28 Aug 29, 2025
0f26187
Merge pull request #244 from rdkcentral/develop
Abhinavpv28 Aug 29, 2025
2c0f5c8
Merge pull request #235 from rdkcentral/feature/webpa
nhanasi Aug 29, 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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,21 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [1.2.4](https://github.com/rdkcentral/tr69hostif/compare/1.2.3...1.2.4)

- RDKEMW-4759 - Review and Analyze the RRD Static Profiles for RDK devices [`#198`](https://github.com/rdkcentral/tr69hostif/pull/198)
- RDKEMW-7135 : Gamepad RFC is not enabled by default [`#228`](https://github.com/rdkcentral/tr69hostif/pull/228)
- RDKTV-38130-[RDKE_Trials][8.2p2s2]: Increase in "tr69hostif" crash with function "hostIf_WiFi_SSID::get_Device_WiFi_SSID_Fields" and "81598460" fingerprint [`#223`](https://github.com/rdkcentral/tr69hostif/pull/223)
- Fix tr69hostif native build failure [`#232`](https://github.com/rdkcentral/tr69hostif/pull/232)
- Rebase [`#209`](https://github.com/rdkcentral/tr69hostif/pull/209)
- Merge tag '1.2.3' into develop [`84c45dd`](https://github.com/rdkcentral/tr69hostif/commit/84c45dd1c8bac75d25f06fbbc14575c02d8a153a)
- Update Device_DeviceInfo.cpp [`5441b70`](https://github.com/rdkcentral/tr69hostif/commit/5441b702ad40eb9523499670b9254ea3fcbda0cc)
- Update Device_DeviceInfo.cpp [`cda900d`](https://github.com/rdkcentral/tr69hostif/commit/cda900d6d35170fcfe0c3ac8382271575eba077b)

#### [1.2.3](https://github.com/rdkcentral/tr69hostif/compare/1.2.2...1.2.3)

> 21 August 2025

- RDK-56291 - [RDKE] Increase L2 Test Coverage For Remote Debugger : Target 80% [ Phase 2 ] [`#227`](https://github.com/rdkcentral/tr69hostif/pull/227)
- [RDKEMW-5582] -[RDKE] tr69hostif.log contains any garbage data for the paramValue field [`#219`](https://github.com/rdkcentral/tr69hostif/pull/219)
- RDKEMW-6520: tr69hostif service starts before iarmbusd [`#218`](https://github.com/rdkcentral/tr69hostif/pull/218)
Expand Down
111 changes: 111 additions & 0 deletions dependent_rdk_pkg_installer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
##########################################################################
# If not stated otherwise in this file or this component's LICENSE
# file the following copyright and licenses apply:
#
# Copyright 2024 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");

Check failure on line 7 in dependent_rdk_pkg_installer.sh

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'GPL-2.0' license found in local file 'dependent_rdk_pkg_installer.sh' (Match: unofficial-openjdk/openjdk/7-b24, 11 lines, url: https://github.com/unofficial-openjdk/openjdk/archive/jdk7-b24.tar.gz, file: jaxp/src/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Makefile.inc)

Check failure on line 7 in dependent_rdk_pkg_installer.sh

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'GPL-2.0' license found in local file 'dependent_rdk_pkg_installer.sh' (Match: unofficial-openjdk/openjdk/7-b24, 11 lines, url: https://github.com/unofficial-openjdk/openjdk/archive/jdk7-b24.tar.gz, file: jaxp/src/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Makefile.inc)
# 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.
##########################################################################

# Clone and build rbus
export RBUS_ROOT=/usr
export RBUS_INSTALL_DIR=${RBUS_ROOT}/local
mkdir -p $RBUS_INSTALL_DIR
cd $RBUS_ROOT


WORKDIR=/opt/WORKDIR
mkdir -p $WORKDIR

cd $WORKDIR
git clone https://github.com/xmidt-org/trower-base64.git
cd trower-base64
meson setup build
ninja -C build
ninja -C build install
cd $WORKDIR
rm -rf trower-base64

# cJson flavor used in RDK stack
cd $WORKDIR
git clone https://github.com/DaveGamble/cJSON.git
cd cJSON
mkdir build
cd build
cmake ..
make && make install
cd $WORKDIR
rm -rf cJSON

# Include WDMP package
cd $WORKDIR
git clone https://github.com/xmidt-org/wdmp-c.git
cd wdmp-c
sed -i '/WDMP_ERR_SESSION_IN_PROGRESS/a\ WDMP_ERR_INTERNAL_ERROR,\n WDMP_ERR_DEFAULT_VALUE,' src/wdmp-c.h
cmake -H. -Bbuild -DBUILD_FOR_DESKTOP=ON -DCMAKE_BUILD_TYPE=Debug
make -C build && make -C build install
cd $WORKDIR
rm -rf wdmp-c

# Install dependencies of libparodus
cd $WORKDIR
git clone https://github.com/nanomsg/nanomsg.git
cd nanomsg
mkdir build
cd build
cmake ..
cmake --build .
cmake --build . --target install
cd $WORKDIR
rm -rf nanomsg

git clone https://github.com/xmidt-org/cimplog.git
cd cimplog
git checkout 8a5fb3c2f182241d17f5342bea5b7688c28cd1fd
mkdir build
cd build
cmake ..
make && make install
cd $WORKDIR
rm -rf cimplog


cd $WORKDIR
git clone https://github.com/xmidt-org/wrp-c.git
cd wrp-c
git checkout 9587e8db33dbbfcd9b78ef66cc2eaf16dfb9afcf
# replace 7a98138f27f27290e680bf8fbf1f8d1b089bf138 with 445880108a1d171f755ff6ac77e03fbebbb23729 in CMakeLists.txt
# Message pack revision used in libparadous is not buildable with latest gcc versions
sed -i 's/7a98138f27f27290e680bf8fbf1f8d1b089bf138/445880108a1d171f755ff6ac77e03fbebbb23729/g' CMakeLists.txt
mkdir build
cd build
cmake ..
make && make install
cd $WORKDIR
rm -rf wrp-c

cd $WORKDIR
git clone https://github.com/xmidt-org/libparodus.git
cd libparodus
# replace 7a98138f27f27290e680bf8fbf1f8d1b089bf138 with 445880108a1d171f755ff6ac77e03fbebbb23729 in CMakeLists.txt
# Message pack revision used in libparadous is not buildable with latest gcc versions
sed -i 's/7a98138f27f27290e680bf8fbf1f8d1b089bf138/445880108a1d171f755ff6ac77e03fbebbb23729/g' CMakeLists.txt
mkdir build
cd build
cmake ..
make && make install
cd $WORKDIR
rm -rf libparodus


#rtrouted -f -l DEBUG
83 changes: 79 additions & 4 deletions run_ut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,20 @@
# SPDX-License-Identifier: Apache-2.0
############################################################################


WORKDIR=`pwd`
sh dependent_rdk_pkg_installer.sh
export ROOT=/usr

cd $ROOT
rm -rf remote_debugger
rm -rf rdk-halif-device_settings
rm -rf rdkvhal-devicesettings-raspberrypi4
git clone https://github.com/rdkcentral/remote_debugger.git
git clone https://github.com/rdkcentral/rdk-halif-device_settings.git
git clone https://github.com/rdkcentral/rdkvhal-devicesettings-raspberrypi4.git

cd $WORKDIR
ls -l /usr/local/include/libparodus/
ENABLE_COV=false

if [ "x$1" = "x--enable-cov" ]; then
Expand All @@ -32,6 +45,9 @@ fi
apt-get update
apt-get -y install libtinyxml2-dev
apt-get -y install libsoup-3.0-dev
apt-get -y install libprocps-dev
apt-get -y install libnanomsg-dev
apt-get -y install iproute2

sed '/<\/model>/d; /<\/dm:document>/d' ./src/hostif/parodusClient/waldb/data-model/data-model-tv.xml > ./src/hostif/parodusClient/waldb/data-model/data-model-merged.xml
sed '/<?xml/,/<model/ d' ./src/hostif/parodusClient/waldb/data-model/data-model-generic.xml >> ./src/hostif/parodusClient/waldb/data-model/data-model-merged.xml
Expand All @@ -43,12 +59,25 @@ cp ./src/unittest/stubs/rfcdefaults.ini /tmp/rfcdefaults.ini

mkdir /opt/secure
mkdir /opt/secure/RFC
mkdir -p /opt/secure/reboot/
mkdir -p /opt/www/authService/
mkdir -p /tmp/webpa
mkdir -p /opt/persistent/
mkdir -p /etc/rfcdefaults
mkdir -p /etc/apparmor.d
cp ./src/unittest/stubs/tr181store.ini /opt/secure/RFC/tr181store.ini
cp ./src/integrationtest/conf/bootstrap.ini /opt/secure/RFC/
cp ./src/integrationtest/conf/rfcVariable.ini /opt/secure/RFC/
cp partners_defaults.json /etc/partners_defaults.json
cp ./src/unittest/stubs/partners_defaults_device.json /etc/partners_defaults_device.json
cp ./src/unittest/stubs/fwdnldstatus.txt /opt/fwdnldstatus.txt
touch /tmp/timeReceivedNTP
touch /tmp/webpa/start_time
touch /opt/persistent/firstNtpTime



export TOP_DIR=`pwd`
export TOP_DIR=$WORKDIR
cd ./src/

automake --add-missing
Expand All @@ -64,13 +93,59 @@ echo "TOP_DIR = $TOP_DIR"
echo "**** Compiling data model gtest ****"
cd $TOP_DIR/src/hostif/parodusClient/gtest
rm dm_gtest
sed -i '/getCurrentTime/,/^ *}/d' ../../src/hostIf_utils.cpp
make
./dm_gtest
echo "********************"

echo "**** Compiling httpserver gtest ****"
cd $TOP_DIR/src/hostif/httpserver/src/gtest
rm httpserver_gtest
sed -i '$a void getCurrentTime(struct timespec *timer)\n{\n clock_gettime(CLOCK_REALTIME, timer);\n}' ../../../src/hostIf_utils.cpp
make clean
make
./httpserver_gtest
echo "********************"

echo "**** Compiling src gtest ****"
cd $TOP_DIR/src/hostif/src/gtest
rm src_gtest
make clean
make
./src_gtest
echo "********************"

echo "**** Compiling DHCPv4 gtest ****"
cd $TOP_DIR/src/hostif/profiles/DHCPv4/gtest
rm dhcpv4_gtest
make
./dhcpv4_gtest
echo "********************"

echo "**** Compiling Device gtest ****"
cd $TOP_DIR/src/hostif/profiles/Device/gtest
rm device_gtest
make
./device_gtest
echo "********************"

echo "**** Compiling Ethernet gtest ****"
cd $TOP_DIR/src/hostif/profiles/Ethernet/gtest
rm ethernet_gtest
make
./ethernet_gtest
echo "********************"

echo "**** Compiling Time gtest ****"
cd $TOP_DIR/src/hostif/profiles/Time/gtest
rm time_gtest
make
./time_gtest
echo "********************"

echo "**** Compiling DeviceInfo gtest ****"
cd $TOP_DIR/src/hostif/profiles/DeviceInfo/gtest
rm devieInfo_gtest
rm devieInfo_gtest /opt/www/authService/partnerId3.dat
make
./devieInfo_gtest
echo "********************"
Expand All @@ -80,7 +155,7 @@ cd $TOP_DIR
if [ "$ENABLE_COV" = true ]; then
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info '/usr/*' '*/gtest/*' '*/mocks/*' --output-file filtered.info
lcov --extract filtered.info '*/src/hostif*' --output-file tr69hostif_coverage.info
lcov --extract filtered.info '*/src/hostif/httpserver/*' '*/src/hostif/parodusClient/*' '*/src/hostif/src/*' '*/src/hostif/profiles/DHCPv4/*' '*/src/hostif/profiles/Device/*' '*/src/hostif/profiles/DeviceInfo/*' '*/src/hostif/profiles/Ethernet/*' '*/src/hostif/profiles/Time/*' --output-file tr69hostif_coverage.info
lcov --list tr69hostif_coverage.info
fi

11 changes: 9 additions & 2 deletions src/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,15 @@ AC_SUBST(T2_EVENT_FLAG)

# Generate the Makefile
AC_CONFIG_FILES([
hostif/parodusClient/gtest/Makefile \
hostif/profiles/DeviceInfo/gtest/Makefile])
hostif/parodusClient/gtest/Makefile
hostif/httpserver/src/gtest/Makefile
hostif/src/gtest/Makefile
hostif/profiles/DHCPv4/gtest/Makefile
hostif/profiles/Device/gtest/Makefile
hostif/profiles/Ethernet/gtest/Makefile
hostif/profiles/Time/gtest/Makefile
hostif/profiles/DeviceInfo/gtest/Makefile
])

# Generate the configure script
AC_OUTPUT
5 changes: 5 additions & 0 deletions src/hostif/handlers/src/hostIf_DeviceClient_ReqHandler.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:

Check failure on line 3 in src/hostif/handlers/src/hostIf_DeviceClient_ReqHandler.cpp

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'src/hostif/handlers/src/hostIf_DeviceClient_ReqHandler.cpp' (Match: rdk/components/generic/tr69hostif/rdk/components/generic/tr69hostif/2012, 1337 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdk/components/generic/tr69hostif/+archive/rdk-dev-2012.tar.gz, file: src/hostif/handlers/src/hostIf_DeviceClient_ReqHandler.cpp)

Check failure on line 3 in src/hostif/handlers/src/hostIf_DeviceClient_ReqHandler.cpp

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'src/hostif/handlers/src/hostIf_DeviceClient_ReqHandler.cpp' (Match: rdk/components/generic/tr69hostif/rdk/components/generic/tr69hostif/2101, 1337 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdk/components/generic/tr69hostif/+archive/rdk-dev-2101.tar.gz, file: src/hostif/handlers/src/hostIf_DeviceClient_ReqHandler.cpp)

Check failure on line 3 in src/hostif/handlers/src/hostIf_DeviceClient_ReqHandler.cpp

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'src/hostif/handlers/src/hostIf_DeviceClient_ReqHandler.cpp' (Match: rdk/components/generic/tr69hostif/rdk/components/generic/tr69hostif/2012, 1337 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdk/components/generic/tr69hostif/+archive/rdk-dev-2012.tar.gz, file: src/hostif/handlers/src/hostIf_DeviceClient_ReqHandler.cpp)

Check failure on line 3 in src/hostif/handlers/src/hostIf_DeviceClient_ReqHandler.cpp

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'src/hostif/handlers/src/hostIf_DeviceClient_ReqHandler.cpp' (Match: rdk/components/generic/tr69hostif/rdk/components/generic/tr69hostif/2101, 1337 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdk/components/generic/tr69hostif/+archive/rdk-dev-2101.tar.gz, file: src/hostif/handlers/src/hostIf_DeviceClient_ReqHandler.cpp)
*
* Copyright 2016-2019 RDK Management
*
Expand Down Expand Up @@ -490,6 +490,11 @@
{
ret = pIface->get_Device_DeviceInfo_X_RDKCENTRAL_COM_BootStatus(stMsgData);
}

else if(strcasecmp(stMsgData->paramName,"Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.RDKRemoteDebugger.getProfileData") == 0)
{
ret = pIface->get_Device_DeviceInfo_X_RDKCENTRAL_COM_RDKRemoteDebuggergetProfileData(stMsgData);
}
else if (strcasecmp(stMsgData->paramName,"Device.DeviceInfo.X_RDKCENTRAL-COM_PreferredGatewayType") == 0)
{
ret = pIface->get_Device_DeviceInfo_X_RDKCENTRAL_COM_PreferredGatewayType(stMsgData);
Expand Down
8 changes: 8 additions & 0 deletions src/hostif/httpserver/include/XrdkCentralComRFCVar.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:

Check failure on line 3 in src/hostif/httpserver/include/XrdkCentralComRFCVar.h

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'src/hostif/httpserver/include/XrdkCentralComRFCVar.h' (Match: rdk/components/generic/tr69hostif/rdk/components/generic/tr69hostif/1812, 52 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdk/components/generic/tr69hostif/+archive/rdk-dev-1812.tar.gz, file: src/hostif/httpserver/include/XrdkCentralComRFCVar.h)
*
* Copyright 2018 RDK Management
*
Expand All @@ -23,6 +23,10 @@
#include <unordered_map>
#include <string>

#if defined(GTEST_ENABLE)
#include <gtest/gtest.h>
#endif

using namespace std;

#define XRFC_VAR_STORE_RELOADCACHE "RFC_CONTROL_RELOADCACHE"
Expand All @@ -49,6 +53,10 @@

void initRFCVarFileName();
bool loadRFCVarIntoCache();
#if defined(GTEST_ENABLE)
FRIEND_TEST(httpserverTest, initRFCVarFileName);
FRIEND_TEST(httpserverTest, loadRFCVarIntoCache);
#endif
};

#endif // XRDKCENTRALCOMRFCVARSTORE_H
48 changes: 48 additions & 0 deletions src/hostif/httpserver/src/gtest/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
################################################################################

Check failure on line 1 in src/hostif/httpserver/src/gtest/Makefile.am

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'src/hostif/httpserver/src/gtest/Makefile.am' (Match: JoepVanlier/ysfx/0.0.1, 16 lines, url: https://github.com/JoepVanlier/ysfx/archive/v0.0.1.tar.gz, file: cmake/ExtractYsfxExports.cmake)
# Copyright 2024 Comcast Cable Communications Management, LLC
#
# 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.
#
# SPDX-License-Identifier: Apache-2.0
################################################################################

AUTOMAKE_OPTIONS = subdir-objects
# Define the program name and the source files
bin_PROGRAMS = httpserver_gtest

# Define the include directories
COMMON_CPPFLAGS = -std=c++11 -DGTEST_ENABLE -DPARODUS -I/usr/include -I/usr/include/cjson -I$(TOP_DIR)/src/hostif/include -I$(TOP_DIR)/src/hostif/profiles/DeviceInfo -I$(TOP_DIR)/src/unittest/stubs -I$(TOP_DIR)/src/unittest/stubs/ds -I$(TOP_DIR)/src/unittest/stubs/rbus/include -I$(TOP_DIR)/src/hostif/handlers/include -I$(TOP_DIR)/src/hostif/parodusClient/pal -I$(TOP_DIR)/src/hostif/parodusClient/waldb -I$(TOP_DIR)/src/hostif/httpserver/include -I$(TOP_DIR)/src/hostif/handlers/src -I/usr/include/rbus -I/usr/local/include/rbus -Isrc/unittest/stubs/rbus/include/

if LIBSOUP3_ENABLE
COMMON_CPPFLAGS += -I/usr/include/libsoup-3.0 -DLIBSOUP3_ENABLE
else
COMMON_CPPFLAGS += -I/usr/include/libsoup-2.4
endif

# Define the libraries to link against
COMMON_LDADD = -lgtest -lgtest_main -lgmock_main -lgmock -lgcov $(GLIB_LIBS) -ltinyxml2 -lcjson -lcurl -lglib-2.0

if LIBSOUP3_ENABLE
COMMON_LDADD += -lsoup-3.0
endif


# Define the compiler flags
COMMON_CXXFLAGS = -frtti $(GLIB_CFLAGS) $(SOUP_LIBS) -fprofile-arcs -ftest-coverage

httpserver_gtest_SOURCES = $(TOP_DIR)/src/hostif/src/hostIf_utils.cpp $(TOP_DIR)/src/hostif/src/IniFile.cpp $(TOP_DIR)/src/unittest/stubs/secure_wrapper.c $(TOP_DIR)/src/hostif/profiles/DeviceInfo/XrdkCentralComRFCStore.cpp $(TOP_DIR)/src/hostif/profiles/DeviceInfo/XrdkCentralComRFC.cpp $(TOP_DIR)/src/hostif/profiles/DeviceInfo/XrdkCentralComBSStore.cpp $(TOP_DIR)/src/hostif/profiles/DeviceInfo/XrdkCentralComBSStoreJournal.cpp $(TOP_DIR)/src/hostif/profiles/DeviceInfo/Device_DeviceInfo.cpp $(TOP_DIR)/src/hostif/handlers/src/hostIf_NotificationHandler.cpp $(TOP_DIR)/src/hostif/parodusClient/pal/webpa_notification.cpp $(TOP_DIR)/src/unittest/stubs/dm_stubs.cpp $(TOP_DIR)/src/hostif/parodusClient/waldb/waldb.cpp $(TOP_DIR)/src/unittest/stubs/wdmp-c.c $(TOP_DIR)/src/unittest/stubs/wdmp_internal.c $(TOP_DIR)/src/hostif/httpserver/src/http_server.cpp $(TOP_DIR)/src/hostif/httpserver/src/request_handler.cpp $(TOP_DIR)/src/hostif/httpserver/src/XrdkCentralComRFCVar.cpp $(TOP_DIR)/src/hostif/profiles/DeviceInfo/Device_DeviceInfo_Processor.cpp $(TOP_DIR)/src/hostif/profiles/DeviceInfo/Device_DeviceInfo_ProcessStatus.cpp $(TOP_DIR)/src/hostif/parodusClient/pal/webpa_parameter.cpp $(TOP_DIR)/src/unittest/stubs/file_writer.cpp $(TOP_DIR)/src/hostif/httpserver/src/gtest/gtest_httpserver.cpp

# Apply common properties to each program
httpserver_gtest_CPPFLAGS = $(COMMON_CPPFLAGS)
httpserver_gtest_CXXFLAGS = $(COMMON_CXXFLAGS)
httpserver_gtest_LDADD = $(COMMON_LDADD)
Loading
Loading