monotone

monotone Mtn Source Tree

Root/unit_tests.hh

1#ifndef __UNIT_TESTS__
2#define __UNIT_TESTS__
3
4// copyright (C) 2002, 2003 graydon hoare <graydon@pobox.com>
5// all rights reserved.
6// licensed to the public under the terms of the GNU GPL (>= 2)
7// see the file COPYING for details
8
9#include <boost/test/unit_test_suite.hpp>
10#include <boost/test/test_tools.hpp>
11
12// strangely this was left out. perhaps it'll arrive later?
13#ifndef BOOST_CHECK_NOT_THROW
14#define BOOST_CHECK_NOT_THROW( statement, exception ) \
15 try { statement; BOOST_CHECK_MESSAGE(true, "exception "#exception" did not occur" ); } \
16 catch( exception const& ) { \
17 BOOST_ERROR( "exception "#exception" occurred" ); \
18 }
19#endif
20
21using boost::unit_test_framework::test_suite;
22
23// list the various add-tests-to-the-testsuite functions here
24void add_diff_patch_tests(test_suite * suite);
25void add_file_io_tests(test_suite * suite);
26void add_key_tests(test_suite * suite);
27void add_transform_tests(test_suite * suite);
28void add_vocab_tests(test_suite * suite);
29void add_change_set_tests(test_suite * suite);
30void add_revision_tests(test_suite * suite);
31void add_xdelta_tests(test_suite * suite);
32void add_packet_tests(test_suite * suite);
33void add_netcmd_tests(test_suite * suite);
34void add_path_component_tests(test_suite * suite);
35
36#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status