--
You received this message because you are subscribed to the Google Groups "cpputest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpputest+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,I followed the same procedure (install with apt-get), but the CPPUTEST_HOME variable is not set automatically, and I don't know where to point from my Makefile.I can't find cpputest in the 2 locations you mentionned above. After listing the contents of the package with dpkg, I can't find any include folder or the build/MakefileWorker.mk, which seems mandatory to execute the tests.I am running Ubuntu 17.04, and the package being installed is the 3.8-5.
--You received this message because you are subscribed to a topic in the Google Groups "cpputest" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cpputest/0wL-PReKc0o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cpputest+unsubscribe@googlegroups.com.
You received this message because you are subscribed to the Google Groups "cpputest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpputest+u...@googlegroups.com.
Hi Hank,CppUTest isn’t really a CppUnit fork :)
Hey Bas
This question "Where is CppUTest located?" is really relevant.
cpputest/examples use MakefileWorker.mk. The examples cannot be used with the apt-get/homebrew approach or the current instructions on cpputest.github.io (a.k.a cpputes.org)
Given that the cpputest.org suggests two ways to build
1) apt-get/home-brew
2) download, clone/unzip, configure...
cpputest/examples do not build with either!
I'd like to see an example of a makefile that works with 'apt-get install cpputest' that does not use MakefileWorker.mk
I'd also like to see the 'download, unzip, configure..." approach work with MakefileWorker.mk. It is broken and has been since the documentation tells people to configure and make from the cpputest_build subdirectory.
Can we change the post-git-clone instructions from:
$ cd cpputest_build
$ autoreconf .. -i
$ ../configure
$ make
to:
$ cd full_path_to/cpputest
$ autoreconf . -i
$ ./configure
$ make tdd
If you do that, cpputest/example works as is (an apt-get version is still needed) and all my book code examples keep working.
The only problem I know for building in cpputest/ is that some users have several builds. It seems to me that cpputest/cpputest_build is only really helpful for multiple builds. (Does that directory solve some other problem?)
What I used to do was run a script after make tdd to add symlinks so that MakefileWorker.mk has what it needs.
cd cpputest/cpputest_build/clang
ln -s $../../include include
ln -s $../../build build
or
cd cpputest/cpputest_build/gcc
ln -s $../../include include
ln -s $../../build build
Then someone can export CPPUTEST_HOME= full_path_to/cpputest_build/gcc and MakefileWorks.mk stuff still works.
Regarding and example without MakefileWorker.mk, I'd love to see your recommend way of using apt-get install cpputest
thanks, James
Hi John
I have the book code on GitHub now and it has its instructions. To deal with compiler evolution, my instructions have you building cpputest and the book code in a Docker container.
https://github.com/jwgrenning/tddec-code
I think having CppUTest and you test code in Docker is the way to go for a controlled test environment.
This is brand new so if you discover and things that could improve it, please let me know.
HTH, James
James Grenning
Author of Test-Driven Development for Embedded C
wingman-sw.com
wingman-sw.com/blog
@jwgrenning
facebook.com/wingman.sw
Cell: +1 847-630-0998
To unsubscribe from this group and stop receiving emails from it, send an email to cpputest+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
James Grenning
Author of Test-Driven Development for Embedded C
wingman-sw.com
wingman-sw.com/blog
@jwgrenning
facebook.com/wingman.sw
Cell: +1 847-630-0998
--
You received this message because you are subscribed to a topic in the Google Groups "cpputest" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cpputest/0wL-PReKc0o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cpputest+unsubscribe@googlegroups.com.
You are welcome. I just created the Docker instructions.
TDD for embedded... not impossible and well worth it :-)
It's all just code.