blob: a70ae8cc1094eb701f7e5c170580e8cfc39fe441 [file] [log] [blame]
Yingdi Yub20ae812014-08-15 11:20:19 -07001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2from waflib import Utils
3
4top = '..'
5
6def build(bld):
Alexander Afanasyev40491df2018-03-09 16:29:52 -05007 bld.objects(
Yingdi Yuf7ede412014-08-30 20:37:52 -07008 target='tests-main',
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -08009 source='main.cpp',
Yingdi Yub20ae812014-08-15 11:20:19 -070010 use='ChronoSync',
Alexander Afanasyev40491df2018-03-09 16:29:52 -050011 defines=['BOOST_TEST_MODULE=ChronoSync'])
Yingdi Yub20ae812014-08-15 11:20:19 -070012
Alexander Afanasyev40491df2018-03-09 16:29:52 -050013 bld.program(
Yingdi Yub20ae812014-08-15 11:20:19 -070014 target="../unit-tests",
Alexander Afanasyev40491df2018-03-09 16:29:52 -050015 name='unit-tests',
Ashlesh Gawande08784d42017-09-06 23:40:21 -050016 source=bld.path.ant_glob(['unit-tests/**/*.cpp', 'identity-management-fixture.cpp']),
Alexander Afanasyev36eb3ed2017-01-11 12:35:58 -080017 use='ChronoSync tests-main',
Yingdi Yuf7ede412014-08-30 20:37:52 -070018 includes=['.'],
Alexander Afanasyev40491df2018-03-09 16:29:52 -050019 install_path=None)
Yingdi Yuf7ede412014-08-30 20:37:52 -070020
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -080021 # TODO: Re-enable when there integration tests are implemented
Alexander Afanasyev40491df2018-03-09 16:29:52 -050022 # bld.program(
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -080023 # target="../integrated-tests",
24 # source=bld.path.ant_glob(['integrated-tests/**/*.cpp']),
Alexander Afanasyevf3192eb2016-12-19 17:11:20 -080025 # use='ChronoSync tests-main',
26 # includes=['.'],
27 # install_path=None,
28 # )