2
0
mirror of https://github.com/boostorg/json.git synced 2026-02-02 21:02:18 +00:00
Files
json/test/Jamfile
2019-11-22 18:32:50 -08:00

78 lines
1.5 KiB
Plaintext

#
# Copyright (c) 2013-2019 Vinnie Falco (vinnie.falco@gmail.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/vinniefalco/json
#
import testing ;
import ../../config/checks/config : requires ;
import os ;
STANDALONE = [ os.environ STANDALONE ] ;
if $(STANDALONE)
{
LIB =
<define>BOOST_JSON_STANDALONE=1
<source>../src/src.cpp
;
}
else
{
LIB = <library>/boost/json//boost_json ;
}
local SOURCES =
array.cpp
assign_string.cpp
assign_vector.cpp
basic_parser.cpp
error.cpp
json.cpp
kind.cpp
number.cpp
object.cpp
parser.cpp
pool.cpp
serializer.cpp
snippets.cpp
storage.cpp
storage_ptr.cpp
string.cpp
value.cpp
ryu/d2s_intrinsics_test.cpp
ryu/d2s_table_test.cpp
ryu/d2s_test.cpp
;
local LIMIT_SOURCES =
limits.cpp
;
local RUN_TESTS ;
for local f in $(SOURCES)
{
RUN_TESTS += [
run $(f) main.cpp : : :
$(LIB)
] ;
}
for local f in $(LIMIT_SOURCES)
{
RUN_TESTS += [
run $(f) main.cpp : : :
<source>../src/src.cpp
<define>BOOST_JSON_MAX_STRING_SIZE=1000
<define>BOOST_JSON_MAX_OBJECT_SIZE=30
<define>BOOST_JSON_MAX_ARRAY_SIZE=100
<define>BOOST_JSON_MAX_STACK_SIZE=1024
<define>BOOST_JSON_PARSER_BUFFER_SIZE=256
] ;
}
alias run-tests : $(RUN_TESTS) ;