]> thyrsus.com Git - coverity-submit.git/commitdiff
Add ability to specify project build (-b) and tag/description (-t).
authorJames Hunt <james.hunt@ubuntu.com>
Sun, 17 Mar 2013 16:18:35 +0000 (16:18 +0000)
committerJames Hunt <james.hunt@ubuntu.com>
Sun, 17 Mar 2013 16:18:35 +0000 (16:18 +0000)
coverity-submit
coverity-submit.xml

index 27f7a7ed638690a6f2fbeba7d11fbab947ac17c6..04c693ad688f56a39f0daf2a26c18759e74192ef 100755 (executable)
@@ -34,10 +34,16 @@ if __name__ == '__main__':
     # Deduce what project and directory to operate on (and go there).
     noexec = False
     verbose = False
-    (opts, args) = getopt.getopt(sys.argv[1:], "nv")
+    build_version = None
+    description = None
+    (opts, args) = getopt.getopt(sys.argv[1:], "b:nt:v")
     for (opt, arg) in opts:
+        if opt == '-b':
+            build_version = arg
         if opt == '-n':
             noexec = True
+        if opt == '-t':
+            description = arg
         if opt == '-v':
             verbose = True
     where = os.path.basename(os.getcwd())
@@ -106,6 +112,8 @@ if __name__ == '__main__':
     Name: %(name)s
     Email: %(email)s
     Project: %(covname)s
+    Build-Version : %(build_version)s
+    Description: %(description)s
     Submitted-by: coverity-submit
     """ % globals()
     if verbose:
@@ -122,6 +130,8 @@ if __name__ == '__main__':
     --form project=%(covname)s \
     --form password=%(password)s \
     --form email=%(email)s \
+    --form version=%(build_version)s \
+    --form description=%(description)s \
      http://scan5.coverity.com/cgi-bin/upload.py \
      ''' % globals())
     try:
index 98ac5f50c89404527f6e20d6e02b97d5b862312e..0061bb9e2ce44e6031cb0ae22597a891fc391077 100644 (file)
@@ -19,7 +19,9 @@
 
 <cmdsynopsis>
   <command>coverity-submit</command>
+      <arg choice='opt'>-b <replaceable>build-version</replaceable></arg>
       <arg choice='opt'>-n </arg>
+      <arg choice='opt'>-t <replaceable>project-tag</replaceable></arg>
       <arg choice='opt'>-v </arg>
       <arg choice='opt'><replaceable>project-name</replaceable></arg>
 </cmdsynopsis>
@@ -110,6 +112,13 @@ project profiles).</para>
 would be run without actually executing them. The <option>-v</option> option 
 enables slightly more verbose progress messages.</para>
 
+<para>The <option>-b</option> option specifies an arbitrary build
+version to associate with the submission.</para>
+
+<para>The <option>-t</option> option specifies an arbitrary project tag
+or description to associate with the submission. This text is visible in the
+"snapshots" view of the Coverity web interface.</para>
+
 <para>Once <application>coverity-submit</application> has determined
 which project profile to use, it then performs the following steps:</para>