Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuhammedrafi committed Sep 24, 2024
1 parent 9945bf9 commit bbd5463
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 50 deletions.
44 changes: 11 additions & 33 deletions .github/workflows/gnome_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@ jobs:
- name: Install packages
run: |
sudo apt update
sudo apt-get install -y --no-install-recommends \
pkg-config \
ninja-build \
libglib2.0-dev \
libnm-dev \
libcurl4-openssl-dev
sudo apt-get install -y pkg-config libglib2.0-dev libnm-dev libcurl4-openssl-dev ninja-build
- name: Configure Python
uses: actions/setup-python@v4
Expand All @@ -53,34 +48,12 @@ jobs:
with:
cmake-version: '3.16.x'

- name: Checkout ThunderTools
- name: Checkout thunder repositories
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: rdkcentral/ThunderTools
path: ThunderTools
ref: ${{env.THUNDER_TOOLS_REF}}

- name: Checkout Thunder
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: rdkcentral/Thunder
path: Thunder
ref: ${{env.THUNDER_REF}}

- name: Checkout ThunderInterfaces
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: rdkcentral/ThunderInterfaces
path: ThunderInterfaces
ref: ${{env.INTERFACES_REF}}

- name: Checkout networkmanager
uses: actions/checkout@v3
with:
path: networkmanager
run: |
git clone https://github.com/rdkcentral/ThunderTools ThunderTools --branch ${{ env.THUNDER_TOOLS_REF }}
git clone https://github.com/rdkcentral/Thunder Thunder --branch ${{ env.THUNDER_REF }}
git clone https://github.com/rdkcentral/ThunderInterfaces ThunderInterfaces --branch ${{ env.INTERFACES_REF }}
- name: Build ThunderTools
if: steps.cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -115,6 +88,11 @@ jobs:
&&
cmake --build build/ThunderInterfaces --target install -j8
- name: Checkout networkmanager
uses: actions/checkout@v3
with:
path: networkmanager

- name: Build networkmanager with Gnome Proxy
run: >
cmake
Expand Down
23 changes: 6 additions & 17 deletions .github/workflows/rdk_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,9 @@ env:
INTERFACES_REF: "R4.4.1"

jobs:
l1-tests:
unit-tests:
name: Build and run unit tests
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [ gcc, clang ]
coverage: [ with-coverage, without-coverage ]
exclude:
- compiler: clang
coverage: with-coverage
- compiler: clang
coverage: without-coverage
- compiler: gcc
coverage: without-coverage

steps:
- name: Set up cache
Expand All @@ -41,13 +30,13 @@ jobs:
install
!install/etc/WPEFramework/plugins
!install/usr/lib/wpeframework/plugins
key: ${{ runner.os }}-${{ env.THUNDER_REF }}-${{ env.INTERFACES_REF }}-3
key: ${{ runner.os }}-${{ env.THUNDER_REF }}-${{ env.INTERFACES_REF }}

- name: Install packages
run: >
run: |
sudo apt update
&&
sudo apt install -y libnm0 git pkg-config ninja-build libssl-dev libglib2.0-dev libnm-dev libcurl4-openssl-dev
sudo apt install -y pkg-config ninja-build libssl-dev libcurl4-openssl-dev
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit bbd5463

Please sign in to comment.