Add tests to Release build
Summary
Currently the tests are only built and run in Debug build mode. As the Release build is the more realistic scenario, we should also run the tests with the Release build.
- Build tests for both Debug and Release build types
- Add Release tests to pipeline
Expected Behavior
What did you expect how the software should behave?
Actual Behavior
What did the software actually do?
Steps to Reproduce the Problem
Please describe, step by step, how others can reproduce the problem. Please try these steps for yourself on a clean system.
Specifications
- Version: Which version of this software?
- Platform: Which operating system, which other relevant software versions?
Possible fixes
Do you have ideas how the issue can be resolved?
Designs
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Joscha Schmiedt added EnhancementProposed label
added EnhancementProposed label
- Joscha Schmiedt changed iteration to Sprint Sep 2, 2024 - Sep 15, 2024
changed iteration to Sprint Sep 2, 2024 - Sep 15, 2024
- Joscha Schmiedt assigned to @joschaschmiedt
assigned to @joschaschmiedt
- Joscha Schmiedt mentioned in merge request !54 (merged)
mentioned in merge request !54 (merged)
- Joscha Schmiedt changed the description
Compare with previous version changed the description
- Joscha Schmiedt mentioned in merge request !57 (merged)
mentioned in merge request !57 (merged)
- GitLab Automation Bot removed iteration Sprint Sep 2, 2024 - Sep 15, 2024
removed iteration Sprint Sep 2, 2024 - Sep 15, 2024
- GitLab Automation Bot changed iteration to Sprint Sep 16, 2024 - Sep 29, 2024
changed iteration to Sprint Sep 16, 2024 - Sep 29, 2024
- Joscha Schmiedt added Statusdoing label
added Statusdoing label
- Joscha Schmiedt added StatusReview label and removed Statusdoing label
added StatusReview label and removed Statusdoing label
- Joscha Schmiedt assigned to @daniel
assigned to @daniel
- OwnerResolved by Daniel Hornung
make test-debug
fails for me with[...] [ 73%] Building CXX object test/CMakeFiles/test_value.dir/test_value.cpp.o Error running '': no such file or directory Error running '': no such file or directory Error running '': no such file or directory cd /home/daniel/indiscale/software/linkahead/caosdb-cpplib/build/Debug/test && /home/daniel/.conan2/p/cmakefaa1321642d5b/p/bin/cmake -E __run_co_compile --tidy=";,-cert-err58-cpp,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-owning-memory,- modernize-use-trailing-return-type,-google-readability-avoid-underscore-in-googletest-name,-cppcoreguidelines-avoid-magic-numbers,-readability-magic-numbers,-cppcoreguidelines-avoid-goto,-hicpp-avoid-goto,-readability-function-cognitive-complexity,-cppcoreguideline s-non-private-member-variables-in-classes,-misc-non-private-member-variables-in-classes,-clang-analyzer-cplusplus.Move,-clang-diagnostic-unused-result;--extra-arg-before=--driver-mode=g++" --source=/home/daniel/indiscale/software/linkahead/caosdb-cpplib/test/test_t ransaction.cpp -- /usr/bin/c++ -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_STACKTRACE_ADDR2LINE_LOCATION=\"/usr/bin/addr2line\" -DBOOST_STACKTRACE_USE_ADDR2LINE -DBOOST_STACKTRACE_USE_BACKTRACE -DBOOST_STACKTRACE_USE_NOOP -DCARES_STATICLIB -I/home/daniel/indiscale/softwar e/linkahead/caosdb-cpplib/build/Debug/include -I/home/daniel/indiscale/software/linkahead/caosdb-cpplib/build/Debug/test/include -I/home/daniel/indiscale/software/linkahead/caosdb-cpplib/build/Debug/test -I/home/daniel/indiscale/software/linkahead/caosdb-cpplib/inc lude -I/home/daniel/indiscale/software/linkahead/caosdb-cpplib/src -isystem /home/daniel/.conan2/p/b/gtest45d8685cdeabf/p/include -isystem /home/daniel/.conan2/p/b/grpc73b510927ff39/p/include -isystem /home/daniel/.conan2/p/b/abseia571bf0de6b3a/p/include -isystem / home/daniel/.conan2/p/b/zlib43c06a810cc76/p/include -isystem /home/daniel/.conan2/p/b/proto7e5f17eee486b/p/include -isystem /home/daniel/.conan2/p/b/boosta8389bd4d8e71/p/include -isystem /home/daniel/.conan2/p/b/libba6304739c7626f/p/include -m64 -g -std=c++17 -fPIE -MD -MT test/CMakeFiles/test_transaction.dir/test_transaction.cpp.o -MF CMakeFiles/test_transaction.dir/test_transaction.cpp.o.d -o CMakeFiles/test_transaction.dir/test_transaction.cpp.o -c /home/daniel/indiscale/software/linkahead/caosdb-cpplib/test/test_transact ion.cpp [ 75%] Building CXX object test/CMakeFiles/test_clinkahead.dir/test_clinkahead.cpp.o cd /home/daniel/indiscale/software/linkahead/caosdb-cpplib/build/Debug/test && /home/daniel/.conan2/p/cmakefaa1321642d5b/p/bin/cmake -E __run_co_compile --tidy=";,-cert-err58-cpp,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-owning-memory,- modernize-use-trailing-return-type,-google-readability-avoid-underscore-in-googletest-name,-cppcoreguidelines-avoid-magic-numbers,-readability-magic-numbers,-cppcoreguidelines-avoid-goto,-hicpp-avoid-goto,-readability-function-cognitive-complexity,-cppcoreguideline s-non-private-member-variables-in-classes,-misc-non-private-member-variables-in-classes,-clang-analyzer-cplusplus.Move,-clang-diagnostic-unused-result;--extra-arg-before=--driver-mode=g++" --source=/home/daniel/indiscale/software/linkahead/caosdb-cpplib/test/test_v alue.cpp -- /usr/bin/c++ -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_STACKTRACE_ADDR2LINE_LOCATION=\"/usr/bin/addr2line\" -DBOOST_STACKTRACE_USE_ADDR2LINE -DBOOST_STACKTRACE_USE_BACKTRACE -DBOOST_STACKTRACE_USE_NOOP -DCARES_STATICLIB -I/home/daniel/indiscale/software/link ahead/caosdb-cpplib/build/Debug/include -I/home/daniel/indiscale/software/linkahead/caosdb-cpplib/build/Debug/test/include -I/home/daniel/indiscale/software/linkahead/caosdb-cpplib/build/Debug/test -I/home/daniel/indiscale/software/linkahead/caosdb-cpplib/include - I/home/daniel/indiscale/software/linkahead/caosdb-cpplib/src -isystem /home/daniel/.conan2/p/b/gtest45d8685cdeabf/p/include -isystem /home/daniel/.conan2/p/b/grpc73b510927ff39/p/include -isystem /home/daniel/.conan2/p/b/abseia571bf0de6b3a/p/include -isystem /home/d aniel/.conan2/p/b/zlib43c06a810cc76/p/include -isystem /home/daniel/.conan2/p/b/proto7e5f17eee486b/p/include -isystem /home/daniel/.conan2/p/b/boosta8389bd4d8e71/p/include -isystem /home/daniel/.conan2/p/b/libba6304739c7626f/p/include -m64 -g -std=c++17 -fPIE -MD - MT test/CMakeFiles/test_value.dir/test_value.cpp.o -MF CMakeFiles/test_value.dir/test_value.cpp.o.d -o CMakeFiles/test_value.dir/test_value.cpp.o -c /home/daniel/indiscale/software/linkahead/caosdb-cpplib/test/test_value.cpp gmake[3]: *** [test/CMakeFiles/test_info.dir/build.make:76: test/CMakeFiles/test_info.dir/test_info.cpp.o] Fehler 1 gmake[3]: *** [test/CMakeFiles/test_configuration.dir/build.make:76: test/CMakeFiles/test_configuration.dir/test_configuration.cpp.o] Fehler 1 gmake[3]: Verzeichnis „/home/daniel/indiscale/software/linkahead/caosdb-cpplib/build/Debug“ wird verlassen gmake[3]: Verzeichnis „/home/daniel/indiscale/software/linkahead/caosdb-cpplib/build/Debug“ wird verlassen gmake[3]: *** [test/CMakeFiles/test_issues.dir/build.make:76: test/CMakeFiles/test_issues.dir/test_issues.cpp.o] Fehler 1 gmake[3]: Verzeichnis „/home/daniel/indiscale/software/linkahead/caosdb-cpplib/build/Debug“ wird verlassen Error running '': no such file or directory Error running '': no such file or directorygmake[2]: *** [CMakeFiles/Makefile2:402: test/CMakeFiles/test_configuration.dir/all] Fehler 2 [...]
Edited by Daniel Hornung 2 replies Last reply by Daniel Hornung
- Daniel Hornung closed
closed
- Daniel Hornung unassigned @daniel
unassigned @daniel
- Daniel Hornung removed StatusReview label
removed StatusReview label
- Daniel Hornung reopened
reopened
- Daniel Hornung assigned to @daniel
assigned to @daniel
- Daniel Hornung added StatusReview label
added StatusReview label
- Daniel Hornung marked the checklist item Build tests for both Debug and Release build types as completed
marked the checklist item Build tests for both Debug and Release build types as completed
- Daniel Hornung marked the checklist item Add Release tests to pipeline as completed
marked the checklist item Add Release tests to pipeline as completed