Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-25915

dgcov --generate error

    XMLWordPrintable

Details

    Description

      Based on documentation:

      Usage:
                  $0 \[options\] \[git diff arguments\]
      

      The dgcov program runs gcov for code coverage analysis, and reports missing
      coverage only for those lines that are changed by the specified commit(s).
      Commits are specified in the format of git diff arguments. For example:
       * All unpushed commits:        $0 \@{u} HEAD
       * All uncommitted changes:     $0 HEAD
       * Specific commit:             $0 <commit>^ <commit>
       
      If no arguments are specified, it prints the coverage for all uncommitted
      changes, if any, otherwise for the last commit.
      

      Meaning if no changes and args in usage of dgcov than changes from last commit should be presented.
      If we debug: dgcov --generate>file and no git diff in our tree, we see that command that is invoked for printing:
      git diff --no-prefix --ignore-space-change HEAD and it results in empty result in a file.
      It should show changes from the last commit.

      serg can you please confirm above?

      Attachments

        Issue Links

          Activity

            People

              anel Anel Husakovic
              anel Anel Husakovic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.