Here's where to get the code:
$ git clone https://github.com/abrt/libreport.git
$ cd libreport/
The remainder of the commands assumes you're in the top level of the Libreport git repository checkout.
When testing reporter_bugzilla.py
(and possibly other Python reporters
in the future), add src/client-python/
to your PYTHONPATH.
-
Install dependencies
First, you should install all dependent packages.
Dependencies can be listed by:
$ ./autogen.sh sysdeps
or installed by:
$ ./autogen.sh sysdeps --install
The dependency installer gets the data from the rpm spec file.
-
Build from source
When you have all dependencies installed you can now build an rpm package by using these commands:
$ tito build --test --rpm -i
Note: you have to have your changes commited.
The easiest way how to test everything (build, run tests) is to build an rpm (see, 2. Build from source in Building chapter).
For running only tests execute:
./autogen.sh
make check
(Note: If you put any arguments to ./autogen.sh
command, also put --prefix=/usr
for all tests to
work correctly)
If you need to only rerun one specific test:
cd tests
AUGEAS_LENS_LIB="/usr/share/augeas/lenses:<clone_path>/data/augeas" ./testsuite <n>
where <clone_path> is the path to your top level of the Libreport git repository checkout and <n> is the number of the test.
If you make changes in a test, before running it again, execute:
make atconfig atlocal ./testsuite
-
Fork the Libreport repository (hit fork button on https://github.com/abrt/libreport)
-
Clone your fork
-
Create and check out to a new branch in your clone (
git checkout -b <name_of_branch>
) -
... make changes...
-
Test your changes
-
Create tests for the given changes
-
Add edited files (
git add <file_name>
) -
Create commit (
git commit
) How to write a proper git commit message
Note: You can set up a helpful commit message template for your text editor by running$ git config commit.template .git-commit-template
. Remember though that committing withgit commit -m
defeats its purpose. You might want to rethink your habits. -
Push your branch (
git push -u origin <name_of_branch>
) -
Go to https://github.com/abrt/libreport and click
Compare & pull request
-
Create the PR
-
Wait for review