From ee545fa19a46035ac5123cb6d3a09bacc0d6764d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 12 Sep 2016 21:36:12 +0100 Subject: Library/Homebrew/test: add testbottest formula/tarball. Minimal C program and Makefile used for testing Homebrew. --- Library/Homebrew/test/tarballs/testbottest-0.1.tbz | Bin 0 -> 548 bytes Library/Homebrew/test/testbottest.rb | 14 ++++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 Library/Homebrew/test/tarballs/testbottest-0.1.tbz create mode 100644 Library/Homebrew/test/testbottest.rb (limited to 'Library') 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 Binary files /dev/null and b/Library/Homebrew/test/tarballs/testbottest-0.1.tbz 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 -- cgit v1.2.3