diff options
| author | Mike Naberezny | 2014-02-12 13:10:27 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-12 19:34:01 -0800 |
| commit | ca0b4649e470e4edbcd646ea1c74d6dfc18ac24d (patch) | |
| tree | e484ba726d60d7eda373fb3e1682807c350f0d16 /Library | |
| parent | e75e8792895e2915a984db3dd218e09550253c12 (diff) | |
| download | homebrew-ca0b4649e470e4edbcd646ea1c74d6dfc18ac24d.tar.bz2 | |
avra: add test
Closes #26670.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/avra.rb | 9 |
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 |
