X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Ft0060-path-utils.sh;h=7ea2bb515bd80cc026a18dbfdf4a66cb77d27f20;hb=b5cc90f548375fa8d5ae78a2879eabae78f19ae4;hp=40db3e1e1adad57721087ee69af35224aa6eaad4;hpb=f7231934dc7ec05ec0d13f8d957585c6045b79d6;p=platform%2Fupstream%2Fgit.git diff --git a/t/t0060-path-utils.sh b/t/t0060-path-utils.sh index 40db3e1..7ea2bb5 100755 --- a/t/t0060-path-utils.sh +++ b/t/t0060-path-utils.sh @@ -165,15 +165,6 @@ test_expect_success 'absolute path rejects the empty string' ' test_must_fail test-path-utils absolute_path "" ' -test_expect_success MINGW ':\\abc is an absolute path' ' - for letter in : \" C Z 1 ä - do - path=$letter:\\abc && - absolute="$(test-path-utils absolute_path "$path")" && - test "$path" = "$absolute" || return 1 - done -' - test_expect_success 'real path rejects the empty string' ' test_must_fail test-path-utils real_path "" ' @@ -358,111 +349,4 @@ test_submodule_relative_url "(null)" "ssh://hostname:22/repo" "../subrepo" "ssh: test_submodule_relative_url "(null)" "user@host:path/to/repo" "../subrepo" "user@host:path/to/subrepo" test_submodule_relative_url "(null)" "user@host:repo" "../subrepo" "user@host:subrepo" -test_expect_success 'match .gitmodules' ' - test-path-utils is_dotgitmodules \ - .gitmodules \ - \ - .git${u200c}modules \ - \ - .Gitmodules \ - .gitmoduleS \ - \ - ".gitmodules " \ - ".gitmodules." \ - ".gitmodules " \ - ".gitmodules. " \ - ".gitmodules ." \ - ".gitmodules.." \ - ".gitmodules " \ - ".gitmodules. " \ - ".gitmodules . " \ - ".gitmodules ." \ - \ - ".Gitmodules " \ - ".Gitmodules." \ - ".Gitmodules " \ - ".Gitmodules. " \ - ".Gitmodules ." \ - ".Gitmodules.." \ - ".Gitmodules " \ - ".Gitmodules. " \ - ".Gitmodules . " \ - ".Gitmodules ." \ - \ - GITMOD~1 \ - gitmod~1 \ - GITMOD~2 \ - gitmod~3 \ - GITMOD~4 \ - \ - "GITMOD~1 " \ - "gitmod~2." \ - "GITMOD~3 " \ - "gitmod~4. " \ - "GITMOD~1 ." \ - "gitmod~2 " \ - "GITMOD~3. " \ - "gitmod~4 . " \ - \ - GI7EBA~1 \ - gi7eba~9 \ - \ - GI7EB~10 \ - GI7EB~11 \ - GI7EB~99 \ - GI7EB~10 \ - GI7E~100 \ - GI7E~101 \ - GI7E~999 \ - ~1000000 \ - ~9999999 \ - \ - .gitmodules:\$DATA \ - "gitmod~4 . :\$DATA" \ - \ - --not \ - ".gitmodules x" \ - ".gitmodules .x" \ - \ - " .gitmodules" \ - \ - ..gitmodules \ - \ - gitmodules \ - \ - .gitmodule \ - \ - ".gitmodules x " \ - ".gitmodules .x" \ - \ - GI7EBA~ \ - GI7EBA~0 \ - GI7EBA~~1 \ - GI7EBA~X \ - Gx7EBA~1 \ - GI7EBX~1 \ - \ - GI7EB~1 \ - GI7EB~01 \ - GI7EB~1X \ - \ - .gitmodules,:\$DATA -' - -test_expect_success MINGW 'is_valid_path() on Windows' ' - test-path-utils is_valid_path \ - win32 \ - "win32 x" \ - ../hello.txt \ - C:\\git \ - \ - --not \ - "win32 " \ - "win32 /x " \ - "win32." \ - "win32 . ." \ - .../hello.txt \ - colon:test -' - test_done