Forum Replies Created
-
AuthorPosts
-
dmottParticipant
Thanks for the clarification.
Working directory…does not have effect…with the Advanced CMake Project Subsystem.
Suggestion to disable it in this mode to avoid confusion.
Also WRT the clean option, thanks for the clarification.
Suggestion to default to a ‘smart’ clean option.
if (${CMAKE_BINARY_DIR} EQUALS ${CMAKE_HOME_DIRECTORY})
cmake –build . –target clean
else()
rm -rf *
endif()
- This reply was modified 5 years, 7 months ago by dmott.
dmottParticipantThanks, I updated the example here. This is also what I’m seeing in the production build. The test discovery phase seems to only scan the first GTest binary though multiple are being created.
Please advise
dmottParticipantHere’s a project with a similar symptom. This one is showing one of the tests in the test explorer but another isn’t discovered.
dmottParticipantI was able to run one test today but as it happens I performed a bit of work on our build system today and it’s stopped working. All the test build targets show up in the solution explorer, everything compiles and executing ‘make test’ runs the gtest binaries.
At the end of the build I see this in the output panel:
VisualGDB: Warning: _ZN7testing8internal12UnitTestImpl11RunAllTestsEv not found in the output file. Please ensure that your test framework is initialized properly.
The Tests panel shows this:
[2/16/2018 5:10:48 PM Informational] —— Discover test started ——
[2/16/2018 5:10:49 PM Informational] Loading …xxx.vgdbtestcontainer…
[2/16/2018 5:10:49 PM Informational] Downloading ….xxx_tests to discover tests…[2/16/2018 5:10:51 PM Informational] Test container loaded (lookup: 2 msec, fetch: 932 msec, symbol list: 49 msec)
[2/16/2018 5:10:51 PM Error] Value cannot be null.
Parameter name: filePath
[2/16/2018 5:10:51 PM Informational] ========== Discover test finished: 3 found (0:00:02.2780564) ==========It also seems to drop and reconnect the ssh session.
Please advise
dmottParticipantall set, what should I look at?
dmottParticipantI went through the walk-through here: https://visualgdb.com/tutorials/tests/googletest/. The sample project compiles but the tests dont appear in the test explorer window.
Please advise
dmottParticipantInteresting. Now after the successful build a popup says ‘Your version of VisualGDB does not support linux’ Its a large project with a lot of targets, which project types support integrated gtest?
dmottParticipantTestFramework.cmake:
#...comments... include_directories(TestFramework/include TestFramework TestFramework/Platforms) add_definitions() target_link_libraries(pthread)
dmottParticipantI can appreciate the complications with a process debugging itself but it seems the claims of the product’s capabilities are a bit disingenuous. Has the JTAG debugging on x86 been tested? If so, what setup was used?
dmottParticipantThanks for the info. Do you have a list of supported machines with JTAGs or a list of machines that are known to work and same with JTAG interfaces?
dmottParticipantI’m using DropBear SSH server on the target and OpenSSH on the build machine.
dmottParticipantHi Bazis, thanks for the reply. My kernel is custom (non-linux) so need some power tools to debug ACPI, PCI and processor tables (GDT/IDT), etc. Short of going with ICE or JTAG, Bochs is the best thing I’ve found so far. It has a built in GDB-ish debugger but also includes a native GDB stub. If you have a go at it with any success please let me know. My thought was to create a VSIX with a debug engine and some tool windows to inspect processor tables, etc because Bochs has nearly everything already written on the back end for it but the VSIX SDK makes me ill. Debugging a kernel as the processor sees it without injecting code is a challenge with few solutions at present.
-
AuthorPosts