-
Notifications
You must be signed in to change notification settings - Fork 28
How to test a new feature or a pull request
Alex Liberzon edited this page Aug 19, 2016
·
3 revisions
We use use an example of a new pull request and explain how to test it. For instance, we start with the following pull request 106. Its snapshot is:
What is important to note is the name of the branch from which the pull request is submitted. What we need to do is:
- clone the branch as below or download the zip file from the respective branch
- first add the remote repository
- fetch the new repository
- clone only the necessary branch
- install openptv and run the tests (
make verify
) - install Python bindings and run their tests (
nosetests --verbose
)
So in our example what we do is clone the yosefm:segmentation_bindings
and test. It would be the following set of commands:
git clone -b segmentation_bindings --single-branch [email protected]:yosefm/openptv.git
cd openptv/liboptv/
mkdir build
cd build
cmake ../
make
make verify
sudo make install
after liboptv is installed
cd ../../py_bind
python setup.py build_ext -I/usr/local/include -L/usr/local/lib
python setup.py install
cd tests
nosetests --verbose