/[ascend]/trunk/ascend/compiler/test/test_register_compiler.c
ViewVC logotype

Contents of /trunk/ascend/compiler/test/test_register_compiler.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2388 - (show annotations) (download) (as text)
Tue Feb 15 03:36:18 2011 UTC (11 years, 11 months ago) by jpye
File MIME type: text/x-csrc
File size: 1342 byte(s)
Added test suite for bintokens, now working correctly in test environment.
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/general/platform.h>
21 #include "test_register_compiler.h"
22
23 #define SUITE compiler
24
25 #define TESTS(T) \
26 T(basics) \
27 T(autodiff) \
28 T(expr) \
29 T(bintok)
30
31
32 #define PROTO_TEST(NAME) PROTO(compiler,NAME)
33 TESTS(PROTO_TEST)
34 #undef PROTO_TEST
35
36 #define REGISTER_TEST(NAME) \
37 result = TESTREGISTER(compiler,NAME); \
38 if(CUE_SUCCESS!=result){ \
39 return result; \
40 }
41
42 #define REGISTER_SUITE(SUITENAME,TESTS) \
43 CU_ErrorCode test_register_##SUITENAME(void){ \
44 CU_ErrorCode result = CUE_SUCCESS; \
45 TESTS(REGISTER_TEST) \
46 return result; \
47 }
48
49 REGISTER_SUITE(compiler,TESTS)

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