Skip to content

How to test a new feature or a pull request

Alex Liberzon edited this page Aug 19, 2016 · 3 revisions

How to test a new feature

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: screenshot of the pull request 106

What is important to note is the name of the branch from which the pull request is submitted. What we need to do is:

  1. 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
  2. install openptv and run the tests (make verify)
  3. 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