aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike Naberezny2014-02-12 13:10:27 -0800
committerAdam Vandenberg2014-02-12 19:34:01 -0800
commitca0b4649e470e4edbcd646ea1c74d6dfc18ac24d (patch)
treee484ba726d60d7eda373fb3e1682807c350f0d16 /Library/Formula
parente75e8792895e2915a984db3dd218e09550253c12 (diff)
downloadhomebrew-ca0b4649e470e4edbcd646ea1c74d6dfc18ac24d.tar.bz2
avra: add test
Closes #26670. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/avra.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/avra.rb b/Library/Formula/avra.rb
index 272cbc325..ce1aae0bb 100644
--- a/Library/Formula/avra.rb
+++ b/Library/Formula/avra.rb
@@ -18,4 +18,13 @@ class Avra < Formula
system "make install"
end
end
+
+ test do
+ (testpath/"test.asm").write " .device attiny10\n ldi r16,0x42\n"
+ output = `#{bin}/avra -l test.lst test.asm`
+ assert output.include?("Assembly complete with no errors.")
+ assert_equal 0, $?.exitstatus
+ assert File.exist?("test.hex")
+ assert File.read("test.lst").include?("ldi r16,0x42")
+ end
end