monotone

monotone Mtn Source Tree

Root/unit_tests.hh

1#ifndef __UNIT_TESTS__
2#define __UNIT_TESTS__
3
4// Copyright (C) 2002 Graydon Hoare <graydon@pobox.com>
5//
6// This program is made available under the GNU GPL version 2.0 or
7// greater. See the accompanying file COPYING for details.
8//
9// This program is distributed WITHOUT ANY WARRANTY; without even the
10// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11// PURPOSE.
12
13#include <boost/test/unit_test_suite.hpp>
14#include <boost/test/test_tools.hpp>
15
16// strangely this was left out. perhaps it'll arrive later?
17#ifndef BOOST_CHECK_NOT_THROW
18#define BOOST_CHECK_NOT_THROW( statement, exception ) \
19 try { statement; BOOST_CHECK_MESSAGE(true, "exception "#exception" did not occur" ); } \
20 catch( exception const& ) { \
21 BOOST_ERROR( "exception "#exception" occurred" ); \
22 }
23#endif
24
25using boost::unit_test_framework::test_suite;
26
27// list the various add-tests-to-the-testsuite functions here
28void add_diff_patch_tests(test_suite * suite);
29void add_file_io_tests(test_suite * suite);
30void add_key_tests(test_suite * suite);
31void add_transform_tests(test_suite * suite);
32void add_charset_tests(test_suite * suite);
33void add_simplestring_xform_tests(test_suite * suite);
34void add_vocab_tests(test_suite * suite);
35void add_cset_tests(test_suite * suite);
36void add_revision_tests(test_suite * suite);
37void add_xdelta_tests(test_suite * suite);
38void add_packet_tests(test_suite * suite);
39void add_netcmd_tests(test_suite * suite);
40void add_globish_tests(test_suite * suite);
41void add_crypto_tests(test_suite * suite);
42void add_string_queue_tests(test_suite * suite);
43void add_pipe_tests(test_suite * suite);
44void add_paths_tests(test_suite * suite);
45void add_roster_tests(test_suite * suite);
46void add_roster_merge_tests(test_suite * suite);
47void add_restrictions_tests(test_suite * suite);
48void add_uri_tests(test_suite * suite);
49void add_refiner_tests(test_suite * suite);
50
51// Local Variables:
52// mode: C++
53// fill-column: 76
54// c-file-style: "gnu"
55// indent-tabs-mode: nil
56// End:
57// vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s:
58
59#endif

Archive Download this file

Branches

Tags

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