#
# Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
# Official repository: https://github.com/boostorg/beast
#

local SOURCES =
    bind_handler.cpp
    buffered_read_stream.cpp
    buffers_adapter.cpp
    buffers_cat.cpp
    buffers_prefix.cpp
    buffers_suffix.cpp
    buffers_to_string.cpp
    error.cpp
    file.cpp
    file_posix.cpp
    file_stdio.cpp
    file_win32.cpp
    flat_buffer.cpp
    flat_static_buffer.cpp
    handler_ptr.cpp
    multi_buffer.cpp
    ostream.cpp
    read_size.cpp
    span.cpp
    static_buffer.cpp
    static_string.cpp
    string.cpp
    string_param.cpp
    type_traits.cpp
    detail/base64.cpp
    detail/clamp.cpp
    detail/empty_base_optimization.cpp
    detail/sha1.cpp
    detail/variant.cpp
    detail/varint.cpp
    ;

local RUN_TESTS ;

for local f in $(SOURCES)
{
    RUN_TESTS += [ run $(f) $(TEST_MAIN) ] ;
}

alias run-tests : $(RUN_TESTS) ;

exe fat-tests : $(TEST_MAIN) $(SOURCES) ;

explicit fat-tests ;
