From e0219723aa803937902717125b7856054e1a9cbf Mon Sep 17 00:00:00 2001 From: "Jens A. Koch" Date: Mon, 23 Dec 2024 18:19:12 +0100 Subject: [PATCH] add gcov to scripts and readme, add ikos to readme --- .devcontainer/debian/bookworm/Dockerfile | 2 +- .devcontainer/debian/trixie/Dockerfile | 2 +- .devcontainer/scripts/show-tool-locations.sh | 1 + .devcontainer/scripts/show-tool-versions.sh | 1 + README.md | 3 ++- 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.devcontainer/debian/bookworm/Dockerfile b/.devcontainer/debian/bookworm/Dockerfile index ae3d70e..57972d9 100644 --- a/.devcontainer/debian/bookworm/Dockerfile +++ b/.devcontainer/debian/bookworm/Dockerfile @@ -244,7 +244,7 @@ RUN echo "Packages" && \ # profiling # gprof (is part of binutils and already installed) linux-perf \ - # code coverage + # code coverage (gcov is part of GCC) gcovr lcov \ # tracing strace ltrace \ diff --git a/.devcontainer/debian/trixie/Dockerfile b/.devcontainer/debian/trixie/Dockerfile index 1788f36..3994791 100644 --- a/.devcontainer/debian/trixie/Dockerfile +++ b/.devcontainer/debian/trixie/Dockerfile @@ -238,7 +238,7 @@ RUN echo "Packages" && \ # profiling # gprof linux-perf \ - # code coverage + # code coverage (gcov is part of GCC) gcovr lcov \ # tracing strace ltrace \ diff --git a/.devcontainer/scripts/show-tool-locations.sh b/.devcontainer/scripts/show-tool-locations.sh index 40f471c..603de58 100644 --- a/.devcontainer/scripts/show-tool-locations.sh +++ b/.devcontainer/scripts/show-tool-locations.sh @@ -50,6 +50,7 @@ show_tool_locations() { get_command_paths strace get_command_paths ltrace get_command_paths lcov + get_command_paths gcov get_command_paths gcovr get_command_paths doxygen get_command_paths sphinx-build diff --git a/.devcontainer/scripts/show-tool-versions.sh b/.devcontainer/scripts/show-tool-versions.sh index 94814da..4c22b6a 100644 --- a/.devcontainer/scripts/show-tool-versions.sh +++ b/.devcontainer/scripts/show-tool-versions.sh @@ -75,6 +75,7 @@ show_tool_versions() { strace_version=$(strace --version | head -n1 | awk '{print $4}') ltrace_version=$(ltrace --version | head -n1 | awk '{print $2}') lcov=$(lcov --version | head -n1 | awk '{print $4}') + gcov=$(gcov --version | head -n1 | awk '{print $3}' | cut -d'-' -f1) gcovr=$(gcovr --version | head -n1 | awk '{print $2}') doxygen_version=$(doxygen -v | awk '{print $1}') sphinx_version=$(sphinx-build --version | awk '{print $2}') diff --git a/README.md b/README.md index 42fe970..b977b26 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,8 @@ On top of the base image the following tools are installed: - zsh with plugins: autosuggestions, completions, history substring search - git, nano, jq - curl, wget -- cppcheck, valgrind, lcov +- cppcheck, ikos, valgrind +- lcov, gcov, gcovr - strace, ltrace - perf, gprof - CMake (latest version)