/[ascend]/trunk/ascend/packages/test/test_register_packages.c
ViewVC logotype

Contents of /trunk/ascend/packages/test/test_register_packages.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2241 - (show annotations) (download) (as text)
Sun Aug 1 03:17:50 2010 UTC (13 years, 10 months ago) by jpye
File MIME type: text/x-csrc
File size: 1313 byte(s)
Adding test case for defaultall.c errors.
1 /* ASCEND modelling environment
2 Copyright (C) 2007 Carnegie Mellon University
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA.
18 */
19
20 #include <ascend/utilities/ascConfig.h>
21 #include "test_register_packages.h"
22
23 #define SUITE packages
24
25 #define TESTS(T) \
26 T(defaultall)
27
28 #define PROTO_TEST(NAME) PROTO(packages,NAME)
29 TESTS(PROTO_TEST)
30 #undef PROTO_TEST
31
32 #define REGISTER_TEST(NAME) \
33 result = test_register_packages_##NAME(); \
34 if(CUE_SUCCESS!=result){ \
35 return result; \
36 }
37
38 #define REGISTER_SUITE(SUITENAME,TESTS) \
39 CU_ErrorCode test_register_##SUITENAME(void){ \
40 CU_ErrorCode result = CUE_SUCCESS; \
41 TESTS(REGISTER_TEST) \
42 return result; \
43 }
44
45 REGISTER_SUITE(packages,TESTS)

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22