-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5007 from rdkcentral/RDK-45037-qs027
Merge pull request #5006 from rdkcentral/RDK-45037-main
- Loading branch information
Showing
48 changed files
with
3,585 additions
and
2,228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
############################ | ||
# From https://rdkcentral.github.io/Thunder/introduction/build_linux/ | ||
# DO NOT MODIFY | ||
|
||
############################ | ||
# 1. Install Dependencies | ||
|
||
sudo apt install -y build-essential cmake ninja-build libusb-1.0-0-dev zlib1g-dev libssl-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/usr" | ||
|
||
cmake --build build/ThunderTools --target install | ||
|
||
############################ | ||
# 3. Build Thunder | ||
|
||
git clone https://github.com/rdkcentral/Thunder.git | ||
|
||
cmake -G Ninja -S Thunder -B build/Thunder \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DBINDING="127.0.0.1" \ | ||
-DCMAKE_BUILD_TYPE="Debug" \ | ||
-DCMAKE_INSTALL_PREFIX="install/usr" \ | ||
-DCMAKE_MODULE_PATH="${PWD}/install/usr/include/WPEFramework/Modules" \ | ||
-DDATA_PATH="${PWD}/install/usr/share/WPEFramework" \ | ||
-DPERSISTENT_PATH="${PWD}/install/var/wpeframework" \ | ||
-DPORT="55555" \ | ||
-DPROXYSTUB_PATH="${PWD}/install/usr/lib/wpeframework/proxystubs" \ | ||
-DSYSTEM_PATH="${PWD}/install/usr/lib/wpeframework/plugins" \ | ||
-DVOLATILE_PATH="tmp" | ||
|
||
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/usr" \ | ||
-DCMAKE_MODULE_PATH="${PWD}/install/usr/include/WPEFramework/Modules" | ||
|
||
cmake --build build/ThunderInterfaces --target install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: L0-PersistentStore | ||
|
||
on: | ||
push: | ||
paths: | ||
- PersistentStore/** | ||
pull_request: | ||
paths: | ||
- PersistentStore/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: ${{github.repository}} | ||
|
||
- name: Install valgrind, coverage, cmake | ||
run: | | ||
sudo apt update | ||
sudo apt install -y valgrind lcov cmake | ||
- name: Build Thunder | ||
working-directory: ${{github.workspace}} | ||
run: sh +x ${GITHUB_REPOSITORY}/.github/workflows/BuildThunder.sh | ||
|
||
- name: Build | ||
working-directory: ${{github.workspace}} | ||
run: | | ||
cmake -S ${GITHUB_REPOSITORY}/PersistentStore/l0test -B build/persistentstorel0test -DCMAKE_INSTALL_PREFIX="install/usr" -DCMAKE_CXX_FLAGS="--coverage -Wall -Werror" | ||
cmake --build build/persistentstorel0test --target install | ||
- name: Run | ||
working-directory: ${{github.workspace}} | ||
run: PATH=${PWD}/install/usr/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/usr/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try persistentstorel0test | ||
|
||
- name: Generate coverage | ||
working-directory: ${{github.workspace}} | ||
run: | | ||
lcov -c -o coverage.info -d build/persistentstorel0test | ||
genhtml -o coverage coverage.info | ||
- name: Upload artifacts | ||
if: ${{ !env.ACT }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: artifacts | ||
path: | | ||
coverage/ | ||
valgrind_log | ||
if-no-files-found: warn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: L1-PersistentStore-sqlite | ||
|
||
on: | ||
push: | ||
paths: | ||
- PersistentStore/sqlite/** | ||
pull_request: | ||
paths: | ||
- PersistentStore/sqlite/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: ${{github.repository}} | ||
|
||
- name: Install valgrind, coverage, cmake, sqlite | ||
run: | | ||
sudo apt update | ||
sudo apt install -y valgrind lcov cmake libsqlite3-dev | ||
- name: Build Thunder | ||
working-directory: ${{github.workspace}} | ||
run: sh +x ${GITHUB_REPOSITORY}/.github/workflows/BuildThunder.sh | ||
|
||
- name: Build | ||
working-directory: ${{github.workspace}} | ||
run: | | ||
cmake -S ${GITHUB_REPOSITORY}/PersistentStore/sqlite/l1test -B build/sqlitel1test -DCMAKE_INSTALL_PREFIX="install/usr" -DCMAKE_CXX_FLAGS="--coverage -Wall -Werror" | ||
cmake --build build/sqlitel1test --target install | ||
- name: Run | ||
working-directory: ${{github.workspace}} | ||
run: PATH=${PWD}/install/usr/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/usr/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try sqlitel1test | ||
|
||
- name: Generate coverage | ||
working-directory: ${{github.workspace}} | ||
run: | | ||
lcov -c -o coverage.info -d build/sqlitel1test | ||
genhtml -o coverage coverage.info | ||
- name: Upload artifacts | ||
if: ${{ !env.ACT }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: artifacts | ||
path: | | ||
coverage/ | ||
valgrind_log | ||
if-no-files-found: warn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: L1-PersistentStore | ||
|
||
on: | ||
push: | ||
paths: | ||
- PersistentStore/** | ||
pull_request: | ||
paths: | ||
- PersistentStore/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: ${{github.repository}} | ||
|
||
- name: Install valgrind, coverage, cmake | ||
run: | | ||
sudo apt update | ||
sudo apt install -y valgrind lcov cmake | ||
- name: Build Thunder | ||
working-directory: ${{github.workspace}} | ||
run: sh +x ${GITHUB_REPOSITORY}/.github/workflows/BuildThunder.sh | ||
|
||
- name: Build | ||
working-directory: ${{github.workspace}} | ||
run: | | ||
cmake -S ${GITHUB_REPOSITORY}/PersistentStore/l1test -B build/persistentstorel1test -DCMAKE_INSTALL_PREFIX="install/usr" -DCMAKE_CXX_FLAGS="--coverage -Wall -Werror" | ||
cmake --build build/persistentstorel1test --target install | ||
- name: Run | ||
working-directory: ${{github.workspace}} | ||
run: PATH=${PWD}/install/usr/bin:${PATH} LD_LIBRARY_PATH=${PWD}/install/usr/lib:${LD_LIBRARY_PATH} valgrind --tool=memcheck --log-file=valgrind_log --leak-check=yes --show-reachable=yes --track-fds=yes --fair-sched=try persistentstorel1test | ||
|
||
- name: Generate coverage | ||
working-directory: ${{github.workspace}} | ||
run: | | ||
lcov -c -o coverage.info -d build/persistentstorel1test | ||
genhtml -o coverage coverage.info | ||
- name: Upload artifacts | ||
if: ${{ !env.ACT }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: artifacts | ||
path: | | ||
coverage/ | ||
valgrind_log | ||
if-no-files-found: warn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.