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

Use UT assert for OSAL unit tests #318

Merged
merged 1 commit into from
Dec 30, 2019

Conversation

jphickey
Copy link
Contributor

Describe the contribution

Fix #313

Refactor the "unit-tests" (extended/functional tests) for OSAL to use the UT assert library for test case reporting and platform support.

Reduce or eliminate the use of macros for platform abstraction wherever possible. This removes most platform-specific logic from the test cases, leaving that to the OSAL/BSP abstraction.

Testing performed
Build unit tests for all three supported test platforms and confirm operation (POSIX, VxWorks, RTEMS).

Expected behavior changes
Tests were previously only being built/executed on POSIX. Now the tests are built on all OSAL platforms, using the UT assert library.

Output logfiles are in provided by UT assert and are therefore now in the same UT assert style. This test set no longer has a different set of output files.

System(s) tested on:

  • Ubuntu 18.04 LTS 64-bit (native/posix)
  • RTEMS 4.11 on i686 (using QEMU target)
  • VxWorks 6.9 on PPC/MCP750

Additional context
This should be pulled in parallel with #317 to ensure that the POSIX platform continues to pass all tests. Note that the relevant tests (FPU, interrupt) were being skipped on POSIX., but with this change all tests are executed on all platforms.

Contributor Info
Joseph Hickey, Vantage Systems, Inc.

Community contributors
You must attach a signed CLA (required for acceptance) or reference one already submitted

Modify the "unit-tests" (extended/functional tests) for OSAL to use
the UT assert library for test case reporting and platform support.

Reduce or eliminate the use of macros for platform abstraction
wherever possible.  This removes most platform-specific logic from
the test cases, leaving that to the OSAL/BSP abstraction.
@skliper skliper self-requested a review December 17, 2019 21:55
@skliper skliper added the CCB:Approved Indicates code review and approval by community CCB label Dec 18, 2019
@skliper skliper added this to the 5.1.0 milestone Dec 18, 2019
@skliper
Copy link
Contributor

skliper commented Dec 18, 2019

CCB 20191218 - Reviewed and approved for IC

@skliper skliper changed the base branch from master to merge-20191230 December 30, 2019 21:37
@skliper skliper merged commit b1bf346 into nasa:merge-20191230 Dec 30, 2019
skliper added a commit that referenced this pull request Dec 30, 2019
Fix #295, #298, #305, #307, #308,
    #313, #314, #316, #321, #323
Reviewed and approved at 2019-12-18 CCB
@jphickey jphickey deleted the fix-313-use-utassert-for-ut branch February 13, 2020 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates code review and approval by community CCB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants