Update link_test to check that separate file template instantiation and export works as expected.

[SVN r62332]
This commit is contained in:
John Maddock
2010-05-30 17:31:09 +00:00
parent 915cd05f0e
commit 1f0f1c2dcf
5 changed files with 78 additions and 10 deletions
+33 -5
View File
@@ -9,6 +9,8 @@
#define BOOST_CONFIG_SOURCE
#include "link_test.hpp"
#include <iostream>
#include <iomanip>
bool BOOST_CONFIG_DECL check_options(
bool m_dyn_link,
@@ -17,10 +19,36 @@ bool BOOST_CONFIG_DECL check_options(
bool m_debug,
bool m_stlp_debug)
{
return (m_dyn_link == dyn_link)
&& (m_dyn_rtl == dyn_rtl)
&& (m_has_threads == has_threads)
&& (m_debug == debug)
&& (m_stlp_debug == stl_debug);
if(m_dyn_link != dyn_link)
{
std::cout << "Dynamic link options do not match" << std::endl;
std::cout << "Application setting = " << m_dyn_link << " Library setting = " << dyn_link << std::endl;
return false;
}
if(m_dyn_rtl != dyn_rtl)
{
std::cout << "Runtime library options do not match" << std::endl;
std::cout << "Application setting = " << m_dyn_rtl << " Library setting = " << dyn_rtl << std::endl;
return false;
}
if(m_has_threads != has_threads)
{
std::cout << "Threading options do not match" << std::endl;
std::cout << "Application setting = " << m_has_threads << " Library setting = " << has_threads << std::endl;
return false;
}
if(m_debug != debug)
{
std::cout << "Debug options do not match" << std::endl;
std::cout << "Application setting = " << m_debug << " Library setting = " << debug << std::endl;
return false;
}
if(m_stlp_debug != stl_debug)
{
std::cout << "STLPort debug options do not match" << std::endl;
std::cout << "Application setting = " << m_stlp_debug << " Library setting = " << stl_debug << std::endl;
return false;
}
return true;
}