Changes in tests/wscript_build [242e923:281381f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/wscript_build
r242e923 r281381f 8 8 programs_sources = ctx.path.ant_glob('src/**/*.c') 9 9 10 test_sound_target = '44100Hz_44100f_sine441_stereo.wav'11 test_sound_abspath = bld.path.get_bld().make_node(test_sound_target)12 # workaround to double escape backslash characters on windows13 test_sound_abspath = str(test_sound_abspath).replace('\\', '\\\\')14 15 b = bld(name='create_tests_source',16 rule='python ${SRC} ${TGT}',17 source='create_tests_source.py',18 target=test_sound_target)19 # use post() to create the task, keep a reference to it20 b.post()21 create_tests_source = b.tasks[0]22 23 10 for source_file in programs_sources: 24 11 target = os.path.basename(os.path.splitext(str(source_file))[0]) 25 a =bld(features = 'c cprogram test',12 bld(features = 'c cprogram test', 26 13 source = source_file, 27 14 target = target, … … 29 16 use = uselib, 30 17 install_path = None, 31 defines = ['AUBIO_UNSTABLE_API=1', 32 'AUBIO_TESTS_SOURCE={}'.format(test_sound_abspath)] 18 defines = 'AUBIO_UNSTABLE_API=1', 33 19 ) 34 a.post()35 # make sure the unit_test task runs *after* the source is created36 a.tasks[-1].set_run_after(create_tests_source)
Note: See TracChangeset
for help on using the changeset viewer.