Skip to content

Commit 0a239ea

Browse files
App storage functionality improvements
1 parent 7c5ae14 commit 0a239ea

File tree

5 files changed

+8
-20
lines changed

5 files changed

+8
-20
lines changed

.github/workflows/unit_tests.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,11 @@ jobs:
3333
- name: Generate code coverage
3434
run: |
3535
cd unit-tests/lib_standard_app/
36-
lcov --directory . -b "$(realpath build/)" --capture --initial -o coverage.base && \
37-
lcov --rc lcov_branch_coverage=1 --directory . -b "$(realpath build/)" --capture -o coverage.capture && \
38-
lcov --directory . -b "$(realpath build/)" --add-tracefile coverage.base --add-tracefile coverage.capture -o coverage.info && \
39-
lcov --directory . -b "$(realpath build/)" --remove coverage.info '*/unit-tests/*' -o coverage.info && \
40-
genhtml coverage.info -o coverage
36+
../gen_coverage.sh
4137
cd ../lib_nbgl/
42-
lcov --directory . -b "$(realpath build/)" --capture --initial -o coverage.base && \
43-
lcov --rc lcov_branch_coverage=1 --directory . -b "$(realpath build/)" --capture -o coverage.capture && \
44-
lcov --directory . -b "$(realpath build/)" --add-tracefile coverage.base --add-tracefile coverage.capture -o coverage.info && \
45-
lcov --directory . -b "$(realpath build/)" --remove coverage.info '*/unit-tests/*' -o coverage.info && \
46-
genhtml coverage.info -o coverage
38+
../gen_coverage.sh
4739
cd ../app_storage/
48-
lcov --directory . -b "$(realpath build/)" --capture --initial -o coverage.base && \
49-
lcov --rc lcov_branch_coverage=1 --directory . -b "$(realpath build/)" --capture -o coverage.capture && \
50-
lcov --directory . -b "$(realpath build/)" --add-tracefile coverage.base --add-tracefile coverage.capture -o coverage.info && \
51-
lcov --directory . -b "$(realpath build/)" --remove coverage.info '*/unit-tests/*' -o coverage.info && \
52-
genhtml coverage.info -o coverage
40+
../gen_coverage.sh
5341
5442
- uses: actions/upload-artifact@v4
5543
with:

unit-tests/app_storage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ CTEST_OUTPUT_ON_FAILURE=1 make -C build test
3030
Just execute in `unit-tests` folder
3131

3232
```
33-
./gen_coverage.sh
33+
../gen_coverage.sh
3434
```
3535

3636
it will output `coverage.total` and `coverage/` folder with HTML details (in `coverage/index.html`).
File renamed without changes.

unit-tests/lib_nbgl/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ and for code coverage generation:
1515

1616
### For Stax
1717

18-
In `unit-tests` folder, compile with:
18+
In `unit-tests/lib_nbgl` folder, compile with:
1919

2020
```
2121
STAX=1 cmake -Bbuild -H. && make -C build
@@ -46,7 +46,7 @@ CTEST_OUTPUT_ON_FAILURE=1 make -C build test
4646
Just execute in `unit-tests` folder
4747

4848
```
49-
./gen_coverage.sh
49+
../gen_coverage.sh
5050
```
5151

5252
it will output `coverage.total` and `coverage/` folder with HTML details (in `coverage/index.html`).

unit-tests/lib_standard_app/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ and for code coverage generation:
1313

1414
## Overview
1515

16-
In `unit-tests` folder, compile with
16+
In `unit-tests/lib_standard_app` folder, compile with
1717

1818
```
1919
cmake -Bbuild -H. && make -C build
@@ -30,7 +30,7 @@ CTEST_OUTPUT_ON_FAILURE=1 make -C build test
3030
Just execute in `unit-tests` folder
3131

3232
```
33-
./gen_coverage.sh
33+
../gen_coverage.sh
3434
```
3535

3636
it will output `coverage.total` and `coverage/` folder with HTML details (in `coverage/index.html`).

0 commit comments

Comments
 (0)