Comments (6)
It suffices to make as a top level project and -DCMAKE_BUILD_TYPE=Debug
, but you're right, it's missing in the README. I'll add it.
from trompeloeil.
But this isn't right. Debug is a different build type. Sometimes debug code works and release code doesn't work.
The Release code should be tested as it is normally built.
from trompeloeil.
I stated how it works, not how it ought to work.
from trompeloeil.
Tests don't get built with CMAKE_BUILD_TYPE=Debug
either for me.
from trompeloeil.
Hmm. Interesting.
bf@pteranodon /tmp> cmake -B build -DCMAKE_BUILD_TYPE=Debug ~/devel/trompeloeil
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test WARN_NONNULL
-- Performing Test WARN_NONNULL - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/build
bf@pteranodon /tmp> cmake --build build -t self_test thread_terror custom_recursive_mutex
Scanning dependencies of target self_test
[ 25%] Building CXX object CMakeFiles/self_test.dir/test/compiling_tests.cpp.o
[ 50%] Building CXX object CMakeFiles/self_test.dir/test/compiling_tests_11.cpp.o
[ 75%] Building CXX object CMakeFiles/self_test.dir/test/compiling_tests_14.cpp.o
[100%] Linking CXX executable self_test
[100%] Built target self_test
Scanning dependencies of target thread_terror
[ 50%] Building CXX object CMakeFiles/thread_terror.dir/test/thread_terror.cpp.o
[100%] Linking CXX executable thread_terror
[100%] Built target thread_terror
Scanning dependencies of target custom_recursive_mutex
[ 50%] Building CXX object CMakeFiles/custom_recursive_mutex.dir/test/custom_recursive_mutex.cpp.o
[100%] Linking CXX executable custom_recursive_mutex
[100%] Built target custom_recursive_mutex
bf@pteranodon /tmp> ./build/self_test && ./build/thread_terror && ./build/custom_recursive_mutex
===============================================================================
All tests passed (830 assertions in 521 test cases)
calls 263345 56363 49031 59207 53873 58819 59362
returns 263345 56363 49031 59207 53873 58819 59362
bf@pteranodon /tmp>
What failure are you seeing?
from trompeloeil.
It is added to the README now. Let me know if the description needs to be updated.
from trompeloeil.
Related Issues (20)
- How can i mock a member function of A class in a B class's function? HOT 3
- CMake version required not correct HOT 5
- Setting expectations in a function fails HOT 6
- how can I mock the static member function and non-virtual member fuctions? HOT 2
- Problematic traits for ``streamer`` primary template HOT 4
- Documentation, typo and missing bits and bobs HOT 3
- Compile error when returning values from a tl::expected with a void expected value HOT 5
- Refactoring with sequenced expectations HOT 2
- Build for QNX tests fail due to catch2 header file HOT 1
- Wrong Expectaition message HOT 1
- [Bug] Fails to run tests with catch 3.x HOT 4
- Tests fail to compile: error: 'ret_count' is an unsafe buffer that does not perform bounds checks HOT 4
- Expect call returning a reference HOT 2
- can this cppcheck inline suppression be added HOT 1
- unreal engine support & noreturn/std::abort HOT 3
- Setting side effects after creating expectactions (inside DOCTEST_SUBCASEs) HOT 5
- Feature Request: Allow specifying calling convention attributes to Mock methods HOT 12
- Spy some dependencies HOT 3
- ``trompeloeil_movable_mock`` only provides move-ctor HOT 3
- Warnings with gcc's -Weffc++ HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trompeloeil.