Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Creating a cutom toolchain with linter and unit testing
Creating a cutom toolchain with linter and unit testing [message #1387069] Mon, 23 June 2014 21:12 Go to next message
Johannes H is currently offline Johannes HFriend
Messages: 2
Registered: June 2014
Junior Member
My former build engine was msbuild.

A sample Project would contain the following files:

src/proj_main.c
src/proj_main.h
src/module.c
src/module.h
src/module_test.cc

Checking does not filter files.
Compiling filters out all *_test.* files.
Linting filters out all *_test.* files.
Unit testing filters out all *_main.* files.
Unit testing adds unit testing framework files. (e.G. GTest.h Gtest.cc)

The "Test" Build would run:
- Checking using CPP Check.
- Compiling using "Debug" Compile incrementally.
- Linting using PCLint incrementally.
- Unit testing using GTest
- Finally run the unit tests.

The "Test" Build is only one build configuration, there would be others.

How can i install a chain like this for one project using eclipse/CDT?
How can i install a chain like this for all new project using eclipse/CDT?

Thanks in Advance, Johannes.

Re: Creating a cutom toolchain with linter and unit testing [message #1395048 is a reply to message #1387069] Sun, 06 July 2014 09:03 Go to previous messageGo to next message
Johannes H is currently offline Johannes HFriend
Messages: 2
Registered: June 2014
Junior Member
I looked into it a bit and there may be something possible using the makefile.
I think eclipse is managing the makefile and i should not edit it directly.
What is the correct course of action here?
Is there a concept to deal with a request like the one above?
Re: Creating a cutom toolchain with linter and unit testing [message #1401658 is a reply to message #1395048] Wed, 16 July 2014 00:08 Go to previous message
Henning Riedel is currently offline Henning RiedelFriend
Messages: 310
Registered: July 2009
Senior Member
Am 06.07.2014 11:03, schrieb Johannes H:
> I looked into it a bit and there may be something possible using the
> makefile.
> I think eclipse is managing the makefile and i should not edit it directly.
> What is the correct course of action here?
> Is there a concept to deal with a request like the one above?
>

Using "Build Configurations", and excluding files from them, if not
appropriate.
Something already provided like Debug and Release configurations.
Just add new ones, like Lint and GTest.
Previous Topic:With which files does Eclipse start to compile and how to change it
Next Topic:Problems downloading artifact
Goto Forum:
  


Current Time: Thu Apr 25 05:27:24 GMT 2024

Powered by FUDForum. Page generated in 0.02825 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top