Commit 01be6f37d1d5715c3b3d05147ac1f6a190de3833

Vicent Martí 2011-10-07T14:20:25

Merge pull request #446 from schu/tests-clay-update tests-clay: update

diff --git a/tests-clay/README.md b/tests-clay/README.md
new file mode 100644
index 0000000..4939f57
--- /dev/null
+++ b/tests-clay/README.md
@@ -0,0 +1,26 @@
+Writing Clay tests for libgit2
+==============================
+
+For information on the Clay testing framework and a detailed introduction
+please visit:
+
+https://github.com/tanoku/clay
+
+
+* Write your modules and tests. Use good, meaningful names.
+
+* Mix the tests:
+
+        ./clay
+
+* Make sure you actually build the tests by setting:
+
+        BUILD_CLAY=ON
+
+* Test:
+
+        ./build/libgit2_clay
+
+* Make sure everything is fine.
+
+* Send your pull request. That's it.
diff --git a/tests-clay/clay b/tests-clay/clay
index 365027a..d042a2a 100755
--- a/tests-clay/clay
+++ b/tests-clay/clay
@@ -190,13 +190,13 @@ class ClayTestBuilder:
 
         print("  %s (%d tests)" % (clean_name, len(callbacks)))
 
+
 CLAY_FILES = {
-"clay.c" : r"""eJy9GV1T20jy2f4VsyZgCYQD5M1euErlLlfUZdmqQCpbRSiVLI2xLrLGqxkFONb//brnS6OR5N2Hq+MF1NPd09/d0xzkZVrUGSU/J5zTSszWV+MDC+NU/Huz9WAiK/JlB5YzH1Tl5WMbtknEGiHjt8ekor/XeUUzsmIV4UmZLdkzEJDjty6TF/5WvGwp93gDmItECjs+yOgqLylJi+Ql3sKlIpjNZiF589pAdoCWrwCRxF+vb95djA9GltlTXmbsSd3QQLU6DYCvaVEk29wDZ6BDqqw22lbJ4yYhKdtsKEgBVorIRNK9u5iEIMJIixr/8v76Jv7wgcRxmtG0cI5QrWALdorgz5DE7e8Gb/MdbtYHG5ZRQG1ADl66tkASOx8NRpKmlPM2qy7MlbDK6m0Av6R49gOVyFelNHL8y/XNP7++u4hjADqEZbp9CQSLyKpim4gIFvP8P3ChPoq5PNRggxXfff5y8+H93T9Ch9nX+Nd/kbMLB3IbX9/+/fpz8BySIHgmRyQGyEeAhOSn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0oGVqASsBNIWoO2u9EcPsBrhLrlulsPiHEreazB78aTCvBvABGiwIyamefXsMAwn3OBN5FR8TuZD/xTSfvZF0iM5hC1hBgpNfQo6Am6ad/01235Ve2r46YaxDSgFEVnuLdzuouR/b9P+bEHO5Mg7qKjpnPPKlTEs4wqKuo51IJ+Y/XaSOpecPqYAIPj/P56cvQgtVd74Rtyt9hto5uArqt11fN3nR7jkMjdgrbe6YN7KnIH2pjOuqZSsWcoWxG+zaOnqkSXDy1a/AiTnimyykLtK9ufTEuB6cfjg3Ta7J+qSGQVsr9GEeCa2SVc9j14IT/vI4VmlymdtOSKOrOal/f29+4NqgEOdz5E2z/GF4ABeagMA=="""
 }
-
 if __name__ == '__main__':
     main()
diff --git a/tests-clay/clay.h b/tests-clay/clay.h
index e77a647..184635e 100644
--- a/tests-clay/clay.h
+++ b/tests-clay/clay.h
@@ -57,6 +57,17 @@ void cl_fixture_cleanup(const char *fixture_name);
 /**
  * Test method declarations
  */
+extern void test_status_single__hash_single_file(void);
+extern void test_status_worktree__initialize(void);
+extern void test_status_worktree__cleanup(void);
+extern void test_status_worktree__whole_repository(void);
+extern void test_status_worktree__empty_repository(void);
+extern void test_network_remotes__initialize(void);
+extern void test_network_remotes__cleanup(void);
+extern void test_network_remotes__parsing(void);
+extern void test_network_remotes__refspec_parsing(void);
+extern void test_network_remotes__fnmatch(void);
+extern void test_network_remotes__transform(void);
 extern void test_core_dirent__dont_traverse_dot(void);
 extern void test_core_dirent__traverse_subfolder(void);
 extern void test_core_dirent__traverse_slash_terminated_folder(void);
@@ -75,19 +86,10 @@ extern void test_core_rmdir__delete_recursive(void);
 extern void test_core_rmdir__fail_to_delete_non_empty_dir(void);
 extern void test_core_string__0(void);
 extern void test_core_string__1(void);
+extern void test_core_strtol__int32(void);
+extern void test_core_strtol__int64(void);
 extern void test_core_vector__0(void);
 extern void test_core_vector__1(void);
 extern void test_core_vector__2(void);
-extern void test_network_remotes__initialize(void);
-extern void test_network_remotes__cleanup(void);
-extern void test_network_remotes__parsing(void);
-extern void test_network_remotes__refspec_parsing(void);
-extern void test_network_remotes__fnmatch(void);
-extern void test_network_remotes__transform(void);
-extern void test_status_single__hash_single_file(void);
-extern void test_status_worktree__initialize(void);
-extern void test_status_worktree__cleanup(void);
-extern void test_status_worktree__whole_repository(void);
-extern void test_status_worktree__empty_repository(void);
 
 #endif
diff --git a/tests-clay/clay_main.c b/tests-clay/clay_main.c
index 9cbabb9..cca23f4 100644
--- a/tests-clay/clay_main.c
+++ b/tests-clay/clay_main.c
@@ -660,99 +660,107 @@ cl_fs_cleanup(void)
 
 
 static const struct clay_func _all_callbacks[] = {
-    {"dont_traverse_dot", &test_core_dirent__dont_traverse_dot, 0},
-	{"traverse_subfolder", &test_core_dirent__traverse_subfolder, 0},
-	{"traverse_slash_terminated_folder", &test_core_dirent__traverse_slash_terminated_folder, 0},
-	{"dont_traverse_empty_folders", &test_core_dirent__dont_traverse_empty_folders, 0},
-	{"traverse_weird_filenames", &test_core_dirent__traverse_weird_filenames, 0},
-	{"0", &test_core_filebuf__0, 1},
-	{"1", &test_core_filebuf__1, 1},
-	{"2", &test_core_filebuf__2, 1},
-	{"0", &test_core_path__0, 2},
-	{"1", &test_core_path__1, 2},
-	{"2", &test_core_path__2, 2},
-	{"5", &test_core_path__5, 2},
-	{"6", &test_core_path__6, 2},
-	{"delete_recursive", &test_core_rmdir__delete_recursive, 3},
-	{"fail_to_delete_non_empty_dir", &test_core_rmdir__fail_to_delete_non_empty_dir, 3},
-	{"0", &test_core_string__0, 4},
-	{"1", &test_core_string__1, 4},
-	{"0", &test_core_vector__0, 5},
-	{"1", &test_core_vector__1, 5},
-	{"2", &test_core_vector__2, 5},
-	{"parsing", &test_network_remotes__parsing, 6},
-	{"refspec_parsing", &test_network_remotes__refspec_parsing, 6},
-	{"fnmatch", &test_network_remotes__fnmatch, 6},
-	{"transform", &test_network_remotes__transform, 6},
-	{"hash_single_file", &test_status_single__hash_single_file, 7},
-	{"whole_repository", &test_status_worktree__whole_repository, 8},
-	{"empty_repository", &test_status_worktree__empty_repository, 8}
+    {"hash_single_file", &test_status_single__hash_single_file, 0},
+	{"whole_repository", &test_status_worktree__whole_repository, 1},
+	{"empty_repository", &test_status_worktree__empty_repository, 1},
+	{"parsing", &test_network_remotes__parsing, 2},
+	{"refspec_parsing", &test_network_remotes__refspec_parsing, 2},
+	{"fnmatch", &test_network_remotes__fnmatch, 2},
+	{"transform", &test_network_remotes__transform, 2},
+	{"dont_traverse_dot", &test_core_dirent__dont_traverse_dot, 3},
+	{"traverse_subfolder", &test_core_dirent__traverse_subfolder, 3},
+	{"traverse_slash_terminated_folder", &test_core_dirent__traverse_slash_terminated_folder, 3},
+	{"dont_traverse_empty_folders", &test_core_dirent__dont_traverse_empty_folders, 3},
+	{"traverse_weird_filenames", &test_core_dirent__traverse_weird_filenames, 3},
+	{"0", &test_core_filebuf__0, 4},
+	{"1", &test_core_filebuf__1, 4},
+	{"2", &test_core_filebuf__2, 4},
+	{"0", &test_core_path__0, 5},
+	{"1", &test_core_path__1, 5},
+	{"2", &test_core_path__2, 5},
+	{"5", &test_core_path__5, 5},
+	{"6", &test_core_path__6, 5},
+	{"delete_recursive", &test_core_rmdir__delete_recursive, 6},
+	{"fail_to_delete_non_empty_dir", &test_core_rmdir__fail_to_delete_non_empty_dir, 6},
+	{"0", &test_core_string__0, 7},
+	{"1", &test_core_string__1, 7},
+	{"int32", &test_core_strtol__int32, 8},
+	{"int64", &test_core_strtol__int64, 8},
+	{"0", &test_core_vector__0, 9},
+	{"1", &test_core_vector__1, 9},
+	{"2", &test_core_vector__2, 9}
 };
 
 static const struct clay_suite _all_suites[] = {
     {
+        "status::single",
+        {NULL, NULL, 0},
+        {NULL, NULL, 0},
+        &_all_callbacks[0], 1
+    },
+	{
+        "status::worktree",
+        {"initialize", &test_status_worktree__initialize, 1},
+        {"cleanup", &test_status_worktree__cleanup, 1},
+        &_all_callbacks[1], 2
+    },
+	{
+        "network::remotes",
+        {"initialize", &test_network_remotes__initialize, 2},
+        {"cleanup", &test_network_remotes__cleanup, 2},
+        &_all_callbacks[3], 4
+    },
+	{
         "core::dirent",
         {NULL, NULL, 0},
         {NULL, NULL, 0},
-        &_all_callbacks[0], 5
+        &_all_callbacks[7], 5
     },
 	{
         "core::filebuf",
         {NULL, NULL, 0},
         {NULL, NULL, 0},
-        &_all_callbacks[5], 3
+        &_all_callbacks[12], 3
     },
 	{
         "core::path",
         {NULL, NULL, 0},
         {NULL, NULL, 0},
-        &_all_callbacks[8], 5
+        &_all_callbacks[15], 5
     },
 	{
         "core::rmdir",
-        {"initialize", &test_core_rmdir__initialize, 3},
+        {"initialize", &test_core_rmdir__initialize, 6},
         {NULL, NULL, 0},
-        &_all_callbacks[13], 2
+        &_all_callbacks[20], 2
     },
 	{
         "core::string",
         {NULL, NULL, 0},
         {NULL, NULL, 0},
-        &_all_callbacks[15], 2
+        &_all_callbacks[22], 2
     },
 	{
-        "core::vector",
+        "core::strtol",
         {NULL, NULL, 0},
         {NULL, NULL, 0},
-        &_all_callbacks[17], 3
-    },
-	{
-        "network::remotes",
-        {"initialize", &test_network_remotes__initialize, 6},
-        {"cleanup", &test_network_remotes__cleanup, 6},
-        &_all_callbacks[20], 4
+        &_all_callbacks[24], 2
     },
 	{
-        "status::single",
+        "core::vector",
         {NULL, NULL, 0},
         {NULL, NULL, 0},
-        &_all_callbacks[24], 1
-    },
-	{
-        "status::worktree",
-        {"initialize", &test_status_worktree__initialize, 8},
-        {"cleanup", &test_status_worktree__cleanup, 8},
-        &_all_callbacks[25], 2
+        &_all_callbacks[26], 3
     }
 };
 
-static const char _suites_str[] = "core::dirent, core::filebuf, core::path, core::rmdir, core::string, core::vector, network::remotes, status::single, status::worktree";
+static const char _suites_str[] = "status::single, status::worktree, network::remotes, core::dirent, core::filebuf, core::path, core::rmdir, core::string, core::strtol, core::vector";
 
 int _MAIN_CC main(int argc, char *argv[])
 {
     return clay_test(
         argc, argv, _suites_str,
-        _all_callbacks, 27,
-        _all_suites, 9
+        _all_callbacks, 29,
+        _all_suites, 10
     );
 }
diff --git a/tests-clay/core/strtol.c b/tests-clay/core/strtol.c
new file mode 100644
index 0000000..41bf7f8
--- /dev/null
+++ b/tests-clay/core/strtol.c
@@ -0,0 +1,37 @@
+#include "clay_libgit2.h"
+
+void test_core_strtol__int32(void)
+{
+	int32_t i;
+
+	cl_git_pass(git__strtol32(&i, "123", NULL, 10));
+	cl_assert(i == 123);
+	cl_git_pass(git__strtol32(&i, "  +123 ", NULL, 10));
+	cl_assert(i == 123);
+	cl_git_pass(git__strtol32(&i, "  +2147483647 ", NULL, 10));
+	cl_assert(i == 2147483647);
+	cl_git_pass(git__strtol32(&i, "  -2147483648 ", NULL, 10));
+	cl_assert(i == -2147483648LL);
+	
+	cl_git_fail(git__strtol32(&i, "  2147483657 ", NULL, 10));
+	cl_git_fail(git__strtol32(&i, "  -2147483657 ", NULL, 10));
+}
+
+void test_core_strtol__int64(void)
+{
+	int64_t i;
+
+	cl_git_pass(git__strtol64(&i, "123", NULL, 10));
+	cl_assert(i == 123);
+	cl_git_pass(git__strtol64(&i, "  +123 ", NULL, 10));
+	cl_assert(i == 123);
+	cl_git_pass(git__strtol64(&i, "  +2147483647 ", NULL, 10));
+	cl_assert(i == 2147483647);
+	cl_git_pass(git__strtol64(&i, "  -2147483648 ", NULL, 10));
+	cl_assert(i == -2147483648LL);
+	cl_git_pass(git__strtol64(&i, "  2147483657 ", NULL, 10));
+	cl_assert(i == 2147483657LL);
+	cl_git_pass(git__strtol64(&i, "  -2147483657 ", NULL, 10));
+	cl_assert(i == -2147483657LL);
+}
+