mirror of
https://github.com/boostorg/test.git
synced 2026-02-17 02:02:08 +00:00
the status (enabled/disabled) is split on default and run status. Default is deduced once at the end of setup phase. Run state is deduced before each test tree execution based on default and supplied filters disabled nodes are not removed from tree and can be reenabled dynamically dependency filtering is moved completely to execution phase into a precondition check step dependency tree is validated for loops dependency rank is respected in order of node execution now dependency works properly with random test execution added support for selected vs. enabler filters properly time test suites now split initialization ans setup phase finalization into separate methods --list_content parameter is now accepts optional string format name. Default is HRF. We now also support DOT output HRF output format is improved to include some test unit attributes (including description) test suite is considered failing now if it has skipped test case some messages produced changes to be syntactically correct: failed => has failed for example properly report precondition failures in log messages number of spelling errors fixed small bug in random.hpp is fixed
73 lines
2.6 KiB
Plaintext
73 lines
2.6 KiB
Plaintext
# (C) Copyright Gennadiy Rozental 2001-2005.
|
|
# (C) Copyright Juergen Hunold 2006.
|
|
# Use, modification, and distribution are subject to 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)
|
|
#
|
|
# See http://www.boost.org/libs/test for the library home page.
|
|
|
|
# bring in the rules for testing
|
|
import testing ;
|
|
|
|
# Project
|
|
project libs/test/example
|
|
:
|
|
: requirements
|
|
<toolset>msvc-6.5:<link>static
|
|
<toolset>clang:<cxxflags>-Wno-c99-extensions
|
|
<toolset>clang:<cxxflags>-Wno-variadic-macros
|
|
;
|
|
|
|
# Define aliases for the needed libs to get shorter names
|
|
alias prg_exec_monitor
|
|
: # sources
|
|
/boost//prg_exec_monitor
|
|
;
|
|
|
|
alias unit_test_framework
|
|
: # sources
|
|
/boost//unit_test_framework
|
|
;
|
|
|
|
# make aliases explicit so the libraries will only be built when requested
|
|
explicit unit_test_framework ;
|
|
explicit prg_exec_monitor ;
|
|
|
|
test-suite boost_test_examples
|
|
:
|
|
[ run exec_mon_example.cpp prg_exec_monitor ]
|
|
[ run-fail prg_exec_example.cpp prg_exec_monitor ]
|
|
|
|
[ run-fail test_case_template_example.cpp unit_test_framework/<link>static ]
|
|
|
|
[ run-fail unit_test_example_01.cpp unit_test_framework ]
|
|
[ run-fail unit_test_example_02.cpp unit_test_framework/<link>static ]
|
|
[ run-fail unit_test_example_03.cpp unit_test_framework/<link>static ]
|
|
[ run-fail unit_test_example_04.cpp unit_test_framework ]
|
|
[ run-fail unit_test_example_05.cpp unit_test_framework ]
|
|
[ run-fail unit_test_example_06.cpp unit_test_framework ]
|
|
[ run unit_test_example_07.cpp unit_test_framework ]
|
|
[ run unit_test_example_08.cpp unit_test_framework ]
|
|
[ run unit_test_example_09_1.cpp
|
|
unit_test_example_09_2.cpp unit_test_framework ]
|
|
[ run-fail unit_test_example_10.cpp unit_test_framework/<link>static ]
|
|
[ run-fail unit_test_example_11.cpp unit_test_framework/<link>static ]
|
|
[ link unit_test_example_12.cpp unit_test_framework/<link>static ]
|
|
[ run unit_test_example_13.cpp ]
|
|
[ run unit_test_example_14.cpp unit_test_framework ]
|
|
|
|
[ run est_example1.cpp unit_test_framework ]
|
|
[ run-fail est_example2.cpp unit_test_framework ]
|
|
|
|
[ run-fail logged_exp_example.cpp unit_test_framework ]
|
|
|
|
[ run named_param_example.cpp ]
|
|
|
|
[ run const_string_test.cpp ]
|
|
|
|
[ run-fail external_main_example_1.cpp unit_test_framework ]
|
|
[ run-fail external_main_example_2.cpp unit_test_framework ]
|
|
[ run-fail external_main_example_3.cpp ]
|
|
[ run-fail filtering_example.cpp unit_test_framework/<link>static ]
|
|
;
|