Added boost license file to Boost.Mock generation

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@468 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2012-06-22 17:20:49 +00:00
parent 7b04d84ba5
commit a09b491446
5 changed files with 25 additions and 2 deletions

26
build/boost/Jamfile.jam Normal file
View file

@ -0,0 +1,26 @@
# Boost.Mock
#
# Copyright Mathieu Champlon 2012
#
# 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)
import testing ;
run [ glob test_*.cpp ] /boost//unit_test_framework ;
compile-fail fail_ambiguous_mock_method.cpp ;
compile-fail fail_constraint_functor_not_compatible.cpp ;
compile-fail fail_constraint_value_not_comparable.cpp ;
compile-fail fail_constraint_value_of_wrong_type_in_builtin_constraint.cpp ;
compile-fail fail_mismatch_type_in_returns_int_action.cpp ;
compile-fail fail_mismatch_type_in_returns_string_action.cpp ;
compile-fail fail_mismatch_type_in_returns_void_action.cpp ;
compile-fail fail_non_existing_base_class_method_in_mock_method.cpp ;
compile-fail fail_number_of_arguments_greater_than_max_constant.cpp ;
compile-fail fail_template_argument_without_tpl_macro.cpp ;
compile-fail fail_too_many_arguments_in_mock_method.cpp ;
compile-fail fail_wrong_number_of_arguments_in_with.cpp ;
# How to time bench_*.cpp compilation ?

28
build/boost/Jamfile.v2 Normal file
View file

@ -0,0 +1,28 @@
# Copyright Rene Rivera 2007.
#
# 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)
# Usage:
#
# bjam [options | properties | targets]
#
# Options:
#
# --boost=<BOOST> The directory of a Boost source tree.
# Default; BOOST env var (if found)
# Default; ../boost (if found)
#
# --boost-build=<BOOST_BUILD>
# The directory for the Boost.Build v2 files.
# Default; BOOST_BUILD_PATH env var (if found)
# Default; BOOST_BUILD env var (if found)
# Default; <BOOST>/tools/build/v2 (if found)
#~ If we have the Boost sources we can use the project...
if [ GLOB $(BOOST) : [ modules.peek project : JAMFILE ] ]
{
use-project /boost : $(BOOST) ;
}

9
build/boost/Jamroot.jam Normal file
View file

@ -0,0 +1,9 @@
import modules ;
local boost = [ modules.peek : BOOST ] ;
project mock : requirements <include>$(boost) <include>. ;
# This seems to prevent some Boost.Build errors that otherwise occur :-(
use-project /boost : $(boost) ;

View file

@ -0,0 +1,23 @@
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.