homebrew-core/Formula/flasm.rb
Baptiste Fontaine cfe509b6dc flasm: test added
Closes Homebrew/homebrew#37779.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-17 09:41:43 +00:00

25 lines
557 B
Ruby

class Flasm < Formula
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