git-test 1.0.2

- patch fixes two tests in the test-do
- move test.sh to pkgshare

Closes #2654.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2016-07-17 22:49:27 -07:00
parent 9a5f19c7d1
commit a057ca7892

View file

@ -1,25 +1,32 @@
class GitTest < Formula
desc "Run tests on each distinct tree in a revision list"
homepage "https://github.com/spotify/git-test"
url "https://github.com/spotify/git-test/archive/v1.0.1.tar.gz"
sha256 "1273d97644edf3690cc0310a1f6f33856f83bf736599c54150db7a7ad9e43983"
url "https://github.com/spotify/git-test/archive/v1.0.2.tar.gz"
sha256 "d07ead646d12218b857fe756cc04e15a9bd200726ff5d3692ef17b80cdc6ccc6"
bottle :unneeded
# Fixes two tests in the test.sh in the test block
# Reported 17 Jul 2016: https://github.com/spotify/git-test/issues/10
patch do
url "https://github.com/spotify/git-test/pull/11.patch"
sha256 "b69e23e66b61d9333876fdb6756949d19b24ac03ed5052a576b84b74a88616b6"
end
def install
share.install "test.sh"
pkgshare.install "test.sh"
bin.install "git-test"
man1.install "git-test.1"
end
test do
system "git", "init"
ln_s "#{bin}/git-test", testpath
cp "#{share}/test.sh", testpath
ln_s bin/"git-test", testpath
cp pkgshare/"test.sh", testpath
chmod 0755, "test.sh"
system "git", "add", "test.sh"
system "git", "commit", "-m", "initial commit"
ENV["TERM"] = "xterm"
system "#{bin}/git-test", "-v", "HEAD", "--verify='./test.sh'"
system bin/"git-test", "-v", "HEAD", "--verify='./test.sh'"
end
end