[pgrouting-dev] Option to only test one section

Stephen Woodbridge woodbri at swoodbridge.com
Thu Aug 22 15:41:57 PDT 2013


Hi all,

I've had a couple of requests to be able to only test one algorithm when 
someone if make changes to only one area.

RUNNING: test-runner.pl -h
Usage: test-runner.pl -pgver vpg -pgisver vpgis -psql /path/to/psql
        -pgver vpg          - postgresql version
        -pgport port        - postgresql port to use (default: 5432)
        -pgisver vpgis      - postgis version
        -pgrver vpgr        - pgrouting version
        -psql /path/to/psql - optional path to psql
        -v                  - verbose messages for debuging(enter twice 
for more)
        -clean              - dropdb pgr_test__db__test
        -ignorenotice       - ignore NOTICE statements when reporting 
failures
        -alg 'dir'          - directory to select which algorithm 
subdirs to test
        -h                  - help

Example:

tools/test-runner.pl -alg tsp
tools/test-runner.pl -alg common

Will only run the 'tsp' or 'common' tests. The dir is the directory 
under 'src/' that you want to limit your test to. This tends to be much 
faster than running all the tests.

Just pushed this change to github in the develop branch.

-Steve


More information about the pgrouting-dev mailing list