mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
removed unneeded working directory passing
This commit is contained in:
@ -85,10 +85,8 @@ run unordered/copy_tests.cpp : : : <define>BOOST_UNORDERED_USE_MOVE : bmove_copy
|
|||||||
run unordered/move_tests.cpp : : : <define>BOOST_UNORDERED_USE_MOVE : bmove_move ;
|
run unordered/move_tests.cpp : : : <define>BOOST_UNORDERED_USE_MOVE : bmove_move ;
|
||||||
run unordered/assign_tests.cpp : : : <define>BOOST_UNORDERED_USE_MOVE : bmove_assign ;
|
run unordered/assign_tests.cpp : : : <define>BOOST_UNORDERED_USE_MOVE : bmove_assign ;
|
||||||
|
|
||||||
path-constant BOOST_UNORDERED_TEST_DIR : . ;
|
|
||||||
|
|
||||||
run unordered/serialization_tests.cpp
|
run unordered/serialization_tests.cpp
|
||||||
: $(BOOST_UNORDERED_TEST_DIR)
|
:
|
||||||
:
|
:
|
||||||
: <define>BOOST_UNORDERED_ENABLE_SERIALIZATION_COMPATIBILITY_V0
|
: <define>BOOST_UNORDERED_ENABLE_SERIALIZATION_COMPATIBILITY_V0
|
||||||
<warnings>off # Boost.Serialization headers are not warning-free
|
<warnings>off # Boost.Serialization headers are not warning-free
|
||||||
@ -162,8 +160,7 @@ run unordered/hash_is_avalanching_test.cpp ;
|
|||||||
run unordered/serialization_tests.cpp
|
run unordered/serialization_tests.cpp
|
||||||
:
|
:
|
||||||
:
|
:
|
||||||
: $(CPP11)
|
: $(CPP11) <define>BOOST_UNORDERED_FOA_TESTS
|
||||||
<define>BOOST_UNORDERED_FOA_TESTS
|
|
||||||
<warnings>off # Boost.Serialization headers are not warning-free
|
<warnings>off # Boost.Serialization headers are not warning-free
|
||||||
<library>/boost//serialization/<warnings>off
|
<library>/boost//serialization/<warnings>off
|
||||||
: foa_serialization_tests ;
|
: foa_serialization_tests ;
|
||||||
|
@ -105,9 +105,6 @@ namespace {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// used by legacy_serialization_test, passed as argv[1]
|
|
||||||
const char* test_dir=".";
|
|
||||||
|
|
||||||
using test::default_generator;
|
using test::default_generator;
|
||||||
|
|
||||||
std::pair<
|
std::pair<
|
||||||
@ -148,8 +145,8 @@ namespace {
|
|||||||
void legacy_serialization_test(
|
void legacy_serialization_test(
|
||||||
std::pair<Container*,const char*> lc, std::pair<Archive*,const char*> la)
|
std::pair<Container*,const char*> lc, std::pair<Archive*,const char*> la)
|
||||||
{
|
{
|
||||||
typedef typename Container::value_type value_type;
|
typedef typename Container::value_type value_type;
|
||||||
typedef std::vector<value_type> value_vector;
|
typedef std::vector<value_type> value_vector;
|
||||||
|
|
||||||
static const std::size_t sizes[] = {0, 10, 100};
|
static const std::size_t sizes[] = {0, 10, 100};
|
||||||
|
|
||||||
@ -158,8 +155,8 @@ namespace {
|
|||||||
for(int i = 0; i < sizeof(sizes)/sizeof(sizes[0]); ++i) {
|
for(int i = 0; i < sizeof(sizes)/sizeof(sizes[0]); ++i) {
|
||||||
char filename[1024];
|
char filename[1024];
|
||||||
std::sprintf(
|
std::sprintf(
|
||||||
filename, "%s/legacy_archives/%s_%d.%s",
|
filename, "./legacy_archives/%s_%d.%s",
|
||||||
test_dir, lc.second, (int)sizes[i], la.second);
|
lc.second, (int)sizes[i], la.second);
|
||||||
std::ifstream ifs(filename);
|
std::ifstream ifs(filename);
|
||||||
Archive ia(ifs);
|
Archive ia(ifs);
|
||||||
Container c;
|
Container c;
|
||||||
@ -198,11 +195,4 @@ namespace {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
RUN_TESTS()
|
||||||
{
|
|
||||||
if (argc > 1) test_dir = argv[1];
|
|
||||||
|
|
||||||
BOOST_UNORDERED_TEST_COMPILER_INFO()
|
|
||||||
::test::get_state().run_tests();
|
|
||||||
return boost::report_errors();
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user