unity-test-framework

How to run bundle install as normal user

☆樱花仙子☆ 提交于 2019-12-23 12:34:53
问题 I am attempting to use bundle install . I am not a Ruby user - this is my first real foray into even running rake. I'm simply trying to user some packages from ThrowtheSwitch.org that use Rake and so on. I initially installed ruby several days ago using: sudo apt-get install ruby-full This allowed me to use rake with Unity testing framework. Now I'd like to use CMock. the instructions for using CMock say to cd into the directory then $ bundle install $ bundle exec rake So I install bundler

Unit test C with compiler specific keywords

倾然丶 夕夏残阳落幕 提交于 2019-12-12 20:30:49
问题 I am writing unit tests for some embedded C, that run on a host machine (not testing on target yet) and compile with GCC. I have been using the Ceedling build system with the Unity testing framework to test. One of the files I would like to test includes a file (say a.h) that includes another file (say, cpu.h) that is part of the board support package from the embedded device vendor, and uses keywords specific to the target compiler (e.g. __cregister , such as in extern __cregister volatile