Merge pull request #1643 from pminten/elixirc-silent

Add --verbose to elixirc
This commit is contained in:
José Valim
2013-08-24 11:15:21 -07:00
4 changed files with 18 additions and 3 deletions
+9 -1
View File
@@ -71,7 +71,15 @@ defmodule Kernel.CLI.CompileTest do
test :compile_code do
fixture = fixture_path "compile_sample.ex"
assert elixirc('#{fixture} -o #{tmp_path}') ==
assert elixirc('#{fixture} -o #{tmp_path}') == ''
assert File.regular?(tmp_path "Elixir.CompileSample.beam")
after
File.rm(tmp_path("Elixir.CompileSample.beam"))
end
test :compile_code_verbose do
fixture = fixture_path "compile_sample.ex"
assert elixirc('#{fixture} -o #{tmp_path} --verbose') ==
'Compiled #{fixture}\n'
assert File.regular?(tmp_path "Elixir.CompileSample.beam")
after