Ignore:
Timestamp:
Nov 29, 2018, 2:27:49 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
c6bb567a
Parents:
703cc2b
Message:

[tests] create test sound from waf, add -DAUBIO_TESTS_SOURCE=

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/wscript_build

    r703cc2b r505b49a  
    88programs_sources = ctx.path.ant_glob('src/**/*.c')
    99
     10test_sound_target = '44100Hz_44100f_sine441_stereo.wav'
     11test_sound_abspath = bld.path.get_bld().make_node(test_sound_target)
     12
     13bld(name='create_test_source',
     14    rule='python ${SRC} ${TGT}',
     15    source='create_test_source.py',
     16    target=test_sound_target)
     17
    1018for source_file in programs_sources:
    1119    target = os.path.basename(os.path.splitext(str(source_file))[0])
     
    1624            use = uselib,
    1725            install_path = None,
    18             defines = 'AUBIO_UNSTABLE_API=1',
     26            defines = ['AUBIO_UNSTABLE_API=1',
     27                        'AUBIO_TESTS_SOURCE=\"{}\"'.format(test_sound_abspath)]
    1928       )
Note: See TracChangeset for help on using the changeset viewer.