Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

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