Skip to content

Commit 20f9135

Browse files
authored
Merge pull request #22 from nasa/integration-candidate
Integration Candidate: 2020-04-22
2 parents 8be6f92 + 7a2951d commit 20f9135

File tree

3 files changed

+29
-20
lines changed

3 files changed

+29
-20
lines changed

README.md

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,30 @@ This sample library is a non-flight example library implementation for the cFS B
66

77
sample_lib implements SAMPLE_Function, as an example for how to build and link a library in cFS.
88

9-
## Version Notes
10-
11-
- 1.1.2: DEVELOPMENT
12-
- Added coverage test and a stub library to facilitate unit test
13-
- Minor updates (see https://github.com/nasa/sample_lib/pull/16)
14-
- 1.1.1: DEVELOPMENT
15-
- Minor updates (see https://github.com/nasa/sample_lib/pull/14)
16-
- **1.1.0 OFFICIAL RELEASE**:
17-
- Minor updates (see https://github.com/nasa/sample_lib/pull/6)
18-
- Released as part of cFE 6.7.0, Apache 2.0
19-
- **1.0.0a OFFICIAL RELEASE**:
20-
- Released as part of cFE 6.6.0a, Apache 2.0
9+
## Version History
10+
11+
#### Development Build: 1.1.3
12+
13+
- Coverage data `make lcov` includes the sample_lib code
14+
- See https://github.com/nasa/sample_lib/pull/22 for more details
15+
16+
#### Development Build: 1.1.2
17+
18+
- Added coverage test and a stub library to facilitate unit test
19+
- Minor updates (see https://github.com/nasa/sample_lib/pull/16)
20+
21+
#### Development Build: 1.1.1
22+
23+
- Minor updates (see https://github.com/nasa/sample_lib/pull/14)
24+
25+
### ***OFFICIAL RELEASE: 1.1.0***
26+
27+
- Minor updates (see https://github.com/nasa/sample_lib/pull/6)
28+
- Released as part of cFE 6.7.0, Apache 2.0
29+
30+
### ***OFFICIAL RELEASE: 1.0.0a***
31+
32+
- Released as part of cFE 6.6.0a, Apache 2.0
2133

2234
## Known issues
2335

fsw/src/sample_lib_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#define SAMPLE_LIB_MAJOR_VERSION 1
3434
#define SAMPLE_LIB_MINOR_VERSION 1
35-
#define SAMPLE_LIB_REVISION 2
35+
#define SAMPLE_LIB_REVISION 3
3636
#define SAMPLE_LIB_MISSION_REV 0
3737

3838

unit-test/CMakeLists.txt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@ foreach(SRCFILE ${LIB_SRC_FILES})
6262
${UNIT_SOURCE_FILE}
6363
)
6464

65-
# Apply the UT_C_FLAGS to the units under test
65+
# Apply the UT_COVERAGE_COMPILE_FLAGS to the units under test
6666
# This should enable coverage analysis on platforms that support this
67-
set_target_properties(ut_${TESTNAME}_object PROPERTIES
68-
COMPILE_FLAGS "${UT_C_FLAGS}")
67+
target_compile_options(ut_${TESTNAME}_object PRIVATE ${UT_COVERAGE_COMPILE_FLAGS})
6968

7069
# For this object target only, the "override" includes should be injected
7170
# into the include path BEFORE any other include path. This is so the
@@ -80,13 +79,11 @@ foreach(SRCFILE ${LIB_SRC_FILES})
8079
$<TARGET_OBJECTS:ut_${TESTNAME}_object>
8180
)
8281

83-
# This also needs to be linked with UT_C_FLAGS (for coverage)
84-
set_target_properties(${TESTNAME}-testrunner PROPERTIES
85-
LINK_FLAGS "${UT_C_FLAGS}")
86-
82+
# This also needs to be linked with UT_COVERAGE_LINK_FLAGS (for coverage)
8783
# This is also linked with any other stub libraries needed,
8884
# as well as the UT assert framework
8985
target_link_libraries(${TESTNAME}-testrunner
86+
${UT_COVERAGE_LINK_FLAGS}
9087
ut_${UT_NAME}_stubs
9188
ut_${UT_NAME}_overrides
9289
ut_cfe-core_stubs

0 commit comments

Comments
 (0)