• R/O
  • SSH
  • HTTPS

autest: Commit


Commit MetaInfo

Revision4 (tree)
Zeit2013-02-18 08:43:09
Autorsrz_zumix

Log Message

グローバル変数の扱いを修正
ファイル分割

Ändern Zusammenfassung

Diff

--- trunk/toolchain/include/autest.h (revision 3)
+++ trunk/toolchain/include/autest.h (revision 4)
@@ -24,17 +24,34 @@
2424 * @{
2525 */
2626
27+#if 0
28+
2729 #define AUTEST_TEST(testcase_, testname_) __sharp__OnAutoItStartRegister \
28- AUTEST_PP_TOSTRING( AUTEST_PP_CAT(testcase_, testname_)) \
29- __lf__Func AUTEST_PP_CAT(testcase_, testname_)() \
30- __lf__ AUTEST_ConsolePrint("[ RUN ]") \
30+ AUTEST_PP_TOSTRING( AUTEST_PP_CAT(testcase_, testname_)_AddTestCase ) \
31+ __lf__Func AUTEST_PP_CAT(AUTEST_PP_CAT(testcase_, testname_),_AddTestCase()) \
32+ __lf__ Autest_AddTestCase(#testcase_) \
33+ __lf__EndFunc \
34+ __lf__Func AUTEST_PP_CAT(testcase_, testname_)() \
35+ __lf__ ConsoleWrite("[ RUN ] ") \
36+ __lf__ ConsoleWrite(#testcase_) \
37+ __lf__ ConsoleWrite(".") \
38+ __lf__ ConsoleWrite(#testname_) \
39+ __lf__ ConsoleWrite(@CRLF) \
3140
41+#else
3242
33-// AUTEST_PP_TOSTRING( AUTEST_PP_CAT(testcase_, testname_)_AddTestCase ) \
34-// __lf__Func AUTEST_PP_CAT(AUTEST_PP_CAT(testcase_, testname_),_AddTestCase()) \
35-// __lf__ Autest_AddTestCase(#testcase_) \
36-// __lf__EndFunc \
43+#define AUTEST_TEST(testcase_, testname_) __sharp__OnAutoItStartRegister \
44+ AUTEST_PP_TOSTRING( AUTEST_PP_CAT(testcase_, testname_) ) \
45+ __lf__Func AUTEST_PP_CAT(testcase_, testname_)() \
46+ __lf__ ConsoleWrite("[ RUN ] ") \
47+ __lf__ ConsoleWrite(#testcase_) \
48+ __lf__ ConsoleWrite(".") \
49+ __lf__ ConsoleWrite(#testname_) \
50+ __lf__ ConsoleWrite(@CRLF) \
3751
52+#endif
53+
54+
3855 #define AUTEST_TEST_END() EndFunc
3956
4057
Show on old repository browser