From 2ad2ed26273dfb89644ee7d86591a16e94ecd9cf Mon Sep 17 00:00:00 2001 From: Dmitry Arkhipov Date: Thu, 27 Feb 2025 15:22:55 +0300 Subject: [PATCH] special target for heavy tests --- .drone/drone.sh | 9 ++++++++- test/Jamfile | 20 +++++++++++++------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/.drone/drone.sh b/.drone/drone.sh index 281b9bdd..cf03ed1d 100755 --- a/.drone/drone.sh +++ b/.drone/drone.sh @@ -89,9 +89,16 @@ echo '==================================> SCRIPT' printf "add-auto-load-safe-path $PWD/bin.v2\n" > ~/.gdbinit -export B2_TARGETS=${B2_TARGETS:-"libs/$SELF/test libs/$SELF/example"} +export special_targets=$B2_TARGETS +export B2_TARGETS=${B2_TARGETS:-"libs/$SELF/test//common libs/$SELF/example"} $BOOST_ROOT/libs/$SELF/ci/travis/build.sh +if [ -z "$special_targets" ]; then + export B2_JOBS=1 + export B2_TARGETS="libs/$SELF/test//heavy" + $BOOST_ROOT/libs/$SELF/ci/travis/build.sh +fi + elif [ "$DRONE_JOB_BUILDTYPE" == "docs" ]; then echo '==================================> INSTALL' diff --git a/test/Jamfile b/test/Jamfile index e8d3b33a..37aec964 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -34,7 +34,6 @@ local SOURCES = object.cpp parse.cpp parser.cpp - parse_into.cpp pilfer.cpp pointer.cpp result_for.cpp @@ -68,13 +67,17 @@ project for local f in $(SOURCES) { - local extra-reqs ; - if $(f) = parse_into.cpp - { - extra-reqs += msvc:/bigobj ; - } + run $(f) main.cpp /boost/json//boost_json ; +} - run $(f) main.cpp /boost/json//boost_json : requirements $(extra-reqs) ; +local HEAVY_SOURCES = + parse_into.cpp + ; +for local f in $(HEAVY_SOURCES) +{ + run $(f) main.cpp /boost/json//boost_json + : requirements msvc:/bigobj + ; } run limits.cpp main.cpp /boost/json//json_sources @@ -99,3 +102,6 @@ boost-pretty-printers.test-gdb-printers gdb-printers : ../src/boost_json_gdb_printers.py ; explicit gdb-printers ; + +alias common : $(SOURCES:B) limits no_exceptions intrusive_macros ; +alias heavy : $(HEAVY_SOURCES:B) ;