diff options
| author | Baptiste Fontaine | 2015-03-17 00:17:26 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-03-17 09:41:43 +0000 |
| commit | dafd4d2df2cb433b9dab9001e3af6244acea603b (patch) | |
| tree | 82ef95e77762bc1f19be52e3edee27142e3f8823 /Library/Formula | |
| parent | 319630fbb69c76c8e4dedca3a6c790879004c262 (diff) | |
| download | homebrew-dafd4d2df2cb433b9dab9001e3af6244acea603b.tar.bz2 | |
flasm: test added
Closes #37779.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/flasm.rb | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/Library/Formula/flasm.rb b/Library/Formula/flasm.rb index 3eadce0d5..bbf46853e 100644 --- a/Library/Formula/flasm.rb +++ b/Library/Formula/flasm.rb @@ -1,13 +1,25 @@ -require 'formula' - class Flasm < Formula - homepage 'http://www.nowrap.de/flasm.html' - url 'http://www.nowrap.de/download/flasm16src.zip' - sha1 '3b383fa042eae414c5e5608bfa91a42f44bd1a86' - version '1.62' + homepage "http://www.nowrap.de/flasm.html" + url "http://www.nowrap.de/download/flasm16src.zip" + sha256 "df1273a506e2479cf95775197f5b7fa94e29fe1e0aae5aa190ed5bbebc4be5c6" + version "1.62" def install system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}" bin.install "flasm" end + + test do + (testpath/"test").write <<-EOS.undent + constants 'a', 'b' + push 'a', 'b' + getVariable + push 'b' + getVariable + multiply + setVariable + EOS + + system "#{bin}/flasm", "-b", "test" + end end |
