Created
July 11, 2018 14:21
-
-
Save nikhedonia/999434ddef2fc4abcd423b356c455481 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load('//:BUCKAROO_DEPS', 'deps') | |
load('@boost.helpers//:DEFS', 'test_tree', 'sh_cxx_test') | |
cxx_library( | |
name = "test", | |
exported_headers = subdir_glob([ | |
("include", "**/*.hpp"), | |
("include", "**/*.ipp"), | |
]), | |
exported_linker_flags=['-lpthread'], | |
preprocessor_flags=["-DBOOST_TEST_DYN_LINK"], | |
exported_preprocessor_flags=["-DBOOST_TEST_DYN_LINK"], | |
srcs = glob([ | |
"src/**/*.cpp" | |
]), | |
deps = deps, | |
visibility=['PUBLIC'] | |
) | |
test_tree( | |
name = "test-tree", | |
path = "test" | |
) | |
test_suite( | |
name='testall', | |
tests = [sh_cxx_test( | |
name = file | |
.replace('/','-') | |
.replace('.cpp',''), | |
srcs = [file], | |
deps = [':test'], | |
tree = ":test-tree" | |
) for file in glob(['test/*/*.cpp'], | |
exclude = glob([ | |
'test/smoke-ts/basic-smoke-test3.cpp', # TODO | |
'test/utils-ts/basic_cstring-test.cpp', # TODO | |
'test/execution_monitor-ts/*', # we don't support custom testrunners | |
'test/prg_exec_monitor-ts/*', # we don't support custom testrunners | |
'test/usage-variants-ts/*', # we don't support custom testrunners | |
'test/framework-ts/*' # framework::master_test_suite is private | |
]) | |
)], | |
visibility=["PUBLIC"] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment