Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (42 sloc) 0.859 kb
module Runner
def start([])
process ["test"]
end
def start(other)
process other
end
def process ["compile"|t]
compile!
process t
end
def process ["setup"|t]
execute "git submodule update --init"
execute "cd deps/mochiweb && make"
execute "cd deps/ibrowse && make"
execute "cd deps/misultin && make"
process t
end
def process ["test"|t]
compile!
execute "time exunit -pa exbin test/*_test.exs test/*/*_test.exs"
process t
end
def process [other|t]
IO.new('standard_error).puts "Unknown command: #{other}"
self.exit(1)
process t
end
def process []
% Done
end
private
def compile!
execute "elixirc -s elixirc.spec -o exbin"
end
def execute command
IO.puts command
result = OS.cmd command
IO.puts result
end
end
Runner.start(Code.argv)
Jump to Line
Something went wrong with that request. Please try again.