-
Notifications
You must be signed in to change notification settings - Fork 220
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
Make OSAL tests more autonomous #29
Comments
Imported from trac issue 6. Created by jphickey on 2014-12-30T11:21:19, last modified: 2015-11-20T16:22:16 |
Trac comment by glimes on 2015-01-29 15:10:42: Click [changeset:4114552 here] to see the changeset. |
Trac comment by glimes on 2015-01-29 16:33:10: I have reviewed [changeset:4114552 changeset 4114552] and recommend ACCEPT. |
Trac comment by mlogan on 2015-01-30 18:40:10: I have reviewed and ACCEPT these changes with the following comment(s):
|
Trac comment by jphickey on 2015-01-30 21:19:29: You are correct that this change is is in an #ifdef SCRIPT_MODE in order to preserve the existing/old behavior when running a normal build. There may be some value in getting extended runtime on some of these tests, like running overnight or over a weekend, to prove out the implementation. So the idea is to preserve the current behavior of running until CTRL+C is pressed as a default. The CMake scripts always define "SCRIPT_MODE" when building these tests so that running "make test" will run them and allow them to complete in a time-limited fashion. The target was to complete the full suite of tests in about 4-5 minutes which might be reasonable for an automated build server to do. There would definitely be some value-add to putting these tests into a common UT framework like CFE has, this is just asking for a command line option to indicate "run forever" or "run short test", etc. |
Trac comment by acudmore on 2015-02-11 15:12:25: I conditionally ACCEPT The RTEMS Tools project is working on a embedded systems test framework that may be useful for CI on simulators and embedded targets: |
Trac comment by jwilmot on 2015-02-11 15:24:36: ACCEPT with Alan's comment |
Trac comment by glimes on 2015-02-12 14:39:49: Ames will check this out on VxWorks. |
Trac comment by glimes on 2015-02-12 14:58:17: Accepted by #41 for integration candidate. |
Trac comment by glimes on 2015-03-04 15:06:52: Confirmed that the fix from [changeset:c5f8cc8] is present in the https://babelfish.arc.nasa.gov/bamboo/browse/CFS-CFSOSAL |
The OSAL tests (in the "tests" directory, NOT "unit-test") provide reasonable "black-box" style testing of the OSAL features via the public API. However they are currently implemented with the expectation of being explicitly run by a user at the console, not from an automated script:
In order to integrate with a continuous integration system, these tests need to be more automated.
This ticket is to add a "script-mode" feature to the tests which:
(Note: this does not apply to the "unit-tests" directory which is more white-box style code coverage testing -- this will possibly need other tweaks to work with a CI system and that is a separate ticket)
The text was updated successfully, but these errors were encountered: