]> git.proxmox.com Git - libgit2.git/commitdiff
Refresh patches
authorTimo Röhling <roehling@debian.org>
Mon, 19 Jun 2023 11:52:11 +0000 (13:52 +0200)
committerTimo Röhling <roehling@debian.org>
Mon, 19 Jun 2023 18:45:29 +0000 (20:45 +0200)
- Drop fix-unit-tests.patch (no longer needed)

Gbp-Dch: full

debian/patches/disable-flaky-stat-tests.patch
debian/patches/disable-online-tests.patch
debian/patches/fix-unit-tests.patch [deleted file]
debian/patches/handle-bashism.patch
debian/patches/series

index 0923b5c1ede9903eae1dc2d31799b02dc913fa7d..02ef2860b25ddedb92e42fa091f6d051a8754578 100644 (file)
@@ -2,6 +2,7 @@ From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
 Date: Wed, 31 Aug 2022 15:24:06 +0200
 Subject: Ignore test failures because of stat()
 
+Forwarded: not-needed
 ---
  tests/libgit2/repo/init.c     | 14 ++++++++------
  tests/libgit2/repo/template.c | 19 +++++++++++--------
@@ -10,10 +11,10 @@ Subject: Ignore test failures because of stat()
  4 files changed, 29 insertions(+), 18 deletions(-)
 
 diff --git a/tests/libgit2/repo/init.c b/tests/libgit2/repo/init.c
-index 7cf6742..aec1ec6 100644
+index d78ec06..17a0ae2 100644
 --- a/tests/libgit2/repo/init.c
 +++ b/tests/libgit2/repo/init.c
-@@ -424,12 +424,14 @@ void test_repo_init__extended_1(void)
+@@ -443,12 +443,14 @@ void test_repo_init__extended_1(void)
        cl_assert(!git_repository_is_empty(g_repo));
  
        cl_git_pass(git_fs_path_lstat(git_repository_path(g_repo), &st));
index 155c84379da3d3749c40319559ba9e01d9273c3a..1afd8d20fe02da5195f0b2555c57242e333446e7 100644 (file)
@@ -3,23 +3,25 @@ Date: Sun, 28 Aug 2022 17:12:49 +0200
 Subject: disable-online-tests
 
 Skip tests that needs an active internet connection
+
+Forwarded: not-needed
 ---
  tests/libgit2/CMakeLists.txt | 2 ++
  1 file changed, 2 insertions(+)
 
 diff --git a/tests/libgit2/CMakeLists.txt b/tests/libgit2/CMakeLists.txt
-index 280b9a8..e10456b 100644
+index 866122d..3e6b4e7 100644
 --- a/tests/libgit2/CMakeLists.txt
 +++ b/tests/libgit2/CMakeLists.txt
 @@ -66,6 +66,7 @@ endif()
  include(AddClarTest)
  add_clar_test(libgit2_tests offline             -v -xonline)
- add_clar_test(libgit2_tests invasive            -v -score::ftruncate -sfilter::stream::bigfile -sodb::largefiles -siterator::workdir::filesystem_gunk -srepo::init -srepo::init::at_filesystem_root)
+ add_clar_test(libgit2_tests invasive            -v -sfilter::stream::bigfile -sodb::largefiles -siterator::workdir::filesystem_gunk -srepo::init -srepo::init::at_filesystem_root)
 +if(NOT DISABLE_ONLINE_TESTS)
- add_clar_test(libgit2_tests online              -v -sonline -xonline::customcert -xonline::clone::ssh_auth_methods)
+ add_clar_test(libgit2_tests online              -v -sonline -xonline::customcert)
  add_clar_test(libgit2_tests online_customcert   -v -sonline::customcert)
  add_clar_test(libgit2_tests gitdaemon           -v -sonline::push)
-@@ -73,3 +74,4 @@ add_clar_test(libgit2_tests ssh                 -v -sonline::push -sonline::clon
+@@ -75,3 +76,4 @@ add_clar_test(libgit2_tests ssh                 -v -sonline::push -sonline::clon
  add_clar_test(libgit2_tests proxy               -v -sonline::clone::proxy)
  add_clar_test(libgit2_tests auth_clone          -v -sonline::clone::cred)
  add_clar_test(libgit2_tests auth_clone_and_push -v -sonline::clone::push -sonline::push)
diff --git a/debian/patches/fix-unit-tests.patch b/debian/patches/fix-unit-tests.patch
deleted file mode 100644 (file)
index faead68..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
-Date: Sun, 28 Aug 2022 17:20:01 +0200
-Subject: Fix unit tests
-
----
- tests/libgit2/CMakeLists.txt      |  2 +-
- tests/libgit2/network/url/parse.c | 67 ++++-----------------------------------
- 2 files changed, 7 insertions(+), 62 deletions(-)
-
-diff --git a/tests/libgit2/CMakeLists.txt b/tests/libgit2/CMakeLists.txt
-index e10456b..d85d5dd 100644
---- a/tests/libgit2/CMakeLists.txt
-+++ b/tests/libgit2/CMakeLists.txt
-@@ -65,7 +65,7 @@ endif()
- include(AddClarTest)
- add_clar_test(libgit2_tests offline             -v -xonline)
--add_clar_test(libgit2_tests invasive            -v -score::ftruncate -sfilter::stream::bigfile -sodb::largefiles -siterator::workdir::filesystem_gunk -srepo::init -srepo::init::at_filesystem_root)
-+add_clar_test(libgit2_tests invasive            -v -sfilter::stream::bigfile -sodb::largefiles -siterator::workdir::filesystem_gunk -srepo::init -srepo::init::at_filesystem_root)
- if(NOT DISABLE_ONLINE_TESTS)
- add_clar_test(libgit2_tests online              -v -sonline -xonline::customcert -xonline::clone::ssh_auth_methods)
- add_clar_test(libgit2_tests online_customcert   -v -sonline::customcert)
-diff --git a/tests/libgit2/network/url/parse.c b/tests/libgit2/network/url/parse.c
-index 8149ba5..729302e 100644
---- a/tests/libgit2/network/url/parse.c
-+++ b/tests/libgit2/network/url/parse.c
-@@ -65,14 +65,7 @@ void test_network_url_parse__hostname_implied_root_custom_port(void)
- void test_network_url_parse__hostname_implied_root_empty_port(void)
- {
--      cl_git_pass(git_net_url_parse(&conndata, "http://example.com:"));
--      cl_assert_equal_s(conndata.scheme, "http");
--      cl_assert_equal_s(conndata.host, "example.com");
--      cl_assert_equal_s(conndata.port, "80");
--      cl_assert_equal_s(conndata.path, "/");
--      cl_assert_equal_p(conndata.username, NULL);
--      cl_assert_equal_p(conndata.password, NULL);
--      cl_assert_equal_i(git_net_url_is_default_port(&conndata), 1);
-+      cl_git_fail_with(GIT_EINVALIDSPEC, git_net_url_parse(&conndata, "http://example.com:"));
- }
- void test_network_url_parse__hostname_encoded_password(void)
-@@ -131,14 +124,7 @@ void test_network_url_parse__hostname_port(void)
- void test_network_url_parse__hostname_empty_port(void)
- {
--      cl_git_pass(git_net_url_parse(&conndata, "http://example.com:/resource"));
--      cl_assert_equal_s(conndata.scheme, "http");
--      cl_assert_equal_s(conndata.host, "example.com");
--      cl_assert_equal_s(conndata.port, "80");
--      cl_assert_equal_s(conndata.path, "/resource");
--      cl_assert_equal_p(conndata.username, NULL);
--      cl_assert_equal_p(conndata.password, NULL);
--      cl_assert_equal_i(git_net_url_is_default_port(&conndata), 1);
-+      cl_git_fail_with(GIT_EINVALIDSPEC, git_net_url_parse(&conndata, "http://example.com:/resource"));
- }
- void test_network_url_parse__hostname_user_port(void)
-@@ -221,14 +207,7 @@ void test_network_url_parse__ipv4_implied_root_custom_port(void)
- void test_network_url_parse__ipv4_implied_root_empty_port(void)
- {
--      cl_git_pass(git_net_url_parse(&conndata, "http://192.168.1.1:"));
--      cl_assert_equal_s(conndata.scheme, "http");
--      cl_assert_equal_s(conndata.host, "192.168.1.1");
--      cl_assert_equal_s(conndata.port, "80");
--      cl_assert_equal_s(conndata.path, "/");
--      cl_assert_equal_p(conndata.username, NULL);
--      cl_assert_equal_p(conndata.password, NULL);
--      cl_assert_equal_i(git_net_url_is_default_port(&conndata), 1);
-+      cl_git_fail_with(GIT_EINVALIDSPEC, git_net_url_parse(&conndata, "http://192.168.1.1:"));
- }
- void test_network_url_parse__ipv4_encoded_password(void)
-@@ -285,14 +264,7 @@ void test_network_url_parse__ipv4_port(void)
- void test_network_url_parse__ipv4_empty_port(void)
- {
--      cl_git_pass(git_net_url_parse(&conndata, "http://192.168.1.1:/resource"));
--      cl_assert_equal_s(conndata.scheme, "http");
--      cl_assert_equal_s(conndata.host, "192.168.1.1");
--      cl_assert_equal_s(conndata.port, "80");
--      cl_assert_equal_s(conndata.path, "/resource");
--      cl_assert_equal_p(conndata.username, NULL);
--      cl_assert_equal_p(conndata.password, NULL);
--      cl_assert_equal_i(git_net_url_is_default_port(&conndata), 1);
-+      cl_git_fail_with(GIT_EINVALIDSPEC, git_net_url_parse(&conndata, "http://192.168.1.1:/resource"));
- }
- void test_network_url_parse__ipv4_user_port(void)
-@@ -373,27 +345,7 @@ void test_network_url_parse__ipv6_implied_root_custom_port(void)
- void test_network_url_parse__ipv6_implied_root_empty_port(void)
- {
--      cl_git_pass(git_net_url_parse(&conndata, "http://[fe80::dcad:beff:fe00:0001]:"));
--      cl_assert_equal_s(conndata.scheme, "http");
--      cl_assert_equal_s(conndata.host, "fe80::dcad:beff:fe00:0001");
--      cl_assert_equal_s(conndata.port, "80");
--      cl_assert_equal_s(conndata.path, "/");
--      cl_assert_equal_p(conndata.username, NULL);
--      cl_assert_equal_p(conndata.password, NULL);
--      cl_assert_equal_i(git_net_url_is_default_port(&conndata), 1);
--}
--
--void test_network_url_parse__ipv6_encoded_password(void)
--{
--      cl_git_pass(git_net_url_parse(&conndata,
--              "https://user:pass%2fis%40bad@[fe80::dcad:beff:fe00:0001]:1234/"));
--      cl_assert_equal_s(conndata.scheme, "https");
--      cl_assert_equal_s(conndata.host, "fe80::dcad:beff:fe00:0001");
--      cl_assert_equal_s(conndata.port, "1234");
--      cl_assert_equal_s(conndata.path, "/");
--      cl_assert_equal_s(conndata.username, "user");
--      cl_assert_equal_s(conndata.password, "pass/is@bad");
--      cl_assert_equal_i(git_net_url_is_default_port(&conndata), 0);
-+      cl_git_fail_with(GIT_EINVALIDSPEC, git_net_url_parse(&conndata, "http://[fe80::dcad:beff:fe00:0001]:"));
- }
- void test_network_url_parse__ipv6_user(void)
-@@ -437,14 +389,7 @@ void test_network_url_parse__ipv6_port(void)
- void test_network_url_parse__ipv6_empty_port(void)
- {
--      cl_git_pass(git_net_url_parse(&conndata, "http://[fe80::dcad:beff:fe00:0001]:/resource"));
--      cl_assert_equal_s(conndata.scheme, "http");
--      cl_assert_equal_s(conndata.host, "fe80::dcad:beff:fe00:0001");
--      cl_assert_equal_s(conndata.port, "80");
--      cl_assert_equal_s(conndata.path, "/resource");
--      cl_assert_equal_p(conndata.username, NULL);
--      cl_assert_equal_p(conndata.password, NULL);
--      cl_assert_equal_i(git_net_url_is_default_port(&conndata), 1);
-+      cl_git_fail_with(GIT_EINVALIDSPEC, git_net_url_parse(&conndata, "http://[fe80::dcad:beff:fe00:0001]:/resource"));
- }
- void test_network_url_parse__ipv6_user_port(void)
index 8b7ced027f385e94209c1ca40da20a1df78f3f96..907ccf7fcfcb666d702af5be4e89c7cf7928ec83 100644 (file)
@@ -2,6 +2,7 @@ From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
 Date: Sun, 28 Aug 2022 17:42:55 +0200
 Subject: Use bash for shell script with bashisms
 
+Forwarded: https://github.com/libgit2/libgit2/pull/6581
 ---
  tests/resources/push.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
index 06fdaee68f1be4bc5892a32b9c377c900786ba77..ddeb33de86c8a823a38218f01e5e2cd626faa57a 100644 (file)
@@ -1,4 +1,3 @@
 disable-online-tests.patch
-fix-unit-tests.patch
 handle-bashism.patch
 disable-flaky-stat-tests.patch