Skip to content

can't run unit tests #157

@smalltalker55

Description

@smalltalker55

Describe the bug
I can build and run the application, but when I try to run unit tests I am told "no tests were found". Probably I am not following instructions properly, some parts seem a little vague to me.

To Reproduce
After setup, I followed the instructions in "Build and Run" which were

make SIMULATION=native prep
make
make install
cd build/exe/cpu1/
./core-cpu1

and I got results that looked reasonable. The instructions then said "Unit tests can be added with ENABLE_UNIT_TESTS=true, run with make test, and coverage reported with make lcov."

So, I tried "make SIMULATION=native ENABLE_UNIT_TESTS=true prep" followed by

make
make test

and also just "make ENABLE_UNIT_TESTS=true prep" followed by

make
make test

I guess the instructions are not clear to me. (I tried another few combinations, too, but these seemed the most reasonable).
Expected behavior
A clear and concise description of what you expected to happen.

Code snips
If applicable, add references to the software.

System observed on:

  • Hardware
  • OS: [e.g. Linux 4.4]
  • Versions [e.g. cFE 6.6, OSAL 4.2, PSP 1.3 for mcp750, any related apps]

Additional context
Add any other context about the problem here.

Reporter Info
Full name and company/organization if applicable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions