-
Notifications
You must be signed in to change notification settings - Fork 224
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
can't run unit tests #157
Comments
Sorry, didn't edit the whole template. This is on Ubuntu 16.04 I'm not that familiar with cmake though I am usually good at following instructions. Not this time, though. -Ralph Johnson |
The Caching is intentional so you only have to specify what you want on the first time you run "prep" and initially generate the build tree. From thereon it remembers the relevant settings and continues to use them, making subsequent invocations simple. While the option value can technically be changed using a tool like cmake-gui or by editing the cache file, the easiest way is to simply remove your entire build tree and start clean again. The same paradigm is true for many other build options (cross compiler/SIMULATION, BUILDTYPE, etc). |
Thanks! That makes everything work better. |
Add explicit spare bytes where the compiler is likely to introduce padding into hte message structures. CFS SB messages should avoid having any implicit padding, whenever possible.
Fix nasa#157, adjust padding in msg structs
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:
Additional context
Add any other context about the problem here.
Reporter Info
Full name and company/organization if applicable
The text was updated successfully, but these errors were encountered: