aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMike McQuaid2016-09-13 09:20:06 +0100
committerGitHub2016-09-13 09:20:06 +0100
commite10234f61a990d9bf5dab26e64f3a27310dea67b (patch)
treea708089d745119c1e664acb7d1e02c1e6fd530ff /Library/Homebrew/test
parent5a264cf59733fa8e0f69f8e6567e069a8cfd8bde (diff)
parent0316830d4fbd9467a0c0f82867ffcc91b9385cb2 (diff)
downloadbrew-e10234f61a990d9bf5dab26e64f3a27310dea67b.tar.bz2
Merge pull request #949 from MikeMcQuaid/testbottest
test-bot: default to building testbottest.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/tarballs/testbottest-0.1.tbzbin0 -> 548 bytes
-rw-r--r--Library/Homebrew/test/testbottest.rb14
2 files changed, 14 insertions, 0 deletions
diff --git a/Library/Homebrew/test/tarballs/testbottest-0.1.tbz b/Library/Homebrew/test/tarballs/testbottest-0.1.tbz
new file mode 100644
index 000000000..83f7ab1dd
--- /dev/null
+++ b/Library/Homebrew/test/tarballs/testbottest-0.1.tbz
Binary files differ
diff --git a/Library/Homebrew/test/testbottest.rb b/Library/Homebrew/test/testbottest.rb
new file mode 100644
index 000000000..f7695cab5
--- /dev/null
+++ b/Library/Homebrew/test/testbottest.rb
@@ -0,0 +1,14 @@
+class Testbottest < Formula
+ desc "Minimal C program and Makefile used for testing Homebrew."
+ homepage "https://github.com/Homebrew/brew"
+ url "file://#{File.expand_path("..", __FILE__)}/tarballs/testbottest-0.1.tbz"
+ sha256 "78b54d8f31585c9773bed12b4aa4ab2ce458ebd044b9406cb24d40aa5107f082"
+
+ def install
+ system "make", "install", "PREFIX=#{prefix}"
+ end
+
+ test do
+ assert_equal "testbottest\n", shell_output("#{bin}/testbottest")
+ end
+end