-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Figueroa
committed
Aug 5, 2024
1 parent
0539508
commit 4095156
Showing
14 changed files
with
94 additions
and
11 deletions.
There are no files selected for viewing
Submodule cf
updated
27 files
+4 −4 | config/default_cf_extern_typedefs.h | |
+69 −69 | config/default_cf_fcncodes.h | |
+14 −9 | config/default_cf_interface_cfg.h | |
+3 −3 | config/default_cf_tblstruct.h | |
+13 −16 | docs/dox_src/cfs_cf.dox | |
+100 −95 | eds/cf.xml | |
+124 −124 | fsw/inc/cf_events.h | |
+11 −11 | fsw/src/cf_app.c | |
+24 −40 | fsw/src/cf_cfdp.c | |
+3 −3 | fsw/src/cf_cfdp_dispatch.c | |
+6 −4 | fsw/src/cf_cfdp_pdu.h | |
+18 −18 | fsw/src/cf_cfdp_r.c | |
+13 −13 | fsw/src/cf_cfdp_s.c | |
+4 −5 | fsw/src/cf_cfdp_sbintf.c | |
+6 −18 | fsw/src/cf_cfdp_types.h | |
+52 −52 | fsw/src/cf_cmd.c | |
+4 −6 | fsw/src/cf_eds_dispatch.c | |
+6 −3 | fsw/src/cf_utils.c | |
+7 −7 | unit-test/cf_app_tests.c | |
+2 −2 | unit-test/cf_cfdp_dispatch_tests.c | |
+20 −20 | unit-test/cf_cfdp_r_tests.c | |
+13 −13 | unit-test/cf_cfdp_s_tests.c | |
+3 −3 | unit-test/cf_cfdp_sbintf_tests.c | |
+23 −23 | unit-test/cf_cfdp_tests.c | |
+82 −82 | unit-test/cf_cmd_tests.c | |
+1 −1 | unit-test/cf_utils_tests.c | |
+1 −1 | unit-test/stubs/cf_utils_stubs.c |
Submodule cs
updated
14 files
+5 −5 | fsw/inc/cs_events.h | |
+39 −39 | fsw/inc/cs_msgdefs.h | |
+2 −2 | fsw/src/cs_app.c | |
+2 −2 | fsw/src/cs_cmds.c | |
+4 −4 | fsw/src/cs_compute.c | |
+2 −2 | fsw/src/cs_init.c | |
+15 −15 | fsw/src/cs_table_processing.c | |
+1 −1 | fsw/src/cs_utils.c | |
+1 −1 | fsw/src/cs_utils.h | |
+2 −2 | unit-test/cs_app_tests.c | |
+2 −2 | unit-test/cs_cmds_tests.c | |
+2 −2 | unit-test/cs_compute_tests.c | |
+3 −3 | unit-test/cs_init_tests.c | |
+1 −1 | unit-test/cs_utils_tests.c |
Submodule ds
updated
17 files
+6 −6 | fsw/inc/ds_events.h | |
+0 −2 | fsw/inc/ds_extern_typedefs.h | |
+2 −2 | fsw/inc/ds_msgdefs.h | |
+3 −3 | fsw/src/ds_app.c | |
+2 −0 | fsw/src/ds_app.h | |
+1 −1 | fsw/src/ds_appdefs.h | |
+3 −3 | fsw/src/ds_cmds.c | |
+3 −3 | fsw/src/ds_dispatch.c | |
+116 −123 | fsw/src/ds_file.c | |
+0 −2 | fsw/src/ds_file.h | |
+9 −7 | fsw/src/ds_table.c | |
+0 −32 | fsw/tables/ds_file_tbl.c | |
+1 −1 | unit-test/ds_app_tests.c | |
+4 −5 | unit-test/ds_cmds_tests.c | |
+1 −1 | unit-test/ds_dispatch_tests.c | |
+74 −78 | unit-test/ds_file_tests.c | |
+5 −4 | unit-test/ds_table_tests.c |
Submodule fm
updated
9 files
+5 −5 | fsw/inc/fm_events.h | |
+2 −2 | fsw/inc/fm_msgdefs.h | |
+3 −3 | fsw/src/fm_app.c | |
+11 −14 | fsw/src/fm_child.c | |
+4 −5 | fsw/src/fm_cmd_utils.c | |
+6 −7 | fsw/src/fm_cmds.c | |
+1 −1 | fsw/src/fm_dispatch.c | |
+4 −4 | unit-test/fm_app_tests.c | |
+2 −2 | unit-test/fm_cmds_tests.c |
Submodule hk
updated
5 files
+1 −1 | docs/dox_src/cfs_hk.dox | |
+3 −3 | fsw/inc/hk_events.h | |
+2 −2 | fsw/inc/hk_msgdefs.h | |
+3 −3 | fsw/src/hk_app.c | |
+3 −3 | unit-test/hk_app_tests.c |
Submodule hs
updated
12 files
+13 −13 | config/default_hs_fcncodes.h | |
+5 −5 | fsw/inc/hs_eventids.h | |
+2 −2 | fsw/src/hs_app.c | |
+1 −1 | fsw/src/hs_cmds.c | |
+1 −1 | fsw/src/hs_dispatch.c | |
+1 −1 | fsw/src/hs_dispatch.h | |
+2 −3 | fsw/src/hs_eds_dispatch.c | |
+1 −0 | fsw/src/hs_monitors.c | |
+11 −11 | unit-test/hs_app_tests.c | |
+1 −1 | unit-test/hs_cmds_tests.c | |
+1 −1 | unit-test/hs_dispatch_tests.c | |
+3 −3 | unit-test/hs_monitors_tests.c |
Submodule lc
updated
6 files
+8 −8 | config/default_lc_fcncodes.h | |
+3 −3 | fsw/inc/lc_eventids.h | |
+3 −1 | fsw/src/lc_cmds.c | |
+1 −1 | fsw/src/lc_dispatch.c | |
+10 −0 | fsw/src/lc_watch.c | |
+7 −7 | unit-test/lc_dispatch_tests.c |
Submodule md
updated
5 files
+2 −2 | fsw/inc/md_events.h | |
+1 −1 | fsw/inc/md_msgdefs.h | |
+2 −2 | fsw/src/md_app.c | |
+1 −0 | fsw/src/md_dwell_tbl.c | |
+2 −2 | unit-test/md_app_tests.c |
Submodule mm
updated
8 files
+2 −2 | fsw/inc/mm_events.h | |
+13 −13 | fsw/inc/mm_msgdefs.h | |
+6 −6 | fsw/src/mm_app.c | |
+7 −3 | fsw/src/mm_dump.c | |
+7 −2 | fsw/src/mm_utils.c | |
+1 −1 | fsw/src/mm_utils.h | |
+20 −13 | unit-test/mm_app_tests.c | |
+1 −1 | unit-test/mm_utils_tests.c |
Submodule sc
updated
10 files
+6 −6 | config/default_sc_fcncodes.h | |
+4 −4 | fsw/inc/sc_events.h | |
+8 −2 | fsw/src/sc_app.c | |
+1 −1 | fsw/src/sc_cmds.c | |
+2 −3 | fsw/src/sc_dispatch.c | |
+1 −1 | fsw/src/sc_dispatch.h | |
+1 −1 | fsw/src/sc_utils.h | |
+2 −2 | unit-test/sc_app_tests.c | |
+1 −1 | unit-test/sc_cmds_tests.c | |
+22 −22 | unit-test/sc_dispatch_tests.c |
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,25 @@ | ||
<?xml version="1.0"?> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | ||
<xsl:output method="xml" encoding="UTF-8"/> | ||
<xsl:variable name="merge_items" select="document($merge_file)/results/errors/error" /> | ||
|
||
<!-- A default template that makes an XML output identical to the input --> | ||
<xsl:template match="@* | node()"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="@* | node()"/> | ||
</xsl:copy> | ||
</xsl:template> | ||
|
||
<!-- | ||
A specific template for the "errors" element, which includes: | ||
all the "error" child elements from this element | ||
all the "error" elements from the merged document | ||
--> | ||
<xsl:template match="results/errors"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="error" /> | ||
<xsl:apply-templates select="$merge_items" /> | ||
</xsl:copy> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |
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,17 @@ | ||
<?xml version="1.0"?> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | ||
<xsl:output method="text" encoding="UTF-8"/> | ||
<xsl:template match="/">## CppCheck <xsl:value-of select="//cppcheck/@version"/> Summary | ||
<xsl:if test="count(//error) > 0"> | ||
| error | warning | style | performance | portability | information | | ||
| --- | --- | --- | --- | --- | --- | | ||
| <xsl:value-of select="count(//error[@severity='error'])"/> | <xsl:value-of select="count(//error[@severity='warning'])"/> | <xsl:value-of select="count(//error[@severity='style'])"/> | <xsl:value-of select="count(//error[@severity='performance'])"/> | <xsl:value-of select="count(//error[@severity='portability'])"/> | <xsl:value-of select="count(//error[@severity='information'])"/> | | ||
|
||
| severity | location | error id | issue | | ||
| --- | --- | --- | --- | | ||
<xsl:for-each select="results//error">| <xsl:value-of select="@severity"/> | <xsl:value-of select="location/@file"/>:<xsl:value-of select="location/@line"/> | <xsl:value-of select="@id"/> | <xsl:value-of select="@msg"/> | | ||
</xsl:for-each> | ||
</xsl:if> | ||
**<xsl:value-of select="count(//error)"/> error(s) reported** | ||
</xsl:template> | ||
</xsl:stylesheet> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
# cd cert_testbed | ||
DIR=$(pwd) # Save the current working directory to DIR | ||
applist="cf cs ds fm hk hs lc md mm sc" | ||
app=$1 | ||
make distclean | ||
|
||
# # change directory to app to be tested | ||
# if [[ " $applist " =~ " $app " ]]; then | ||
# cd apps/${app} | ||
# else | ||
# cd ${app} | ||
# fi | ||
|
||
# default | ||
cppcheck_xslt_path="nasa/cFS/main/.github/scripts" | ||
source="${app}" | ||
|
||
if [ ${app} = "osal" ]; then | ||
cmake_project_options="-DENABLE_UNIT_TESTS=TRUE -DOSAL_OMIT_DEPRECATED=TRUE -DOSAL_SYSTEM_BSPTYPE=generic-linux" | ||
else | ||
cmake_project_options="" | ||
fi | ||
|
||
# Fetch conversion XSLT | ||
wget -O cppcheck-xml2text.xslt https://github.com/raw/${cppcheck_xslt_path}/cppcheck-xml2text.xslt | ||
wget -O cppcheck-merge.xslt https://github.com/raw/${cppcheck_xslt_path}/cppcheck-merge.xslt | ||
|
||
|
||
# For a CMake-based project, get the list of files by setting up a build with CMAKE_EXPORT_COMPILE_COMMANDS=ON and | ||
# referencing the compile_commands.json file produced by the tool. This will capture the correct include paths and | ||
# compile definitions based on how the source is actually compiled. | ||
if [ -n "$cmake_project_options" ]; then | ||
# CMake Setup | ||
cmake -DCMAKE_INSTALL_PREFIX=$DIR/staging -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=debug ${cmake_project_options} -S ${source} -B build | ||
export CPPCHECK_OPTS="--project=\"${DIR}/build/compile_commands.json\"" | ||
else | ||
# Non-CMake Setup | ||
export CPPCHECK_OPTS="${DIR}/${source}" | ||
echo ${CPPCHECK_OPTS} | ||
fi |