Ceedling | Ruby/Rake-based build and test system for C projects | Application Framework library
kandi X-RAY | Ceedling Summary
kandi X-RAY | Ceedling Summary
Ruby/Rake-based build and test system for C projects
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Processes all lines of a line
- Loads a file into the specified filename .
Ceedling Key Features
Ceedling Examples and Code Snippets
Community Discussions
Trending Discussions on Ceedling
QUESTION
I am using Jenkins on Ubuntu 20.04 to automate my build process. Two projects have been given to me and they are heavily coupled. I will work on separating the two but first I need some tests set up. The two projects are PNE and BLDC for reference.
The two projects share some code filtered by ifdefs. In my ceedling tests I created two yml files. bldc_project.yml
and pne_project.yml
. Each YML file defines the necessary variables and point to the tests to be ran for each project.
To run my tests I do
...ANSWER
Answered 2021-Dec-15 at 14:30It seems there is an issue in ceedling. I have solved the issue using symbolic links as so.
QUESTION
I have embedded system project, which I'm testing with Ceedling (=Unity and Cmock).
In one test case code under test is that simple:
...ANSWER
Answered 2021-Oct-06 at 06:28Instead of looking for a way to disable the warning, deal with the issue that the warning is about. That is, use the portable format specifiers from inttypes.h
. These are the most correct to use when printing the stdint.h
types.
QUESTION
I'm working on unit tests for a c embedded project with Bazel, first I tested the code with Ceedling (Unity and cmock) and It worked. And now, I'm trying to merge to Bazel but I did not find any document about using ceedling with Bazel.
...ANSWER
Answered 2021-Jun-24 at 16:03I have made a quick research and it looks like there is no ceedling support for Bazel. You could write some custom rules for stuff you have mentioned, but I guess, that rewriting to Bazel rules will be much easier and maintainable
QUESTION
I am new at testing embedded systems with ceedling. I was wondering if there is a good place to start in terms of learning how to use ceedling.
The project that I am working on its an embedded System for a CubeSat Project and we need a way to test our code.
...ANSWER
Answered 2020-Feb-20 at 10:10There are numerous ways of getting into it. My preference is to clone ceedling (git clone https://github.com/ThrowTheSwitch/Ceedling.git && git submodule update --init --recursive
) and run an example to see how it works.
To make the examples/temp_sensor work you need to make three modifications:
- project.yml - plugins, load_paths should be
../../plugins
- rakefile.rb - PROJECT_CEEDLING_ROOT should be
"../.."
- lib/ceedling/rakefile.rb - add a line referencing
diy/test
Here is a diff with the modifications I made on master (git commit 09a04cb55a86):
QUESTION
//myfuncs.h
void func1(void);
void func2(void;
...ANSWER
Answered 2020-Apr-02 at 06:01To my knowledge, you can't. You must split the header file into two and generate mocks for once of them.
There are unit test frameworks that can mock one or more functions in a header file, Nala (which I'm maintaining) for example. But I guess you want to use CMock with Ceedling, so it's not really an option.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Ceedling
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page