Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
473 commits
Select commit Hold shift + click to select a range
7749fa2
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
69d0195
Update Makefile.am
Abhinavpv28 Oct 12, 2025
4937b27
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
0a33770
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
52ef8e4
Update Makefile.am
Abhinavpv28 Oct 12, 2025
663ee14
Update Makefile.am
Abhinavpv28 Oct 12, 2025
8f0e65e
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
608a5c5
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
e2d044b
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
603788b
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
f1c4b9e
Update Makefile.am
Abhinavpv28 Oct 12, 2025
0065950
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
0d022d7
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
d53ea0d
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
cb8d024
Create mockrbus.cpp
Abhinavpv28 Oct 12, 2025
dcc4baf
Update mockrbus.cpp
Abhinavpv28 Oct 12, 2025
4e55ba5
Update mockrbus.cpp
Abhinavpv28 Oct 12, 2025
3fb373d
Update mockrbus.h
Abhinavpv28 Oct 12, 2025
816f41c
Update mockrbus.h
Abhinavpv28 Oct 12, 2025
0b3c804
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
85681ab
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
6a16b9f
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
2ee46bb
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
1b2534a
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
7ea7b62
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
5b044c0
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
041d5a8
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
1c75dbf
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
0812225
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
ab51cd0
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
1c48c54
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
3994d18
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
712f082
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
3cbd5d0
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
3c70dbe
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
f49332a
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
5fd1fc8
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
b4082c8
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
450ab44
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
d9e4693
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
3f2e4f6
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
209620b
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 12, 2025
c36a8b1
Update Makefile.am
Abhinavpv28 Oct 12, 2025
315b878
Create dcm_gtest.cpp
Abhinavpv28 Oct 12, 2025
ce57df4
Update unit_test.sh
Abhinavpv28 Oct 12, 2025
825eac5
Update Makefile.am
Abhinavpv28 Oct 12, 2025
ab13852
Update dcm_gtest.cpp
Abhinavpv28 Oct 12, 2025
6906bb3
Update dcm.c
Abhinavpv28 Oct 12, 2025
b0f4189
Update dcm_gtest.cpp
Abhinavpv28 Oct 12, 2025
352c713
Update Makefile.am
Abhinavpv28 Oct 12, 2025
ddfb7af
Update dcm_gtest.cpp
Abhinavpv28 Oct 12, 2025
f8eba82
Update dcm_gtest.cpp
Abhinavpv28 Oct 12, 2025
a6a9f26
Update dcm_gtest.cpp
Abhinavpv28 Oct 12, 2025
91f91aa
Update dcm_gtest.cpp
Abhinavpv28 Oct 12, 2025
053d482
Update dcm_gtest.cpp
Abhinavpv28 Oct 12, 2025
5957165
Update dcm_gtest.cpp
Abhinavpv28 Oct 12, 2025
382efb1
Update dcm_gtest.cpp
Abhinavpv28 Oct 12, 2025
0a3842e
Update dcm_gtest.cpp
Abhinavpv28 Oct 12, 2025
b0d4318
Update dcm.c
Abhinavpv28 Oct 12, 2025
35c3ba9
Update dcm_gtest.cpp
Abhinavpv28 Oct 12, 2025
9eb2517
Update dcm.c
Abhinavpv28 Oct 12, 2025
808c510
Update dcm_gtest.cpp
Abhinavpv28 Oct 12, 2025
753236c
Update unit_test.sh
Abhinavpv28 Oct 12, 2025
9b47a8d
Update unit_test.sh
Abhinavpv28 Oct 12, 2025
9c3e1ab
Update unit_test.sh
Abhinavpv28 Oct 12, 2025
7dffd68
Update unit_test.sh
Abhinavpv28 Oct 12, 2025
da2b6bc
Update unit_test.sh
Abhinavpv28 Oct 12, 2025
2e96a68
Update unit_test.sh
Abhinavpv28 Oct 12, 2025
a61404a
Update unit_test.sh
Abhinavpv28 Oct 12, 2025
5ddb1e0
Update unit_test.sh
Abhinavpv28 Oct 12, 2025
cbb4532
Update Makefile.am
Abhinavpv28 Oct 12, 2025
30cbd57
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 12, 2025
1e1681c
Update dcm_cronparse.h
Abhinavpv28 Oct 12, 2025
55db490
Update dcm_cronparse.h
Abhinavpv28 Oct 12, 2025
9259d09
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 12, 2025
6853106
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 12, 2025
0c533f0
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 13, 2025
11fc2da
Update Makefile.am
Abhinavpv28 Oct 13, 2025
806cbd4
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 13, 2025
e0391da
Update unit_test.sh
Abhinavpv28 Oct 13, 2025
e906cef
Update unit_test.sh
Abhinavpv28 Oct 13, 2025
9545c9c
Update unit_test.sh
Abhinavpv28 Oct 13, 2025
3fe1f15
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 13, 2025
88d0380
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 13, 2025
40eb7f4
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 13, 2025
556403d
Update Makefile.am
Abhinavpv28 Oct 13, 2025
5655617
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 13, 2025
c2bcd5f
Update unit_test.sh
Abhinavpv28 Oct 13, 2025
6bd6540
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 13, 2025
2a868bd
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 13, 2025
95585f5
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 13, 2025
4246942
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 13, 2025
3994b38
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 13, 2025
3e76d9b
Update Makefile.am
Abhinavpv28 Oct 13, 2025
3a9508e
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 13, 2025
1e7af60
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 13, 2025
8791ad6
Update Makefile.am
Abhinavpv28 Oct 13, 2025
67c2492
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 13, 2025
b1ef9a8
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 13, 2025
0dc11fc
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
02397e0
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
2136f35
Update dcm.c
Abhinavpv28 Oct 13, 2025
be64f3b
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
8ae41dd
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
7e8b9cd
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
dbde776
Update dcm_schedjob_gtest.cpp
Abhinavpv28 Oct 13, 2025
c6416ee
Update cov_build.sh
Abhinavpv28 Oct 13, 2025
81a85a4
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
73e6010
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
5adb151
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
3a61d90
Update dcm.c
Abhinavpv28 Oct 13, 2025
1c506f1
Update dcm.c
Abhinavpv28 Oct 13, 2025
c7aceca
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
9b85c11
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
2ed2d5a
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
ce93a26
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
111f519
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
a16356e
Update dcm.c
Abhinavpv28 Oct 13, 2025
97ecff5
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
0dea907
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
6e03651
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
3e98f61
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
d68e8c4
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
c1727b6
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
6062a76
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
472baaf
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
c277e86
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
3c12cce
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
0153534
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
9b93456
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
dbf613f
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
ddbe9dc
Update dcm_gtest.cpp
Abhinavpv28 Oct 13, 2025
0662c09
Update unit_test.sh
Abhinavpv28 Oct 13, 2025
60e1a7f
Update dcm_rbus.c
Abhinavpv28 Oct 13, 2025
4a019b2
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
e9ed596
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
36bfe90
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
96e322a
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
a96768a
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
a6adc5a
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
f2867cf
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
5336a2d
Update dcm_rbus.c
Abhinavpv28 Oct 13, 2025
88df413
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
8ed2d28
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
afa3e81
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
cd7e885
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
bd6ba9b
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
28989a5
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
18135c7
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
a15d996
Update dcm_rbus.c
Abhinavpv28 Oct 13, 2025
317625f
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
c0b0dc6
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
2edbf2b
Update dcm_rbus.c
Abhinavpv28 Oct 13, 2025
9495713
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
5180ee4
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
cba9f8f
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
562bf07
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
cd8c610
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
211b804
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
0353714
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
28ff25b
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
cab29a9
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
b268f99
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
f2443fd
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
fb378dd
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
e01cef8
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
0653b3b
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
c45a498
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
15a640e
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
e7e0e67
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
f8d3514
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
d3b02f4
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 13, 2025
653ab28
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
5eec6b9
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
63150eb
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
bdaa8ce
Update mockrbus.cpp
Abhinavpv28 Oct 14, 2025
66df372
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
89c29bb
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
53ec894
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
efeeb49
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
e4de5fe
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
b37101b
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
927e8c3
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
82e122b
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
e6ba30d
Update dcm.c
Abhinavpv28 Oct 14, 2025
b35a48a
Update dcm.c
Abhinavpv28 Oct 14, 2025
4561f22
Update dcm.c
Abhinavpv28 Oct 14, 2025
cb81905
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
3d22edb
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
f03f46c
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
58db102
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
89cd7c1
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
7c9bc1b
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
05dfb6f
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
0783ef1
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
6f54346
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
043d198
Update cov_build.sh
Abhinavpv28 Oct 14, 2025
6da779b
Update cov_build.sh
Abhinavpv28 Oct 14, 2025
00b3565
Update dcm_rbus.c
Abhinavpv28 Oct 14, 2025
ef706b1
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
dd10b80
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
2df965e
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
cf1bd5e
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
ade4b28
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
7a48bda
Update dcm_rbus.c
Abhinavpv28 Oct 14, 2025
d47a312
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
353da01
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
578d77c
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
8dcf1a6
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
8c0b8fb
Update unit_test.sh
Abhinavpv28 Oct 14, 2025
0d55ba1
Update unit_test.sh
Abhinavpv28 Oct 14, 2025
160d415
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
ab5e44b
Update dcm_cronparse.c
Abhinavpv28 Oct 14, 2025
fdbf878
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
c4058f4
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
6cc7152
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
435a848
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
90e1a83
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
18df02f
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
0bb4298
Update dcm_cronparse.c
Abhinavpv28 Oct 14, 2025
8feb5c6
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
9a087ec
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
1c6940f
Update dcm_cronparse.c
Abhinavpv28 Oct 14, 2025
808f322
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
de7fdf2
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
70eaece
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
0f347bf
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
f0c1367
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
8ed1136
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
2450ad9
Update dcm_rbus.c
Abhinavpv28 Oct 14, 2025
4a78a33
Update dcm_utils.h
Abhinavpv28 Oct 14, 2025
c864223
Update dcm_utils.h
Abhinavpv28 Oct 14, 2025
9affd99
Update dcm_utils.h
Abhinavpv28 Oct 14, 2025
6847b8b
Update dcm.c
Abhinavpv28 Oct 14, 2025
ddf95b6
Update dcm_cronparse.c
Abhinavpv28 Oct 14, 2025
534dc0f
Update dcm_rbus.c
Abhinavpv28 Oct 14, 2025
339bd26
Update dcm_utils.h
Abhinavpv28 Oct 14, 2025
0998572
Update Makefile.am
Abhinavpv28 Oct 14, 2025
afbff94
Update dcm_utils.h
Abhinavpv28 Oct 14, 2025
5355eb9
Update Makefile.am
Abhinavpv28 Oct 14, 2025
54d78c4
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
ee8c132
Update dcm_parseconf_gtest.cpp
Abhinavpv28 Oct 14, 2025
9b0e370
Update dcm_rbus_gtest.cpp
Abhinavpv28 Oct 14, 2025
cdb1fc1
Update dcm_schedjob_gtest.cpp
Abhinavpv28 Oct 14, 2025
2e0d544
Update dcm_utils_gtest.cpp
Abhinavpv28 Oct 14, 2025
9883441
Update dcm_schedjob_gtest.cpp
Abhinavpv28 Oct 14, 2025
b121f85
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
9fc05d2
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 14, 2025
7dd026e
Update dcm_cronparse_gtest.cpp
Abhinavpv28 Oct 17, 2025
2ba7b22
Update dcm_cronparse.h
Abhinavpv28 Oct 17, 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
28 changes: 28 additions & 0 deletions .github/workflows/L1-Test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Unit tests dcm-agent
on:
pull_request:
branches: [ develop, main ]

env:
AUTOMATICS_UNAME: ${{ secrets.AUTOMATICS_UNAME }}
AUTOMATICS_PASSCODE: ${{ secrets.AUTOMATICS_PASSCODE }}

jobs:
execute-unit-tests-on-pr:
name: Execute unit tests in dcm-agent GTest suite
runs-on: ubuntu-latest
container:
image: ghcr.io/rdkcentral/docker-rdk-ci:latest

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

- name: Run unit tests
run: sh unit_test.sh

- name: Upload test results to automatic test result management system
if: github.repository_owner == 'rdkcentral'
run: |
git config --global --add safe.directory `pwd`
gtest-json-result-push.py /tmp/Gtest_Report https://rdkeorchestrationservice.apps.cloud.comcast.net/rdke_orchestration_api/push_unit_test_results `pwd`
Comment on lines +12 to +28

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 4 months ago

To fix the problem, the workflow YAML should be amended to explicitly specify the required permissions by adding a permissions block. The block can be placed at the root level (recommended, for future jobs) or directly inside the individual job. The minimal starting permissions should be contents: read, which allows the workflow only to read repository contents. There is no evidence that write permissions or other scopes (such as pull-requests: write) are needed for any step in the provided workflow.

Change required: In .github/workflows/L1-Test.yml, add the following beneath the workflow name near the top of the file:

permissions:
  contents: read

This change limits the default permissions available to the workflow and its jobs. No changes to imports, dependencies, secret/environment variable handling, or any step definition are needed.


Suggested changeset 1
.github/workflows/L1-Test.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/L1-Test.yml b/.github/workflows/L1-Test.yml
--- a/.github/workflows/L1-Test.yml
+++ b/.github/workflows/L1-Test.yml
@@ -1,4 +1,6 @@
 name: Unit tests dcm-agent
+permissions:
+  contents: read
 on:
   pull_request:
     branches: [ develop, main ]
EOF
@@ -1,4 +1,6 @@
name: Unit tests dcm-agent
permissions:
contents: read
on:
pull_request:
branches: [ develop, main ]
Copilot is powered by AI and may make mistakes. Always verify output.
54 changes: 54 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Code Coverage

on:
pull_request:
branches: [ main, develop]

jobs:
execute-unit-code-coverage-report-on-release:
name: Test coverage report for release
runs-on: ubuntu-latest
container:
image: ghcr.io/rdkcentral/docker-rdk-ci:latest

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

- name: Run unit tests with coverage flags enabled
run: |
sh unit_test.sh --enable-cov
- name: Caculate the code coverage summary
run: |
cd ./unittest
lcov --list coverage.info | grep "Lines\|Total" > /tmp/coverage_summary.txt
cd -

- name: Update the coverage report to Pull request using actions
uses: actions/github-script@v4
with:
script: |
const fs = require('fs');
const lcov_result = fs.readFileSync('/tmp/coverage_summary.txt', 'utf8');

github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body:
'## Code Coverage Summary \n' +
' ' +
'```' +
lcov_result +
'```'
});
- name: Generate the html report
run: |
cd ./unittest
genhtml coverage.info --output-directory /tmp/coverage_report
cd -
- name: Upload the coverage report to Pull request using actions
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: /tmp/coverage_report
Comment on lines +9 to +54

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 4 months ago

To fix the problem, we need to add a permissions block to the workflow. This permissions block should be at the top level, underneath the workflow name, or inside the affected job. In this case, since only the execute-unit-code-coverage-report-on-release job is present, we may add it either globally or inside that job. For clarity and extensibility, it is recommended to add it at the top level of the workflow. The required minimum permissions for this workflow are:

  • contents: read (for checking out code)
  • issues: write (to post results as comments on the PR via github.issues.createComment)

No other permissions are required. The edit should be made directly to the .github/workflows/code-coverage.yml file, immediately after the name field (i.e., after line 1). No imports or variable definitions are needed; simply add the block in the YAML file.

Suggested changeset 1
.github/workflows/code-coverage.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml
--- a/.github/workflows/code-coverage.yml
+++ b/.github/workflows/code-coverage.yml
@@ -1,4 +1,7 @@
 name: Code Coverage
+permissions:
+  contents: read
+  issues: write
 
 on:
   pull_request:
EOF
@@ -1,4 +1,7 @@
name: Code Coverage
permissions:
contents: read
issues: write

on:
pull_request:
Copilot is powered by AI and may make mistakes. Always verify output.
2 changes: 1 addition & 1 deletion cov_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ sh build_inside_container.sh


cd $WORKDIR
./configure --prefix=${INSTALL_DIR} CFLAGS="-DRDK_LOGGER -DHAS_MAINTENANCE_MANAGER -I$ROOT/iarmmgrs/maintenance/include"
./configure --prefix=${INSTALL_DIR} CFLAGS="-DRDK_LOGGER -DHAS_MAINTENANCE_MANAGER -I$ROOT/iarmmgrs/maintenance/include -I/usr/local/include"
make && make install
15 changes: 15 additions & 0 deletions dcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ VOID dcmDaemonMainUnInit(DCMDHandle *pdcmHandle)
* @return status.
* @retval status.
*/
#ifndef GTEST_ENABLE
int main(int argc, char* argv[])
{
pid_t process_id = 0;
Expand Down Expand Up @@ -386,3 +387,17 @@ int main(int argc, char* argv[])
}
return ret;
}
#endif

#ifdef GTEST_ENABLE
void get_dcmRunJobs(const INT8* profileName, VOID *pHandle)
{
dcmRunJobs(profileName, pHandle);
}
void get_sig_handler(INT32 sig)
{
sig_handler(sig);
}
#endif


27 changes: 27 additions & 0 deletions dcm_cronparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -938,3 +938,30 @@ INT32 dcmCronParseExp(const INT8* expression, dcmCronExpr* target)
return ret;
}

#ifdef GTEST_ENABLE
INT32 (*getdcmCronParseToUpper(void)) (INT8*)
{
return &dcmCronParseToUpper;
}
UINT32 (*getdcmCronParseParseUint(void)) (const INT8*, INT32*)
{
return &dcmCronParseParseUint;
}
UINT32 (*getdcmCronParseNextSetBit(void)) (UINT8*, UINT32, UINT32, INT32*)
{
return &dcmCronParseNextSetBit;
}

INT32 (*getdcmCronParseResetMin(void)) (struct tm*, INT32)
{
return &dcmCronParseResetMin;
}
INT32 (*getdcmCronParseResetAllMin(void))(struct tm*, INT32*)
{
return &dcmCronParseResetAllMin;
}
INT32 (*getdcmCronParseSetField(void))(struct tm*, INT32, INT32)
{
return &dcmCronParseSetField;
}
#endif
8 changes: 8 additions & 0 deletions dcm_cronparse.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@

#ifndef _DCM_CRONPARSE_H_
#define _DCM_CRONPARSE_H_
#include "dcm_types.h"
#ifdef __cplusplus
extern "C"
{
#endif

/**
* Parsed cron expression
Expand All @@ -38,6 +43,9 @@ INT32 dcmCronParseExp(const INT8* expression, dcmCronExpr* target);

time_t dcmCronParseGetNext(dcmCronExpr* expr, time_t date);

#ifdef __cplusplus
}
#endif
#endif //_DCM_CRONPARSE_H_


6 changes: 4 additions & 2 deletions dcm_parseconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ static INT32 dcmSettingStoreTempConf(INT8 *pConffile, INT8 *pTempConf, INT8 *pOp
INT8 *buff = NULL;
INT32 i = 0;
INT32 ret = DCM_SUCCESS;
FILE *fp_out_opt = NULL;

FILE *fp_in = fopen(pConffile, "r");
if (fp_in == NULL) {
Expand All @@ -259,7 +260,7 @@ static INT32 dcmSettingStoreTempConf(INT8 *pConffile, INT8 *pTempConf, INT8 *pOp
goto exit1;
}

FILE *fp_out_opt = fopen(pOptConf, "w");
fp_out_opt = fopen(pOptConf, "w");
if (fp_out == NULL) {
ret = DCM_FAILURE;
DCMError("Unable to open out file: %s\n", pOptConf);
Expand Down Expand Up @@ -722,4 +723,5 @@ VOID dcmSettingsUnInit(VOID *pdcmSetHandle)
}
return dcmSettingStoreTempConf(defaultConfig, DCM_TMP_CONF, DCM_OPT_CONF);
}



25 changes: 24 additions & 1 deletion dcm_rbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>

#ifndef GTEST_ENABLE
#include "rbus.h"
#endif
#include "dcm_types.h"
#include "dcm_rbus.h"
#include "dcm_utils.h"
Expand Down Expand Up @@ -555,3 +556,25 @@ VOID dcmRbusUnInit (VOID *pDCMRbusHandle)
free(plDCMRbusHandle);

}

#ifdef GTEST_ENABLE
VOID get_rbusProcConf(rbusHandle_t handle, rbusEvent_t const* event, rbusEventSubscription_t* subscription)
{
rbusProcConf(handle, event, subscription);
}

void get_rbusAsyncSubCB(rbusHandle_t handle, rbusEventSubscription_t* subscription, rbusError_t error)
{
rbusAsyncSubCB(handle, subscription, error);
}

VOID get_rbusSetConf(rbusHandle_t handle, rbusEvent_t const* event, rbusEventSubscription_t* subscription)
{
rbusSetConf(handle, event, subscription);
}
rbusError_t get_rbusSendEventCB(rbusHandle_t handle, rbusEventSubAction_t action, const INT8* eventName, rbusFilter_t filter, int32_t interval, BOOL* autoPublish)
{
return rbusSendEventCB( handle, action, eventName, filter, interval, autoPublish);
}
#endif

6 changes: 6 additions & 0 deletions dcm_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@
#define _DCM_UTILS_H_

#ifdef HAS_MAINTENANCE_MANAGER
#ifndef GTEST_ENABLE
#include "libIBus.h"
#include "maintenanceMGR.h"
#endif
#endif

#ifndef GTEST_ENABLE
#include "rbus.h"
#endif

#ifdef RDK_LOGGER_ENABLED
#include "rdk_debug.h"
Expand Down Expand Up @@ -120,3 +124,5 @@ void DCMLOGInit();

#endif //_DCM_UTILS_H



103 changes: 103 additions & 0 deletions unit_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
#!/bin/bash

#
## Copyright 2023 Comcast Cable Communications Management, LLC
##
## Licensed under the Apache License, Version 2.0 (the "License");

Check failure on line 6 in unit_test.sh

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 'unit_test.sh' (Match: cloudnative-pg/cloudnative-pg/1.24.4, 12 lines, url: https://github.com/cloudnative-pg/cloudnative-pg/archive/refs/tags/v1.24.4.tar.gz, file: hack/show-release-diffs.sh)
## 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
#

ENABLE_COV=true

if [ "x$1" = "x--enable-cov" ]; then
echo "Enabling coverage options"
export CXXFLAGS="-g -O0 -fprofile-arcs -ftest-coverage"
export CFLAGS="-g -O0 -fprofile-arcs -ftest-coverage"
export LDFLAGS="-lgcov --coverage"
ENABLE_COV=true
fi
export TOP_DIR=`pwd`
export top_srcdir=`pwd`

cd unittest/
cp mocks/mockrbus.h /usr/local/include
automake --add-missing
autoreconf --install

./configure

make clean
make

fail=0

for test in \
./dcm_utils_gtest \
./dcm_schedjob_gtest \
./dcm_cronparse_gtest \
./dcm_parseconf_gtest \
./dcm_rbus_gtest \
./dcm_gtest
#./rdm_main_gtest \
#./rdm_utils_gtest \
#./rdm_curl_gtest \
#./rdm_json_gtest \
#./rdm_download_gtest \
#./rdm_downloadutils_gtest \
#./rdm_rbus_gtest \
#./rdm_openssl_gtest \
#./rdm_usbinstall_gtest \

do
$test
status=$?
if [ $status -ne 0 ]; then
echo "Test $test failed with exit code $status"
fail=1
fi
done

if [ $fail -ne 0 ]; then
echo "Some unit tests failed."
exit 1
fi

echo "********************"
echo "**** CAPTURE DCM-AGENT COVERAGE DATA ****"
echo "********************"
if [ "$ENABLE_COV" = true ]; then
echo "Generating coverage report"
lcov --capture --directory . --output-file coverage.info
lcov --extract coverage.info "*/dcm*.c" -o newcov.info
lcov --list newcov.info
lcov --remove coverage.info '/usr/*' --output-file coverage.info
lcov --list coverage.info
lcov --remove coverage.info "${PWD}/*" --output-file coverage.info
lcov --list coverage.info
fi

#if [ "$ENABLE_COV" = true ]; then
# echo "Generating coverage report"
# lcov --capture --directory . --output-file coverage.info
#lcov --remove coverage.info "${PWD}/*" --output-file coverage.info
#lcov --remove coverage.info "$HOME/usr/*" --output-file coverage.info
#lcov --remove coverage.info "/usr/*" --output-file coverage.info
# lcov --extract coverage.info "*/dcm*.c" -o newcov.info
# lcov --list coverage.info
# lcov --list newcov.info
#fi



cd $TOP_DIR
Loading
Loading