Skip to content

Commit

Permalink
Better test runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed Jan 7, 2010
1 parent 1a194a0 commit ddb9041
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Rakefile
Expand Up @@ -16,8 +16,7 @@ end

task :test => :chdir do
sh "erlc #{ERLC_FLAGS} -DTEST -I etest src/*.erl"
# sh "erl -pa ebin -run git test -run git_io test -run erlang halt"
sh "erl -pa ebin -eval \"git:test(), git_io:test(), erlang:halt().\""
sh "etest/run.es"
end

task :console => :chdir do
Expand Down
7 changes: 7 additions & 0 deletions etest/run.es
@@ -0,0 +1,7 @@
#!/usr/bin/env escript
%% -*- erlang -*-
%%! -pa ./ebin -sasl -boot start_sasl -noshell

main(_) ->
git:test(),
git_io:test().

0 comments on commit ddb9041

Please sign in to comment.