diff options
| author | Viktor Szakáts | 2015-03-24 19:54:42 +0100 |
|---|---|---|
| committer | Brett Koonce | 2015-03-28 23:43:26 -0700 |
| commit | 85287aa97b33f2a3e24527fb97fae4ba545cfed9 (patch) | |
| tree | ad49e1ecfc63965426a0f0d50f9e2de549b4003e | |
| parent | 152d5469e5db94fd6eec71e9e0ab95e35d552f84 (diff) | |
| download | homebrew-85287aa97b33f2a3e24527fb97fae4ba545cfed9.tar.bz2 | |
harbour: modernize, extend test, format test
Closes #38032.
Signed-off-by: Brett Koonce <koonce@gmail.com>
| -rw-r--r-- | Library/Formula/harbour.rb | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Library/Formula/harbour.rb b/Library/Formula/harbour.rb index 120369821..3898b905a 100644 --- a/Library/Formula/harbour.rb +++ b/Library/Formula/harbour.rb @@ -1,9 +1,7 @@ -require "formula" - class Harbour < Formula homepage "https://harbour.github.io" url "https://downloads.sourceforge.net/harbour-project/source/3.0.0/harbour-3.0.0.tar.bz2" - sha1 "66c21d666ac24c45485179eeaa9f90458b552e92" + sha256 "4e99c0c96c681b40c7e586be18523e33db24baea68eb4e394989a3b7a6b5eaad" bottle do cellar :any @@ -37,8 +35,16 @@ class Harbour < Formula end test do - (testpath/"hello_world.prg").write("procedure Main();?'Hello, world!';?;?OS();?Version();return") - system "#{bin}/hbmk2", "-run", "hello_world.prg" + (testpath/"hello.prg").write <<-EOS.undent + procedure Main() + OutStd( ; + "Hello, world!" + hb_eol() + ; + OS() + hb_eol() + ; + Version() + hb_eol() ) + return + EOS + + assert_match /Hello, world!/, shell_output("#{bin}/hbmk2 hello.prg -run") end end |
