Skip to content

Commit

Permalink
Merge pull request #21247 from JuliaLang/ksh/gitdel
Browse files Browse the repository at this point in the history
Tests for cleanup and branch deletion
  • Loading branch information
kshyatt authored Apr 2, 2017
2 parents 1f4f4fb + 553c920 commit ceb0674
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/libgit2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ mktempdir() do dir
commit_oid3 = LibGit2.GitHash()
master_branch = "master"
test_branch = "test_branch"
test_branch2 = "test_branch_two"
tag1 = "tag1"
tag2 = "tag2"

Expand Down Expand Up @@ -257,6 +258,14 @@ mktempdir() do dir
@test typeof(e) == LibGit2.GitError
@test startswith(sprint(show,e),"GitError(Code:ENOTFOUND, Class:OS, Failed to resolve path")
end
path = joinpath(dir, "Example.BareTwo")
repo = LibGit2.init(path, true)
try
#just to see if this works
LibGit2.cleanup(repo)
finally
close(repo)
end
end
end

Expand Down Expand Up @@ -421,6 +430,16 @@ mktempdir() do dir
finally
close(tbref)
end
@test isnull(LibGit2.lookup_branch(repo, test_branch2, true))
LibGit2.branch!(repo, test_branch2; set_head=false)
tbref = Base.get(LibGit2.lookup_branch(repo, test_branch2, false))
try
@test LibGit2.shortname(tbref) == test_branch2
LibGit2.delete_branch(tbref)
@test isnull(LibGit2.lookup_branch(repo, test_branch2, true))
finally
close(tbref)
end
finally
close(brref)
end
Expand Down

4 comments on commit ceb0674

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily benchmark build, I will reply here when finished:

@nanosoldier runbenchmarks(ALL, isdaily = true)

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @jrevels

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily benchmark build, I will reply here when finished:

@nanosoldier runbenchmarks(ALL, isdaily = true)

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @jrevels

Please sign in to comment.