forked from boostorg/config
Stripped tabs from source files
[SVN r12333]
This commit is contained in:
1 parent
ae5fdbe5f4
commit
5dcc786a6d
130 files changed
+714
-714
No files matched your search
+118
-118
@@ -14,7 +14,7 @@ AC_INIT(./tools/configure.in)
|
||||
AC_ARG_ENABLE(test, --enable-test tests current settings rather than defining new ones)
|
||||
|
||||
if test "foo"$enable_test = "foo"; then
|
||||
enable_test="no"
|
||||
enable_test="no"
|
||||
fi
|
||||
|
||||
cat << EOF
|
||||
@@ -53,15 +53,15 @@ fi
|
||||
AC_ARG_ENABLE(extension,[--enable-extension=<ext>],
|
||||
[
|
||||
case "$enableval" in
|
||||
no) AC_MSG_RESULT(Info :.cpp used as extension for tests)
|
||||
ac_ext=cpp
|
||||
;;
|
||||
*) AC_MSG_RESULT(Argument : .$enableval used as extension)
|
||||
ac_ext=$enableval
|
||||
no) AC_MSG_RESULT(Info :.cpp used as extension for tests)
|
||||
ac_ext=cpp
|
||||
;;
|
||||
*) AC_MSG_RESULT(Argument : .$enableval used as extension)
|
||||
ac_ext=$enableval
|
||||
esac
|
||||
],
|
||||
[AC_MSG_RESULT(Info : .cpp used as extension for tests)
|
||||
ac_ext=cpp
|
||||
ac_ext=cpp
|
||||
]
|
||||
)
|
||||
|
||||
@@ -92,10 +92,10 @@ AC_HAVE_LIBRARY(rt)
|
||||
#
|
||||
for file in ./test/boost_no*.cxx; do
|
||||
|
||||
basename=`echo $file | sed 's/.*boost_\(.*\)\.cxx/\1/'`
|
||||
macroname=`cat $file | grep '^//[[] []]*MACRO:' | sed 's/.*MACRO:[[] []]*\([[]_A-Z0-9[]]*\).*/\1/'`
|
||||
title=`cat $file | grep '^//[[] []]*TITLE:' | sed 's/.*TITLE:[[] []]*\([[]^ []].*\)/\1/'`
|
||||
namespace=`echo $macroname | tr [[:upper:]] [[:lower:]]`
|
||||
basename=`echo $file | sed 's/.*boost_\(.*\)\.cxx/\1/'`
|
||||
macroname=`cat $file | grep '^//[[] []]*MACRO:' | sed 's/.*MACRO:[[] []]*\([[]_A-Z0-9[]]*\).*/\1/'`
|
||||
title=`cat $file | grep '^//[[] []]*TITLE:' | sed 's/.*TITLE:[[] []]*\([[]^ []].*\)/\1/'`
|
||||
namespace=`echo $macroname | tr [[:upper:]] [[:lower:]]`
|
||||
|
||||
#echo file = $file
|
||||
#echo basename = $basename
|
||||
@@ -103,14 +103,14 @@ for file in ./test/boost_no*.cxx; do
|
||||
#echo title = $title
|
||||
#echo namespace = $namespace
|
||||
|
||||
ac_ext=$use_ac_ext
|
||||
if test $enable_test = 'yes'; then
|
||||
AC_MSG_CHECKING($title (pass expected) )
|
||||
else
|
||||
AC_MSG_CHECKING($title )
|
||||
fi
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
ac_ext=$use_ac_ext
|
||||
if test $enable_test = 'yes'; then
|
||||
AC_MSG_CHECKING($title (pass expected) )
|
||||
else
|
||||
AC_MSG_CHECKING($title )
|
||||
fi
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
@@ -123,25 +123,25 @@ namespace ${namespace} = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ${namespace}::test();
|
||||
return ${namespace}::test();
|
||||
}
|
||||
#define main _main
|
||||
]
|
||||
,
|
||||
[]
|
||||
,
|
||||
[AC_MSG_RESULT(OK)]
|
||||
,
|
||||
[AC_MSG_RESULT(Failed)
|
||||
required_defs="$macroname $required_defs"]
|
||||
)
|
||||
#define main _main
|
||||
]
|
||||
,
|
||||
[]
|
||||
,
|
||||
[AC_MSG_RESULT(OK)]
|
||||
,
|
||||
[AC_MSG_RESULT(Failed)
|
||||
required_defs="$macroname $required_defs"]
|
||||
)
|
||||
|
||||
if test $enable_test = 'yes'; then
|
||||
|
||||
ac_ext=$use_ac_ext
|
||||
AC_MSG_CHECKING($title (fail expected) )
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
if test $enable_test = 'yes'; then
|
||||
|
||||
ac_ext=$use_ac_ext
|
||||
AC_MSG_CHECKING($title (fail expected) )
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
@@ -154,20 +154,20 @@ int cpp_main( int, char *[] )
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ${namespace}::test();
|
||||
}
|
||||
#define main _main
|
||||
]
|
||||
,
|
||||
[]
|
||||
,
|
||||
[AC_MSG_RESULT(failed)
|
||||
required_undefs="$macroname $required_undefs"]
|
||||
,
|
||||
[AC_MSG_RESULT(OK)]
|
||||
)
|
||||
|
||||
fi
|
||||
return ${namespace}::test();
|
||||
}
|
||||
#define main _main
|
||||
]
|
||||
,
|
||||
[]
|
||||
,
|
||||
[AC_MSG_RESULT(failed)
|
||||
required_undefs="$macroname $required_undefs"]
|
||||
,
|
||||
[AC_MSG_RESULT(OK)]
|
||||
)
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
@@ -176,21 +176,21 @@ done
|
||||
#
|
||||
for file in ./test/boost_has*.cxx; do
|
||||
|
||||
basename=`echo $file | sed 's/.*boost_\(.*\)\.cxx/\1/'`
|
||||
macroname=`cat $file | grep '^//[[] []]*MACRO:' | sed 's/.*MACRO:[[] []]*\([[]_A-Z0-9[]]*\).*/\1/'`
|
||||
title=`cat $file | grep '^//[[] []]*TITLE:' | sed 's/.*TITLE:[[] []]*\([[]^ []].*\)/\1/'`
|
||||
namespace=`echo $macroname | tr [[:upper:]] [[:lower:]]`
|
||||
basename=`echo $file | sed 's/.*boost_\(.*\)\.cxx/\1/'`
|
||||
macroname=`cat $file | grep '^//[[] []]*MACRO:' | sed 's/.*MACRO:[[] []]*\([[]_A-Z0-9[]]*\).*/\1/'`
|
||||
title=`cat $file | grep '^//[[] []]*TITLE:' | sed 's/.*TITLE:[[] []]*\([[]^ []].*\)/\1/'`
|
||||
namespace=`echo $macroname | tr [[:upper:]] [[:lower:]]`
|
||||
|
||||
# echo $file
|
||||
# echo $basename
|
||||
# echo $macroname
|
||||
# echo $title
|
||||
# echo $file
|
||||
# echo $basename
|
||||
# echo $macroname
|
||||
# echo $title
|
||||
|
||||
ac_ext=$use_ac_ext
|
||||
if test $enable_test = 'yes'; then
|
||||
AC_MSG_CHECKING($title (pass expected) )
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
ac_ext=$use_ac_ext
|
||||
if test $enable_test = 'yes'; then
|
||||
AC_MSG_CHECKING($title (pass expected) )
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
@@ -203,22 +203,22 @@ namespace ${namespace} = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ${namespace}::test();
|
||||
}
|
||||
#define main _main
|
||||
]
|
||||
,
|
||||
[]
|
||||
,
|
||||
[AC_MSG_RESULT(OK)]
|
||||
,
|
||||
[AC_MSG_RESULT(Failed)
|
||||
required_undefs="$macroname $required_undefs"]
|
||||
)
|
||||
|
||||
AC_MSG_CHECKING($title (fail expected) )
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
return ${namespace}::test();
|
||||
}
|
||||
#define main _main
|
||||
]
|
||||
,
|
||||
[]
|
||||
,
|
||||
[AC_MSG_RESULT(OK)]
|
||||
,
|
||||
[AC_MSG_RESULT(Failed)
|
||||
required_undefs="$macroname $required_undefs"]
|
||||
)
|
||||
|
||||
AC_MSG_CHECKING($title (fail expected) )
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
@@ -231,29 +231,29 @@ int cpp_main( int, char *[] )
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ${namespace}::test();
|
||||
}
|
||||
#define main _main
|
||||
]
|
||||
,
|
||||
[]
|
||||
,
|
||||
[
|
||||
AC_MSG_RESULT(failed)
|
||||
required_defs="$macroname $required_defs"
|
||||
]
|
||||
,
|
||||
[
|
||||
AC_MSG_RESULT(OK)
|
||||
]
|
||||
)
|
||||
return ${namespace}::test();
|
||||
}
|
||||
#define main _main
|
||||
]
|
||||
,
|
||||
[]
|
||||
,
|
||||
[
|
||||
AC_MSG_RESULT(failed)
|
||||
required_defs="$macroname $required_defs"
|
||||
]
|
||||
,
|
||||
[
|
||||
AC_MSG_RESULT(OK)
|
||||
]
|
||||
)
|
||||
|
||||
else
|
||||
else
|
||||
|
||||
ac_ext=$use_ac_ext
|
||||
AC_MSG_CHECKING($title)
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
ac_ext=$use_ac_ext
|
||||
AC_MSG_CHECKING($title)
|
||||
AC_TRY_LINK(
|
||||
[
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
@@ -262,24 +262,24 @@ int cpp_main( int, char *[] )
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ${namespace}::test();
|
||||
}
|
||||
#define main _main
|
||||
]
|
||||
,
|
||||
[]
|
||||
,
|
||||
[
|
||||
AC_MSG_RESULT(Yes)
|
||||
required_defs="$macroname $required_defs"
|
||||
]
|
||||
,
|
||||
[
|
||||
AC_MSG_RESULT(no)
|
||||
]
|
||||
)
|
||||
|
||||
fi
|
||||
return ${namespace}::test();
|
||||
}
|
||||
#define main _main
|
||||
]
|
||||
,
|
||||
[]
|
||||
,
|
||||
[
|
||||
AC_MSG_RESULT(Yes)
|
||||
required_defs="$macroname $required_defs"
|
||||
]
|
||||
,
|
||||
[
|
||||
AC_MSG_RESULT(no)
|
||||
]
|
||||
)
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
|
||||
+85
-85
@@ -45,22 +45,22 @@ all_has=""
|
||||
#
|
||||
for file in ../test/boost_no_*.cxx; do
|
||||
|
||||
basename=`echo $file | sed 's/.*boost_\(.*\)\.cxx/\1/'`
|
||||
macroname=`cat $file | grep '^//[ ]*MACRO:' | sed 's/.*MACRO:[ ]*\([_A-Z0-9]*\).*/\1/'`
|
||||
title=`cat $file | grep '^//[ ]*TITLE:' | sed 's/.*TITLE:[ ]*\([^ ].*\)/\1/'`
|
||||
namespace=`echo $macroname | tr [:upper:] [:lower:]`
|
||||
|
||||
# echo $basename
|
||||
echo
|
||||
echo "processing $macroname ..."
|
||||
# echo $title
|
||||
# echo $namespace
|
||||
# now create positive test file:
|
||||
if test -f "../test/$basename""_pass.cpp"; then
|
||||
echo "skipping file ../test/$basename""_pass.cpp"
|
||||
else
|
||||
echo "generating file ../test/$basename""_pass.cpp"
|
||||
cat > "../test/$basename""_pass.cpp" << EOF
|
||||
basename=`echo $file | sed 's/.*boost_\(.*\)\.cxx/\1/'`
|
||||
macroname=`cat $file | grep '^//[ ]*MACRO:' | sed 's/.*MACRO:[ ]*\([_A-Z0-9]*\).*/\1/'`
|
||||
title=`cat $file | grep '^//[ ]*TITLE:' | sed 's/.*TITLE:[ ]*\([^ ].*\)/\1/'`
|
||||
namespace=`echo $macroname | tr [:upper:] [:lower:]`
|
||||
|
||||
# echo $basename
|
||||
echo
|
||||
echo "processing $macroname ..."
|
||||
# echo $title
|
||||
# echo $namespace
|
||||
# now create positive test file:
|
||||
if test -f "../test/$basename""_pass.cpp"; then
|
||||
echo "skipping file ../test/$basename""_pass.cpp"
|
||||
else
|
||||
echo "generating file ../test/$basename""_pass.cpp"
|
||||
cat > "../test/$basename""_pass.cpp" << EOF
|
||||
|
||||
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
@@ -94,19 +94,19 @@ namespace ${namespace} = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ${namespace}::test();
|
||||
}
|
||||
|
||||
return ${namespace}::test();
|
||||
}
|
||||
|
||||
EOF
|
||||
|
||||
fi
|
||||
|
||||
# now create negative test file:
|
||||
if test -f "../test/$basename""_fail.cpp"; then
|
||||
echo "skipping file ../test/$basename""_fail.cpp"
|
||||
else
|
||||
echo "generating file ../test/$basename""_fail.cpp"
|
||||
cat > "../test/$basename""_fail.cpp" << EOF
|
||||
fi
|
||||
|
||||
# now create negative test file:
|
||||
if test -f "../test/$basename""_fail.cpp"; then
|
||||
echo "skipping file ../test/$basename""_fail.cpp"
|
||||
else
|
||||
echo "generating file ../test/$basename""_fail.cpp"
|
||||
cat > "../test/$basename""_fail.cpp" << EOF
|
||||
|
||||
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
@@ -140,27 +140,27 @@ EOF
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ${namespace}::test();
|
||||
}
|
||||
|
||||
return ${namespace}::test();
|
||||
}
|
||||
|
||||
EOF
|
||||
fi
|
||||
|
||||
# now append to config_test.cpp:
|
||||
cat >> "../test/config_test.cpp" << EOF
|
||||
fi
|
||||
|
||||
# now append to config_test.cpp:
|
||||
cat >> "../test/config_test.cpp" << EOF
|
||||
#ifndef $macroname
|
||||
#include "boost_$basename.cxx"
|
||||
#else
|
||||
namespace ${namespace} = empty_boost;
|
||||
#endif
|
||||
EOF
|
||||
all_no="$namespace $all_no"
|
||||
all_no="$namespace $all_no"
|
||||
|
||||
# output regression tests:
|
||||
echo "run libs/config/test/$basename""_pass.cpp" >> ../test/regression.cfg
|
||||
echo "link-fail libs/config/test/$basename""_fail.cpp" >> ../test/regression.cfg
|
||||
|
||||
|
||||
# output regression tests:
|
||||
echo "run libs/config/test/$basename""_pass.cpp" >> ../test/regression.cfg
|
||||
echo "link-fail libs/config/test/$basename""_fail.cpp" >> ../test/regression.cfg
|
||||
|
||||
|
||||
done
|
||||
|
||||
#
|
||||
@@ -168,23 +168,23 @@ done
|
||||
#
|
||||
for file in ../test/boost_has_*.cxx; do
|
||||
|
||||
basename=`echo $file | sed 's/.*boost_\(.*\)\.cxx/\1/'`
|
||||
macroname=`cat $file | grep '^//[ ]*MACRO:' | sed 's/.*MACRO:[ ]*\([_A-Z0-9]*\).*/\1/'`
|
||||
title=`cat $file | grep '^//[ ]*TITLE:' | sed 's/.*TITLE:[ ]*\([^ ].*\)/\1/'`
|
||||
namespace=`echo $macroname | tr [:upper:] [:lower:]`
|
||||
|
||||
# echo $basename
|
||||
echo
|
||||
echo "processing $macroname ..."
|
||||
# echo $title
|
||||
# echo $namespace
|
||||
basename=`echo $file | sed 's/.*boost_\(.*\)\.cxx/\1/'`
|
||||
macroname=`cat $file | grep '^//[ ]*MACRO:' | sed 's/.*MACRO:[ ]*\([_A-Z0-9]*\).*/\1/'`
|
||||
title=`cat $file | grep '^//[ ]*TITLE:' | sed 's/.*TITLE:[ ]*\([^ ].*\)/\1/'`
|
||||
namespace=`echo $macroname | tr [:upper:] [:lower:]`
|
||||
|
||||
# echo $basename
|
||||
echo
|
||||
echo "processing $macroname ..."
|
||||
# echo $title
|
||||
# echo $namespace
|
||||
|
||||
# now create positive test file:
|
||||
if test -f "../test/$basename""_pass.cpp"; then
|
||||
echo "skipping file ../test/$basename""_pass.cpp"
|
||||
else
|
||||
echo "generating file ../test/$basename""_pass.cpp"
|
||||
cat > "../test/$basename""_pass.cpp" << EOF
|
||||
# now create positive test file:
|
||||
if test -f "../test/$basename""_pass.cpp"; then
|
||||
echo "skipping file ../test/$basename""_pass.cpp"
|
||||
else
|
||||
echo "generating file ../test/$basename""_pass.cpp"
|
||||
cat > "../test/$basename""_pass.cpp" << EOF
|
||||
|
||||
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
@@ -218,18 +218,18 @@ namespace ${namespace} = empty_boost;
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ${namespace}::test();
|
||||
}
|
||||
|
||||
return ${namespace}::test();
|
||||
}
|
||||
|
||||
EOF
|
||||
fi
|
||||
fi
|
||||
|
||||
# now create negative test file:
|
||||
if test -f "../test/$basename""_fail.cpp"; then
|
||||
echo skipping file "../test/$basename""_fail.cpp"
|
||||
else
|
||||
echo generating file "../test/$basename""_fail.cpp"
|
||||
cat > "../test/$basename""_fail.cpp" << EOF
|
||||
# now create negative test file:
|
||||
if test -f "../test/$basename""_fail.cpp"; then
|
||||
echo skipping file "../test/$basename""_fail.cpp"
|
||||
else
|
||||
echo generating file "../test/$basename""_fail.cpp"
|
||||
cat > "../test/$basename""_fail.cpp" << EOF
|
||||
|
||||
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
@@ -263,53 +263,53 @@ EOF
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return ${namespace}::test();
|
||||
}
|
||||
|
||||
return ${namespace}::test();
|
||||
}
|
||||
|
||||
EOF
|
||||
fi
|
||||
fi
|
||||
|
||||
# now append to config_test.cpp:
|
||||
cat >> "../test/config_test.cpp" << EOF
|
||||
# now append to config_test.cpp:
|
||||
cat >> "../test/config_test.cpp" << EOF
|
||||
#ifdef $macroname
|
||||
#include "boost_$basename.cxx"
|
||||
#else
|
||||
namespace ${namespace} = empty_boost;
|
||||
#endif
|
||||
EOF
|
||||
all_has="$namespace $all_has"
|
||||
all_has="$namespace $all_has"
|
||||
|
||||
# output regression tests:
|
||||
echo "run libs/config/test/$basename""_pass.cpp" >> ../test/regression.cfg
|
||||
echo "link-fail libs/config/test/$basename""_fail.cpp" >> ../test/regression.cfg
|
||||
|
||||
# output regression tests:
|
||||
echo "run libs/config/test/$basename""_pass.cpp" >> ../test/regression.cfg
|
||||
echo "link-fail libs/config/test/$basename""_fail.cpp" >> ../test/regression.cfg
|
||||
|
||||
done
|
||||
|
||||
|
||||
#
|
||||
# finish off config_test.cpp:
|
||||
#
|
||||
echo generating "../test/config_test.cpp"
|
||||
cat >> "../test/config_test.cpp" << EOF
|
||||
echo generating "../test/config_test.cpp"
|
||||
cat >> "../test/config_test.cpp" << EOF
|
||||
|
||||
int test_main( int, char *[] )
|
||||
{
|
||||
EOF
|
||||
|
||||
for macro in $all_no; do
|
||||
cat >> "../test/config_test.cpp" << EOF
|
||||
BOOST_TEST(0 == ${macro}::test());
|
||||
cat >> "../test/config_test.cpp" << EOF
|
||||
BOOST_TEST(0 == ${macro}::test());
|
||||
EOF
|
||||
|
||||
done
|
||||
for macro in $all_has; do
|
||||
cat >> "../test/config_test.cpp" << EOF
|
||||
BOOST_TEST(0 == ${macro}::test());
|
||||
cat >> "../test/config_test.cpp" << EOF
|
||||
BOOST_TEST(0 == ${macro}::test());
|
||||
EOF
|
||||
|
||||
done
|
||||
cat >> "../test/config_test.cpp" << EOF
|
||||
return 0;
|
||||
cat >> "../test/config_test.cpp" << EOF
|
||||
return 0;
|
||||
}
|
||||
EOF
|
||||
|
||||
|
||||
Reference in new issue
Block a user