forked from boostorg/config
Made changes to work with new boost.test library.
Added separate Jamfile [SVN r15299]
This commit is contained in:
1 parent
d3cc222fe9
commit
d3a4cda4c0
151 files changed
+420
-367
No files matched your search
+7
-35
@@ -158,7 +158,6 @@ for file in $boost_base/libs/config/test/boost_no*.cxx; do
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifndef $macroname
|
||||
@@ -167,14 +166,9 @@ for file in $boost_base/libs/config/test/boost_no*.cxx; do
|
||||
namespace ${namespace} = empty_boost;
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ${namespace}::test();
|
||||
}
|
||||
#define main _main
|
||||
]
|
||||
,
|
||||
[]
|
||||
[ return ${namespace}::test(); ]
|
||||
,
|
||||
[AC_MSG_RESULT(OK)]
|
||||
,
|
||||
@@ -189,7 +183,6 @@ int cpp_main( int, char *[] )
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifdef $macroname
|
||||
@@ -198,14 +191,9 @@ int cpp_main( int, char *[] )
|
||||
#error "this file should not compile"
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ${namespace}::test();
|
||||
}
|
||||
#define main _main
|
||||
]
|
||||
,
|
||||
[]
|
||||
[return ${namespace}::test();]
|
||||
,
|
||||
[AC_MSG_RESULT(failed)
|
||||
required_undefs="$macroname $required_undefs"]
|
||||
@@ -238,7 +226,6 @@ for file in $boost_base/libs/config/test/boost_has*.cxx; do
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifdef $macroname
|
||||
@@ -247,14 +234,9 @@ for file in $boost_base/libs/config/test/boost_has*.cxx; do
|
||||
namespace ${namespace} = empty_boost;
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ${namespace}::test();
|
||||
}
|
||||
#define main _main
|
||||
]
|
||||
,
|
||||
[]
|
||||
[return ${namespace}::test();]
|
||||
,
|
||||
[AC_MSG_RESULT(OK)]
|
||||
,
|
||||
@@ -266,7 +248,6 @@ int cpp_main( int, char *[] )
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifndef $macroname
|
||||
@@ -275,14 +256,9 @@ int cpp_main( int, char *[] )
|
||||
#error "this file should not compile"
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ${namespace}::test();
|
||||
}
|
||||
#define main _main
|
||||
]
|
||||
,
|
||||
[]
|
||||
[return ${namespace}::test();]
|
||||
,
|
||||
[
|
||||
AC_MSG_RESULT(failed)
|
||||
@@ -301,19 +277,13 @@ int cpp_main( int, char *[] )
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#include "boost_$basename.cxx"
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ${namespace}::test();
|
||||
}
|
||||
#define main _main
|
||||
]
|
||||
,
|
||||
[]
|
||||
[return ${namespace}::test();]
|
||||
,
|
||||
[
|
||||
AC_MSG_RESULT(Yes)
|
||||
@@ -441,3 +411,5 @@ fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+26
-4
@@ -12,6 +12,22 @@ run libs/config/test/config_info.cpp
|
||||
run libs/config/test/config_test.cpp
|
||||
run libs/config/test/limits_test.cpp
|
||||
|
||||
EOF
|
||||
cat > ../test/Jamfile << EOF
|
||||
#
|
||||
# Regression test Jamfile for boost configuration setup.
|
||||
# This file was automatically generated on $date_string,
|
||||
# do not edit by hand...
|
||||
#
|
||||
subproject libs/config/test ;
|
||||
# bring in the rules for testing
|
||||
SEARCH on testing.jam = \$(BOOST_BUILD_PATH) ;
|
||||
include testing.jam ;
|
||||
|
||||
run config_info.cpp ;
|
||||
run config_test.cpp <lib>../../test/build/test_exec_monitor ;
|
||||
run limits_test.cpp <lib>../../test/build/test_exec_monitor ;
|
||||
|
||||
EOF
|
||||
|
||||
# init main config test file:
|
||||
@@ -83,7 +99,6 @@ for file in ../test/boost_no_*.cxx; do
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifndef $macroname
|
||||
@@ -129,7 +144,6 @@ EOF
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifdef $macroname
|
||||
@@ -160,6 +174,9 @@ EOF
|
||||
echo "run libs/config/test/$basename""_pass.cpp" >> ../test/regression.cfg
|
||||
echo "link-fail libs/config/test/$basename""_fail.cpp" >> ../test/regression.cfg
|
||||
|
||||
echo 'test-suite "'$macroname'" : ' >> ../test/Jamfile
|
||||
echo "[ run $basename""_pass.cpp <lib>../../test/build/prg_exec_monitor ]" >> ../test/Jamfile
|
||||
echo "[ link-fail $basename""_fail.cpp <lib>../../test/build/prg_exec_monitor ] ;" >> ../test/Jamfile
|
||||
|
||||
done
|
||||
|
||||
@@ -207,7 +224,6 @@ for file in ../test/boost_has_*.cxx; do
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifdef $macroname
|
||||
@@ -252,7 +268,6 @@ EOF
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifndef $macroname
|
||||
@@ -283,6 +298,10 @@ EOF
|
||||
echo "run libs/config/test/$basename""_pass.cpp" >> ../test/regression.cfg
|
||||
echo "link-fail libs/config/test/$basename""_fail.cpp" >> ../test/regression.cfg
|
||||
|
||||
echo 'test-suite "'$macroname'" : ' >> ../test/Jamfile
|
||||
echo "[ run $basename""_pass.cpp <lib>../../test/build/prg_exec_monitor ]" >> ../test/Jamfile
|
||||
echo "[ link-fail $basename""_fail.cpp <lib>../../test/build/prg_exec_monitor ] ;" >> ../test/Jamfile
|
||||
|
||||
done
|
||||
|
||||
|
||||
@@ -327,3 +346,6 @@ echo
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user