Changeset e56ac16 for Makefile


Ignore:
Timestamp:
Nov 30, 2016, 7:04:24 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, sampler, yinfft+
Children:
22e991b
Parents:
95bcdec
Message:

Makefile: improve test_python and test_pure_python

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r95bcdec re56ac16  
    3636test_python: export LD_LIBRARY_PATH=$(PWD)/build/src
    3737test_python:
     38        # clean
     39        -pip uninstall -v -y aubio
     40        ./setup.py clean
     41        $(WAFCMD) distclean
     42        # build library
     43        $(WAFCMD) configure build
     44        # install python requirements
    3845        pip install -v -r requirements.txt
     46        # install package
    3947        pip install -v .
    40         nose2 --verbose
     48        # can clean twice
     49        ./setup.py clean
     50        ./setup.py clean
     51        # run test with installed package
     52        ./python/tests/run_all_tests --verbose
     53        nose2 -N 4 #--verbose
     54        # uninstall package
    4155        pip uninstall -y -v aubio
    4256
    43 test_python_osx:
     57local_dylib:
    4458        # create links from ~/lib/lib* to build/src/lib*
    4559        [ -f build/src/libaubio.[0-9].dylib ] && ( mkdir -p ~/lib && cp -prv build/src/libaubio.[0-9].dylib ~/lib ) || true
    46         # then run the tests
    47         pip install --user -v -r requirements.txt
    48         pip install --user -v .
    49         nose2 --verbose
    50         pip uninstall -y -v aubio
     60
     61test_python_osx: local_dylib test_python
    5162
    5263clean_python:
     
    5465
    5566test_pure_python:
     67        # clean
    5668        -pip uninstall -v -y aubio
    57         -rm -rf build/ python/gen/
    58         -rm -f dist/*.egg
    59         -pip install -v -r requirements.txt
    60         CFLAGS=-Os python setup.py build_ext $(ENABLE_DOUBLE) bdist_wheel
    61         pip install dist/aubio-*.whl
    62         nose2 -N 4
     69        -$(WAFCMD) distclean
     70        ./setup.py clean
     71        # install python requirements
     72        pip install --verbose --requirement requirements.txt
     73        # compile
     74        CFLAGS=-Os python setup.py build $(ENABLE_DOUBLE)
     75        # needs recompile, disabled
     76        #./setup.py test
     77        # install package
     78        pip install --verbose .
     79        # can clean twice
     80        ./setup.py clean
     81        ./setup.py clean
     82        # run test with installed package
     83        ./python/tests/run_all_tests --verbose
     84        nose2 -N 4 #--verbose
     85        # uninstall
    6386        pip uninstall -v -y aubio
    6487
Note: See TracChangeset for help on using the changeset viewer.