blob: beeb7d5f959b6860e155226ef6c8b8bf36401a63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include <boost/test/unit_test.hpp>
#include "create.h"
#include "index.h"
using namespace ::boost::unit_test;
namespace create_test {
const char* fname = "create-test-delete-me/////";
void cleanup() {
indexlib::remove( fname );
}
void simple() {
cleanup();
std::auto_ptr<indexlib::index> ptr = indexlib::create( fname );
BOOST_CHECK( ptr.get() );
}
test_suite* get_suite() {
test_suite* test = BOOST_TEST_SUITE( "Create tests" );
test->add( BOOST_TEST_CASE( &simple ) );
return test;
}
}
|