homebrew-core/Formula/aardvark_shell_utils.rb
Mike Naberezny 3397338935 aardvark_shell_utils: add test
Closes Homebrew/homebrew#26722.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-02-14 18:11:42 +00:00

29 lines
851 B
Ruby

require 'formula'
class AardvarkShellUtils < Formula
homepage 'http://www.laffeycomputer.com/shellutils.html'
url 'http://downloads.laffeycomputer.com/current_builds/shellutils/aardvark_shell_utils-1.0.tar.gz'
sha1 '8cee29059038ebec96c3a97978d18a5a4941da06'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make"
system "make install"
end
test do
output = `#{bin}/filebase movcpm.com`
assert_equal "movcpm\n", output
assert_equal 0, $?.exitstatus
output = `#{bin}/fileext movcpm.com`
assert_equal "com\n", output
assert_equal 0, $?.exitstatus
output = `#{bin}/realpath .`
assert_equal "#{testpath}\n", output
assert_equal 0, $?.exitstatus
end
end