Alexander Afanasyev | 8b1674a | 2014-05-15 00:58:43 -0700 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
Alexander Afanasyev | 5560fd4 | 2018-03-07 17:03:03 -0500 | [diff] [blame] | 3 | top = '../..' |
Alexander Afanasyev | 8b1674a | 2014-05-15 00:58:43 -0700 | [diff] [blame] | 4 | |
| 5 | def build(bld): |
Alexander Afanasyev | 5560fd4 | 2018-03-07 17:03:03 -0500 | [diff] [blame] | 6 | for test in bld.path.ant_glob('*.cpp'): |
| 7 | name = test.change_ext('').path_from(bld.path.get_bld()) |
Davide Pesavento | 1944281 | 2018-11-23 14:00:04 -0500 | [diff] [blame^] | 8 | bld.program(name='test-%s' % name, |
| 9 | target=name, |
Alexander Afanasyev | 5560fd4 | 2018-03-07 17:03:03 -0500 | [diff] [blame] | 10 | source=[test], |
Davide Pesavento | 1944281 | 2018-11-23 14:00:04 -0500 | [diff] [blame^] | 11 | use='tests-base', |
Alexander Afanasyev | 5560fd4 | 2018-03-07 17:03:03 -0500 | [diff] [blame] | 12 | install_path=None) |