Delete some obsolete files, cleanup the Jamefile.

This commit is contained in:
Beman
2013-03-18 19:38:25 -04:00
parent 8782df3ab5
commit c177062bf5
4 changed files with 13 additions and 185 deletions

19
INSTALL
View File

@@ -1,19 +0,0 @@
Installation of a review candidate
==================================
1) Download the .zip distribution file. Move it to, say, /temp, and unzip it there.
That will result in a directory in /temp named endian-rc#, where # is the number of the
review candidate.
2) If you haven't already done so, install a current version of Boost.
Since Boost.Endian is a header only library, there is no need to run a build.
3) Copy the endian files to your Boost installation (replace MY-BOOST with its path):
Windows: xcopy /s /i \temp\endian-rc#\* MY-BOOST
POSIX: cp -r /temp/endian-rc#/* MY-BOOST
4) Run the tests (as a confidence builder that the install went OK):
cd MY-BOOST/endian/libs/endian/test
bjam

View File

@@ -1,118 +0,0 @@
// boost timer.hpp ---------------------------------------------------------//
// Copyright Beman Dawes 1994-2007
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
// See http://www.boost.org/libs/system for documentation.
#ifndef BOOST_ENDIAN_TIMER_HPP
#define BOOST_ENDIAN_TIMER_HPP
#include <boost/config/warning_disable.hpp>
#include <boost/endian/detail/config.hpp>
#include <boost/system/error_code.hpp>
#include <boost/cstdint.hpp>
#include <string>
#include <cstring>
#include <ostream>
#include <boost/config/abi_prefix.hpp> // must be the last #include
namespace boost
{
namespace endian
{
typedef boost::int_least64_t microsecond_t;
struct times_t
{
microsecond_t wall;
microsecond_t user;
microsecond_t system;
void clear() { wall = user = system = 0LL; }
};
// low-level functions -------------------------------------------------//
BOOST_ENDIAN_DECL
void times(times_t& result); // throws on error
BOOST_ENDIAN_DECL
system::error_code& times(times_t& result, system::error_code& ec); // never throws
// timer ---------------------------------------------------------------//
// unless otherwise specified, all functions throw on error
class BOOST_ENDIAN_DECL timer
{
public:
timer() : m_flags(m_stopped) { start(); }
timer(const std::nothrow_t&) : m_flags(static_cast<m_flags_t>(m_stopped
| m_nothrow)) { start(); }
~timer() {} // never throws
void start();
const times_t& stop();
bool stopped() const { return m_flags& m_stopped; }
void elapsed(times_t& result); // does not stop()
private:
times_t m_times;
enum m_flags_t { m_stopped=1, m_nothrow=2 };
m_flags_t m_flags;
};
// run_timer -----------------------------------------------------------//
// unless otherwise specified, all functions throw on error
class BOOST_ENDIAN_DECL run_timer : public timer
{
public:
// each constructor has two overloads to avoid an explicit default to
// std::cout, which in turn would require including <iostream> with its
// high associated cost even when the standard streams are not used.
explicit run_timer(int places = 2);
run_timer(int places, std::ostream& os)
: m_places(places), m_os(os), m_format(0) {}
explicit run_timer(const std::string& format, int places = 2);
run_timer(const std::string& format, int places, std::ostream& os)
: m_places(places), m_os(os), m_format(new char[format.size()+1])
{ std::strcpy(m_format, format.c_str()); }
~run_timer() // never throws
{
system::error_code ec;
if(!stopped())
report(ec);
delete [] m_format;
}
void report();
system::error_code
report(system::error_code& ec); // never throws
private:
int m_places;
std::ostream& m_os;
char* m_format; // doesn't use std::string as VC++ too painful
// across DLL boundaries due to warning C4251
};
} // namespace endian
} // namespace boost
#include <boost/config/abi_suffix.hpp> // pops abi_prefix.hpp pragmas
#endif // BOOST_ENDIAN_TIMER_HPP

View File

@@ -1,19 +1,26 @@
# Boost Endian Library test Jamfile
# Copyright Beman Dawes 2006
# Copyright Beman Dawes 2006, 2013
# Distributed under the Boost Software License, Version 1.0.
# See http://www.boost.org/LICENSE_1_0.txt
# See library home page at http://www.boost.org/libs/endian
import testing ;
project
: requirements
<toolset>msvc:<asynch-exceptions>on
;
test-suite "endian"
:
[ run endian_test.cpp ]
[ run endian_operations_test.cpp
: : : <toolset>gcc:<cxxflags>-Wno-sign-compare ]
[ run endian_test.cpp
: # command line
: # input files
: # requirements
]
[ run endian_operations_test.cpp ]
[ run endian_in_union_test.cpp ]
[ run conversion_test.cpp ]
;
[ run conversion2_test.cpp ]
;

View File

@@ -1,42 +0,0 @@
@echo off
echo Special version of boost_test for sandbox version of endian library.
xcopy /D %BOOST_TRUNK%\boost-build.jam ..\..\..\..
xcopy /D %BOOST_TRUNK%\boostcpp.jam ..\..\..\..
xcopy /D %BOOST_TRUNK%\Jamroot ..\..\..\..
set BOOST_BUILD_PATH=%BOOST_TRUNK%\tools\build\v2
if not $%1==$--help goto nohelp
echo Invoke: boost_test [-ts toolset] [bjam-options]
echo Default -ts is gcc-4.3,msvc-8.0,msvc-9.0express,msvc-10.0express
goto done
:nohelp
if $%1==$-ts goto toolset
echo Begin test processing...
bjam include=%BOOST_TRUNK% --v2 --dump-tests --toolset=gcc-4.3,msvc-8.0,msvc-9.0express,msvc-10.0express %* >bjam.log 2>&1
goto jam_log
:toolset
echo Begin test processing...
bjam include=%BOOST_TRUNK% --v2 --dump-tests --toolset=%2 %3 %4 %5 %6 %7 %8 %9 >bjam.log 2>&1
:jam_log
echo Begin log processing...
process_jam_log --v2 <bjam.log
start bjam.log
echo Begin compiler status processing...
call boost_relative_root
rem compiler_status barfs on a relative root, so convert it to absolute
dir %BOOST_RELATIVE_ROOT% | grep " Directory of " >%TEMP%\babsr.bat
%UTIL%\change %TEMP%\babsr.bat " Directory of " "set BOOST_TEST_ABS_ROOT=" >nul
%UTIL%\change %TEMP%\babsr.bat "C:" "c:" >nul
%UTIL%\change %TEMP%\babsr.bat "D:" "d:" >nul
%UTIL%\change %TEMP%\babsr.bat "E:" "e:" >nul
%UTIL%\change %TEMP%\babsr.bat "F:" "f:" >nul
call %TEMP%\babsr.bat
compiler_status --v2 %BOOST_TEST_ABS_ROOT% test_status.html test_links.html
start test_status.html
:done