From dafd4d2df2cb433b9dab9001e3af6244acea603b Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Tue, 17 Mar 2015 00:17:26 +0100 Subject: flasm: test added Closes #37779. Signed-off-by: Mike McQuaid --- Library/Formula/flasm.rb | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3