Skip to main content

Provide JUnit output to Linux checkpatch.pl script

Project description

checkpatch-junit

Python Version OS License CodeStyle

A Python program to generate JUnit XML test result from Linux script checkpatch.pl output.

Then, this result can be consumed by continuous integration tools (Jenkins, GitLab CI ...) to provide nice information display.

Installation

Clone and install from GitHub

git clone https://github.com/mastiggia/checkpatch-junit
python setup.py install

Usage

checkpatch-junit [-h] [-c checkpatch.pl] [--checkpatch-args arg1,arg2,...]
                 [-o outfile.xml] [--ignore-check] [--ignore-warning]
                 FILE [FILE ...]

Provide JUnit output to Linux checkpatch.pl script

positional arguments:
  FILE                  patch to analyze with checkpatch.pl

options:
  -h, --help            show this help message and exit
  -c checkpatch.pl      path to the checkpatch.pl script to use
  --checkpatch-args arg1,arg2,...
                        extra arguments to pass to checkpatch.pl, separated by
                        commas instead of spaces
  -o outfile.xml        output JUnit XML file
  --ignore-check        ignore checkpatch.pl check messages
  --ignore-warning      ignore checkpatch.pl warning messages

Basic example:

checkpatch-junit -c scripts/checkpatch.pl --checkpatch-args=--no-tree *.patch -o checkpatch.xml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

checkpatch-junit-0.0.1.tar.gz (16.0 kB view hashes)

Uploaded Source

Built Distribution

checkpatch_junit-0.0.1-py3-none-any.whl (16.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page