Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Sample Component Unit Tests #176

Closed
jlucas9 opened this issue Apr 26, 2023 · 3 comments
Closed

Sample Component Unit Tests #176

jlucas9 opened this issue Apr 26, 2023 · 3 comments
Assignees

Comments

@jlucas9
Copy link
Contributor

jlucas9 commented Apr 26, 2023

Requires cFS upgrade - integrate the cFS Test Framework (CTF) and create baseline set of sets for components.

@jlucas9 jlucas9 converted this from a draft issue Apr 26, 2023
@jlucas9 jlucas9 added this to the 1.6.2 milestone May 10, 2023
@jlucas9 jlucas9 moved this from Backlog to Next Release in NOS3 Path Forward May 10, 2023
@jlucas9 jlucas9 added the DSM label Jun 13, 2023
@jlucas9 jlucas9 self-assigned this Jun 30, 2023
@jlucas9 jlucas9 moved this from Next Release to Backlog in NOS3 Path Forward Jul 10, 2023
@jlucas9 jlucas9 changed the title Unit Tests Sample Component Unit Tests Oct 25, 2023
@jlucas9 jlucas9 removed this from the 1.6.3 milestone Jan 30, 2024
jlucas9 added a commit to nasa-itc/osal that referenced this issue Jun 26, 2024
jlucas9 added a commit to nasa-itc/osal that referenced this issue Jun 26, 2024
jlucas9 added a commit to nasa-itc/osal that referenced this issue Jul 1, 2024
jlucas9 added a commit to nasa-itc/hwlib that referenced this issue Jul 1, 2024
jlucas9 added a commit that referenced this issue Jul 1, 2024
@jlucas9
Copy link
Contributor Author

jlucas9 commented Jul 1, 2024

Getting closer:

98% tests passed, 3 tests failed out of 129
Total Test time (real) = 208.62 sec
The following tests FAILED:
	 72 - timer-add-api-test (Failed)
	108 - coverage-ds-ds_cmds (Failed)
	129 - coverage-sc-sc_cmds (Failed)
Errors while running CTest

@jlucas9 jlucas9 moved this from Backlog to In Progress in NOS3 Path Forward Jul 1, 2024
jlucas9 added a commit to nasa-itc/osal that referenced this issue Jul 2, 2024
jlucas9 added a commit to nasa-itc/osal that referenced this issue Jul 2, 2024
jlucas9 added a commit that referenced this issue Jul 18, 2024
@jlucas9
Copy link
Contributor Author

jlucas9 commented Jul 23, 2024

First error from coverage-ds-ds_cmds:

[BEGIN] 03 DS_SetAppStateCmd_Test_Nominal
[ FAIL] 03.001 utstubs.c:1014 - Stub DS_TableVerifyState w/return size=1, value cannot be auto-translated from int32
[ PASS] 03.002 ds_cmds_tests.c:109 - DS_SetAppStateCmd(&UT_CmdBuf.Buf)
[ FAIL] 03.003 ds_cmds_tests.c:112 - DS_AppData.CmdRejectedCounter (1) == 0 (0)
[ FAIL] 03.004 ds_cmds_tests.c:113 - DS_AppData.CmdAcceptedCounter (0) == 1 (1)
[ FAIL] 03.005 ds_cmds_tests.c:114 - DS_AppData.AppEnableState == true
[ PASS] 03.006 ds_cmds_tests.c:116 - CallCount CFE_EVS_SendEvent() (1) == 1 (1)
[ FAIL] 03.007 ds_cmds_tests.c:117 - context_CFE_EVS_SendEvent[0].EventID (36) == DS_ENADIS_CMD_EID (35)
[ FAIL] 03.008 ds_cmds_tests.c:118 - context_CFE_EVS_SendEvent[0].EventType (3) == CFE_EVS_EventType_INFORMATION (2)
[ PASS] 03.009 ds_cmds_tests.c:121 - DS_AppStateCmd_t is 32-bit aligned
[  END] 03 DS_SetAppStateCmd_Test_Nominal TOTAL::9     PASS::3     FAIL::6     MIR::0     TSF::0     TTF::0     WARN::0   

To duplicate:

make debug
make clean config test-fsw
./fsw/build/amd64-posix/default_cpu1/apps/ds/unit-test/coverage-ds-ds_cmds-testrunner

jlucas9 added a commit to nasa-itc/DS that referenced this issue Jul 23, 2024
jlucas9 added a commit to nasa-itc/SC that referenced this issue Jul 23, 2024
jlucas9 added a commit that referenced this issue Jul 23, 2024
… comment out invalid tests as functionality disabled in NOS3;
jlucas9 added a commit to nasa-itc/sample that referenced this issue Jul 23, 2024
jlucas9 added a commit to nasa-itc/sample that referenced this issue Jul 23, 2024
jlucas9 added a commit to nasa-itc/sample that referenced this issue Jul 31, 2024
jlucas9 added a commit that referenced this issue Jul 31, 2024
…s in current tests, added build-test command to iterate faster on specific tests;
jlucas9 added a commit to nasa-itc/sample that referenced this issue Aug 6, 2024
jlucas9 added a commit to nasa-itc/hwlib that referenced this issue Aug 6, 2024
jlucas9 added a commit to nasa-itc/osal that referenced this issue Aug 6, 2024
jlucas9 added a commit to nasa-itc/DS that referenced this issue Aug 6, 2024
jlucas9 added a commit to nasa-itc/SC that referenced this issue Aug 6, 2024
jlucas9 added a commit that referenced this issue Aug 6, 2024
jlucas9 added a commit that referenced this issue Aug 6, 2024
@jlucas9
Copy link
Contributor Author

jlucas9 commented Aug 6, 2024

Merged into dev

@jlucas9 jlucas9 closed this as completed Aug 6, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in NOS3 Path Forward Aug 6, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants