Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified Makefile

    r9a1df7f radde1ba  
    3636MANDIR?=$(DATAROOTDIR)/man
    3737
    38 # default python test command
    39 PYTEST?=pytest --verbose
     38# default nose2 command
     39NOSE2?=nose2 -N 4 --verbose
    4040
    4141SOX=sox
     
    139139test_python: local_dylib
    140140        # run test with installed package
    141         $(PYTEST)
     141        # ./python/tests/run_all_tests --verbose
     142        # run with nose2, multiple processes
     143        $(NOSE2)
    142144
    143145clean_python:
     
    233235        check_clean_python
    234236
     237coverage_cycle: coverage_zero_counters coverage_report
     238
     239coverage_zero_counters:
     240        lcov --zerocounters --directory .
     241
    235242coverage: export CFLAGS=--coverage
    236243coverage: export LDFLAGS=--coverage
     
    241248        lcov --capture --no-external --directory . --output-file build/coverage_lib.info
    242249        pip install -v -e .
    243         coverage run `which pytest`
     250        coverage run `which nose2`
    244251        lcov --capture --no-external --directory . --output-file build/coverage_python.info
    245252        lcov -a build/coverage_python.info -a build/coverage_lib.info -o build/coverage.info
    246253
     254# make sure we don't build the doc, which builds a temporary python module
     255coverage_report: export WAFOPTS += --disable-docs
    247256coverage_report: coverage
    248257        genhtml build/coverage.info --output-directory lcov_html
Note: See TracChangeset for help on using the changeset viewer.