Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Missing Documentation on HowTo Build/Run Unit and Functional Tests #194

Closed
skliper opened this issue Sep 30, 2019 · 6 comments
Closed

Missing Documentation on HowTo Build/Run Unit and Functional Tests #194

skliper opened this issue Sep 30, 2019 · 6 comments
Assignees
Milestone

Comments

@skliper
Copy link
Contributor

skliper commented Sep 30, 2019

At a minimum a simple readme file should be included under the functional, black box, and white box unit test directories to provide users with some guidance on how to build and run each set of tests.

@skliper skliper added this to the osal-5.0.1 milestone Sep 30, 2019
@skliper skliper self-assigned this Sep 30, 2019
@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Imported from trac issue 171. Created by sstrege on 2016-07-08T12:45:47, last modified: 2019-08-14T14:11:46

@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Trac comment by abrown4 on 2016-08-23 18:20:43:

FYI, Added the helpful script used for testing #189 on pc-linux. Run twice to test both the pc-linux mqueue and socket implementations.

@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Trac comment by jhageman on 2019-07-03 13:34:40:

Moved open 4.2.2 tickets to 4.3.1

@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Trac comment by jhageman on 2019-07-26 15:13:16:

Milestone renamed

@CDKnightNASA
Copy link
Contributor

CDKnightNASA commented Mar 31, 2020

While I'd love to write this documentation, I actually don't know how to build OSAL standalone with cmake. @jphickey ?

@skliper skliper added the docs label Apr 10, 2020
@skliper skliper modified the milestones: 5.1.0, 5.2.0 Jun 5, 2020
@skliper skliper modified the milestones: 5.2.0, 6.0.0 Sep 1, 2020
@jphickey
Copy link
Contributor

jphickey commented Apr 2, 2021

There is a "Quick Start" section about how to do this in the README. it is somewhat buried toward the bottom, after the version history, so its possible that most users don't see it there. Basically it says:

mkdir build_osal_test
cd build_osal_test
cmake -DENABLE_UNIT_TESTS=true -DOSAL_SYSTEM_BSPTYPE=generic-linux -DOSAL_CONFIG_DEBUG_PERMISSIVE_MODE=TRUE ..
make
make test

I just confirmed these commands do in fact still work. I can build OSAL standalone from CFE, using the above command, and "make test" runs the tests.

Other than the issue of visibility - I do think this "quick start" section should be more prominent - is there more info that we need to put here? The commands seem to work for me, and seems clear enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants