ucx/test.h

changeset 152
62921b370c60
parent 124
80609f9675f1
equal deleted inserted replaced
151:11f3bb408051 152:62921b370c60
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * 3 *
4 * Copyright 2015 Olaf Wintermann. All rights reserved. 4 * Copyright 2016 Olaf Wintermann. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met: 7 * modification, are permitted provided that the following conditions are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
158 void ucx_test_run(UcxTestSuite* suite, FILE* outstream); 158 void ucx_test_run(UcxTestSuite* suite, FILE* outstream);
159 159
160 /** 160 /**
161 * Macro for a #UcxTest function header. 161 * Macro for a #UcxTest function header.
162 * 162 *
163 * Use this macro to declare and/or define an #UcxTest function. 163 * Use this macro to declare and/or define a #UcxTest function.
164 * 164 *
165 * @param name the name of the test function 165 * @param name the name of the test function
166 */ 166 */
167 #define UCX_TEST(name) void name(UcxTestSuite* _suite_,FILE *_output_) 167 #define UCX_TEST(name) void name(UcxTestSuite* _suite_,FILE *_output_)
168 168
194 } 194 }
195 195
196 /** 196 /**
197 * Macro for a test subroutine function header. 197 * Macro for a test subroutine function header.
198 * 198 *
199 * Use this to declare and/or define an subroutine that can be called by using 199 * Use this to declare and/or define a subroutine that can be called by using
200 * UCX_TEST_CALL_SUBROUTINE(). 200 * UCX_TEST_CALL_SUBROUTINE().
201 * 201 *
202 * @param name the name of the subroutine 202 * @param name the name of the subroutine
203 * @param ... the parameter list 203 * @param ... the parameter list
204 * 204 *

mercurial