μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
definitions.hpp
Go to the documentation of this file.
1/*
2---------------------------------------------------------------------------
3
4 This file is part of uHAL.
5
6 uHAL is a hardware access library and programming framework
7 originally developed for upgrades of the Level-1 trigger of the CMS
8 experiment at CERN.
9
10 uHAL is free software: you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation, either version 3 of the License, or
13 (at your option) any later version.
14
15 uHAL is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with uHAL. If not, see <http://www.gnu.org/licenses/>.
22
23 Andrew Rose, Imperial College, London
24 email: awr01 <AT> imperial.ac.uk
25
26 Tom Williams, Rutherford Appleton Laboratory, Oxfordshire
27 email: tom.williams <AT> cern.ch
28
29---------------------------------------------------------------------------
30*/
31
32#ifndef _uhal_tests_definitions_hpp_
33#define _uhal_tests_definitions_hpp_
34
35
36namespace uhal {
37namespace tests {
38
47};
48
49} // end ns tests
50} // end ns uhal
51
52
53#define UHAL_TESTS_DEFINE_CLIENT_TEST_CASES( test_suite_name , test_case_name , test_fixture, test_case_contents ) \
54 \
55 BOOST_AUTO_TEST_SUITE( ipbusudp_1_3 ) \
56 \
57 BOOST_AUTO_TEST_SUITE( test_suite_name ) \
58 \
59 BOOST_FIXTURE_TEST_CASE( test_case_name , test_fixture<IPBUS_1_3_UDP> ) \
60 {\
61 test_case_contents \
62 }\
63 \
64 BOOST_AUTO_TEST_SUITE_END() \
65 \
66 BOOST_AUTO_TEST_SUITE_END() \
67 \
68 \
69 BOOST_AUTO_TEST_SUITE( ipbustcp_1_3 ) \
70 \
71 BOOST_AUTO_TEST_SUITE( test_suite_name ) \
72 \
73 BOOST_FIXTURE_TEST_CASE( test_case_name , test_fixture<IPBUS_1_3_TCP> ) \
74 {\
75 test_case_contents \
76 }\
77 \
78 BOOST_AUTO_TEST_SUITE_END() \
79 \
80 BOOST_AUTO_TEST_SUITE_END() \
81 \
82 \
83 BOOST_AUTO_TEST_SUITE( chtcp_1_3 ) \
84 \
85 BOOST_AUTO_TEST_SUITE( test_suite_name ) \
86 \
87 BOOST_FIXTURE_TEST_CASE( test_case_name , test_fixture<IPBUS_1_3_CONTROLHUB> ) \
88 {\
89 test_case_contents \
90 }\
91 \
92 BOOST_AUTO_TEST_SUITE_END() \
93 \
94 BOOST_AUTO_TEST_SUITE_END() \
95 \
96 \
97 BOOST_AUTO_TEST_SUITE( ipbusudp_2_0 ) \
98 \
99 BOOST_AUTO_TEST_SUITE( test_suite_name ) \
100 \
101 BOOST_FIXTURE_TEST_CASE( test_case_name , test_fixture<IPBUS_2_0_UDP> ) \
102 {\
103 test_case_contents \
104 }\
105 \
106 BOOST_AUTO_TEST_SUITE_END() \
107 \
108 BOOST_AUTO_TEST_SUITE_END() \
109 \
110 \
111 BOOST_AUTO_TEST_SUITE( ipbustcp_2_0 ) \
112 \
113 BOOST_AUTO_TEST_SUITE( test_suite_name ) \
114 \
115 BOOST_FIXTURE_TEST_CASE( test_case_name , test_fixture<IPBUS_2_0_TCP> ) \
116 {\
117 test_case_contents \
118 }\
119 \
120 BOOST_AUTO_TEST_SUITE_END() \
121 \
122 BOOST_AUTO_TEST_SUITE_END() \
123 \
124 \
125 BOOST_AUTO_TEST_SUITE( chtcp_2_0 ) \
126 \
127 BOOST_AUTO_TEST_SUITE( test_suite_name ) \
128 \
129 BOOST_FIXTURE_TEST_CASE( test_case_name , test_fixture<IPBUS_2_0_CONTROLHUB> ) \
130 {\
131 test_case_contents \
132 }\
133 \
134 BOOST_AUTO_TEST_SUITE_END() \
135 \
136 BOOST_AUTO_TEST_SUITE_END() \
137 \
138 \
139 BOOST_AUTO_TEST_SUITE( ipbuspcie_2_0 ) \
140 \
141 BOOST_AUTO_TEST_SUITE( test_suite_name ) \
142 \
143 BOOST_FIXTURE_TEST_CASE( test_case_name , test_fixture<IPBUS_2_0_PCIE> ) \
144 {\
145 test_case_contents \
146 }\
147 \
148 BOOST_AUTO_TEST_SUITE_END() \
149 \
150 BOOST_AUTO_TEST_SUITE_END()
151
152
153#endif
@ IPBUS_2_0_CONTROLHUB
Definition: definitions.hpp:45
@ IPBUS_1_3_CONTROLHUB
Definition: definitions.hpp:42