Use Boost lightweight_test

close #11
This commit is contained in:
Vinnie Falco
2019-09-13 07:58:41 -07:00
parent 406b929fc5
commit 773450c868
5 changed files with 1063 additions and 1502 deletions

37
Jamfile
View File

@ -4,42 +4,7 @@
# 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
# Official repository: https://github.com/boostorg/fixed_string
#
import ac ;
import os ;
import feature ;
import boost ;
import modules ;
import testing ;
import ../../config/checks/config : requires ;
boost.use-project ;
local defines =
[ requires
cxx11_constexpr
cxx11_decltype
cxx11_hdr_tuple
cxx11_template_aliases
cxx11_variadic_templates
]
<implicit-dependency>/boost//headers
<include>.
<define>BOOST_ALL_NO_LIB=1
<toolset>msvc-14.1:<cxxflags>"/permissive-"
<toolset>msvc-14.2:<cxxflags>"/permissive-"
<toolset>msvc,<variant>release:<cxxflags>"/Ob2 /Oi /Ot"
<target-os>windows:<define>_WIN32_WINNT=0x0601
;
project /boost/fixed_string
: requirements
<link>static
$(defines)
: usage-requirements
$(defines)
;
build-project test ;

View File

@ -13,7 +13,6 @@ GroupSources (test "/")
add_executable (tests
${PROJECT_FILES}
Jamfile
lib.cpp
fixed_string.cpp
)

View File

@ -7,28 +7,19 @@
# Official repository: https://github.com/boostorg/fixed_string
#
local SOURCES =
fixed_string.cpp
import testing ;
import ../../config/checks/config : requires ;
local defines =
[ requires
cxx11_constexpr
cxx11_decltype
cxx11_hdr_tuple
cxx11_template_aliases
cxx11_variadic_templates
]
;
local RUN_TESTS ;
project : requirements $(defines) ;
for local f in $(SOURCES)
{
RUN_TESTS += [ run $(f) lib.cpp ] ;
}
alias run-tests : $(RUN_TESTS) ;
exe fat-tests :
$(SOURCES)
lib.cpp
;
explicit fat-tests ;
run $(SOURCES)
lib.cpp
: : : : run-fat-tests ;
explicit run-fat-tests ;
run fixed_string.cpp ;

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +0,0 @@
//
// Copyright (c) 2016-2019 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/fixed_string
//
#include <boost/beast/_experimental/unit_test/main.ipp>