• R/O
  • SSH
  • HTTPS

autest: Commit


Commit MetaInfo

Revision2 (tree)
Zeit2012-11-24 22:46:26
Autorsrz_zumix

Log Message

first commit

Ändern Zusammenfassung

Diff

--- trunk/test/Makefile (nonexistent)
+++ trunk/test/Makefile (revision 2)
@@ -0,0 +1,9 @@
1+
2+SOURCES = autest_bool_test.au3 \
3+ autest_compare_test.au3 \
4+ autest_stringcomp_test.au3
5+
6+
7+build: DEFAULT_TARGETS
8+
9+include $(AUTEST_ROOT)/toolchain/commondefs
--- trunk/toolchain/include/autest.h (nonexistent)
+++ trunk/toolchain/include/autest.h (revision 2)
@@ -0,0 +1,43 @@
1+#ifndef INCG_AUTEST_H_
2+#define INCG_AUTEST_H_
3+
4+/**
5+ * @brief テストマクロ
6+ * @{
7+*/
8+
9+#define AUTEST_ASSERT_TRUE(statement, ...) AUTEST_ASSERT_TRUE(statement, #statement, __FILE__, __LINE__)
10+#define AUTEST_EXPECT_TRUE(statement, ...) AUTEST_EXPECT_TRUE(statement, #statement, __FILE__, __LINE__)
11+
12+#define AUTEST_ASSERT_FALSE(statement, ...) AUTEST_ASSERT_FALSE(statement, #statement, __FILE__, __LINE__)
13+#define AUTEST_EXPECT_FALSE(statement, ...) AUTEST_EXPECT_FALSE(statement, #statement, __FILE__, __LINE__)
14+
15+#define AUTEST_ASSERT_EQ(expected, actual) AUTEST_ASSERT_EQ(expected, actual, #expected, #actual, __FILE__, __LINE__)
16+#define AUTEST_EXPECT_EQ(expected, actual) AUTEST_EXPECT_EQ(expected, actual, #expected, #actual, __FILE__, __LINE__)
17+#define AUTEST_ASSERT_NE(val1, val2) AUTEST_ASSERT_NE(val1, val2, #val1, #val2, __FILE__, __LINE__)
18+#define AUTEST_EXPECT_NE(val1, val2) AUTEST_EXPECT_NE(val1, val2, #val1, #val2, __FILE__, __LINE__)
19+#define AUTEST_ASSERT_LT(val1, val2) AUTEST_ASSERT_LT(val1, val2, #val1, #val2, __FILE__, __LINE__)
20+#define AUTEST_EXPECT_LT(val1, val2) AUTEST_EXPECT_LT(val1, val2, #val1, #val2, __FILE__, __LINE__)
21+#define AUTEST_ASSERT_LE(val1, val2) AUTEST_ASSERT_LE(val1, val2, #val1, #val2, __FILE__, __LINE__)
22+#define AUTEST_EXPECT_LE(val1, val2) AUTEST_EXPECT_LE(val1, val2, #val1, #val2, __FILE__, __LINE__)
23+#define AUTEST_ASSERT_GT(val1, val2) AUTEST_ASSERT_GT(val1, val2, #val1, #val2, __FILE__, __LINE__)
24+#define AUTEST_EXPECT_GT(val1, val2) AUTEST_EXPECT_GT(val1, val2, #val1, #val2, __FILE__, __LINE__)
25+#define AUTEST_ASSERT_GE(val1, val2) AUTEST_ASSERT_GE(val1, val2, #val1, #val2, __FILE__, __LINE__)
26+#define AUTEST_EXPECT_GE(val1, val2) AUTEST_EXPECT_GE(val1, val2, #val1, #val2, __FILE__, __LINE__)
27+
28+
29+#define AUTEST_ASSERT_STREQ(str1, str2, ...) AUTEST_ASSERT_STREQ(str1, str2, #str1, #str2, __FILE__, __LINE__)
30+#define AUTEST_EXPECT_STREQ(str1, str2, ...) AUTEST_EXPECT_STREQ(str1, str2, #str1, #str2, __FILE__, __LINE__)
31+#define AUTEST_ASSERT_STRNE(str1, str2, ...) AUTEST_ASSERT_STRNE(str1, str2, #str1, #str2, __FILE__, __LINE__)
32+#define AUTEST_EXPECT_STRNE(str1, str2, ...) AUTEST_EXPECT_STRNE(str1, str2, #str1, #str2, __FILE__, __LINE__)
33+
34+#define AUTEST_ASSERT_STRCASEEQ(str1, str2, ...) AUTEST_ASSERT_STRCASEEQ(str1, str2, #str1, #str2, __FILE__, __LINE__)
35+#define AUTEST_EXPECT_STRCASEEQ(str1, str2, ...) AUTEST_EXPECT_STRCASEEQ(str1, str2, #str1, #str2, __FILE__, __LINE__)
36+#define AUTEST_ASSERT_STRCASENE(str1, str2, ...) AUTEST_ASSERT_STRCASENE(str1, str2, #str1, #str2, __FILE__, __LINE__)
37+#define AUTEST_EXPECT_STRCASENE(str1, str2, ...) AUTEST_EXPECT_STRCASENE(str1, str2, #str1, #str2, __FILE__, __LINE__)
38+
39+/**
40+ * @}
41+*/
42+
43+#endif
--- trunk/LICENSE (nonexistent)
+++ trunk/LICENSE (revision 2)
@@ -0,0 +1,32 @@
1+==============================================================================
2+autest LICENSE
3+==============================================================================
4+/*
5+--------------------------------------------------------------------------------
6+Copyright (c) 2012, Takazumi-Shirayanagi
7+--------------------------------------------------------------------------------
8+*/
9+
10+Redistribution and use in source and binary forms, with or without modification,
11+are permitted provided that the following conditions are met:
12+
13+ 1. Redistributions of source code must retain the above copyright notice,
14+ this list of conditions and the following disclaimer.
15+ 2. Redistributions in binary form must reproduce the above copyright notice,
16+ this list of conditions and the following disclaimer in the documentation
17+ and/or other materials provided with the distribution.
18+ 3. the copyright holder's name is not used to endorse products
19+ built using this software without specific written permission.
20+
21+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
24+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32+
--- trunk/samples/failure/Makefile (nonexistent)
+++ trunk/samples/failure/Makefile (revision 2)
@@ -0,0 +1,6 @@
1+
2+SOURCES = sample.au3
3+
4+build: DEFAULT_TARGETS
5+
6+include $(AUTEST_ROOT)/toolchain/commondefs
--- trunk/samples/notepad/Makefile (nonexistent)
+++ trunk/samples/notepad/Makefile (revision 2)
@@ -0,0 +1,6 @@
1+
2+SOURCES = sample.au3
3+
4+build: DEFAULT_TARGETS
5+
6+include $(AUTEST_ROOT)/toolchain/commondefs
--- trunk/readme.txt (nonexistent)
+++ trunk/readme.txt (revision 2)
@@ -0,0 +1,23 @@
1+readme.txt for autest
2+===================
3+
4+--------------------------------------------------
5+Name
6+
7+ autest
8+
9+--------------------------------------------------
10+Environment variable
11+
12+ AUTOIT_ROOT : autoit install root directory.
13+ AUTEST_ROOT : autest root directory.
14+
15+--------------------------------------------------
16+License
17+
18+ Copyright (c) 2012, Takazumi-Shirayanagi,
19+ All rights reserved.
20+
21+ The new(3-clause) BSD License is applied to this software, see LICENSE
22+
23+
Show on old repository browser