1 // check.as - Include file for MTASC testcases providing common testing facilities
3 // Copyright (C) 2005, 2006, 2007, 2009, 2010 Free Software
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 // Original author: David Rorex - drorex@gmail.com
27 #define _INFO_
' ['+__FILE__
+':'+__LINE__
+']'
29 // First argument is the expression we test, second is the result we expect
30 #define check_equals
(obt
, exp
) Dejagnu
.check_equals
(obt
, exp
, _INFO_
);
32 // First argument is the expression we test, second is the result we expect
33 #define xcheck_equals
(obt
, exp
) Dejagnu
.xcheck_equals
(obt
, exp
, _INFO_
);
35 #define check
(a
) Dejagnu
.check
(a
, #a
+' '+_INFO_
);
36 #define xcheck
(a
) Dejagnu
.xcheck
(a
, #a
+' '+_INFO_
);
38 #define pass
(text
) Dejagnu
.pass
(text
+ _INFO_
)
39 #define xpass
(text
) Dejagnu
.xpass
(text
+ _INFO_
)
40 #define fail
(text
) Dejagnu
.fail
(text
+ _INFO_
)
41 #define xfail
(text
) Dejagnu
.xfail
(text
+ _INFO_
)
42 #define pass
(text
) Dejagnu
.pass
(text
+ _INFO_
)
43 #define untested
(text
) Dejagnu
.untested
(text
+ _INFO_
)
44 #define unresolved
(text
) Dejagnu
.unresolved
(text
+ _INFO_
)
46 #define check_totals
(n
) Dejagnu
.totals
(n
, _INFO_
)
47 #define xcheck_totals
(n
) Dejagnu
.xtotals
(n
, _INFO_
)
49 #define note
(text
) Dejagnu
.note
(text
+ _INFO_
);