Permalink
Browse files

Better test runner.

  • Loading branch information...
1 parent 1a194a0 commit ddb90419d575c0a182cf9dd2f71b95af9a0c5dff @mojombo mojombo committed Jan 7, 2010
Showing with 8 additions and 2 deletions.
  1. +1 −2 Rakefile
  2. +7 −0 etest/run.es
View
3 Rakefile
@@ -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
View
7 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.