Permalink
Browse files

eunit as a submodule

  • Loading branch information...
1 parent df00cba commit b789942cfd67fa4552aeedc7233b513f718b51e9 @abhay abhay committed Jun 21, 2008
View
@@ -0,0 +1,3 @@
+[submodule "deps/eunit"]
+ path = deps/eunit
+ url = git@github.com:abhay/eunit.git
View
@@ -2,7 +2,7 @@
require 'rubygems'
require 'rake'
-ERLC_TEST_FLAGS = "-pa ../ebin/eunit -I .. -I ../etest -I ../include/eunit -DTEST"
+ERLC_TEST_FLAGS = "-pa ../deps/eunit/ebin -I ../deps/eunit/include -I .. -I ../etest -DTEST"
ERLC_FLAGS = "+debug_info -W2 -I ../include -I ../include/yaws -o ../ebin"
FUZED_VERSION = "0.4.13"
@@ -17,7 +17,7 @@ task :build_dist do
end
task :econsole do
- sh "erl +Bc +K true -smp enable -pz ./etest -pz ./ebin/yaws -pz ./ebin/ -pz ./ebin/eunit -sname local_console_#{$$} -kernel start_boot_server true"
+ sh "erl +Bc +K true -smp enable -pz ./etest -pz ./ebin/yaws -pz ./ebin/ -pz ./deps/eunit/ebin -sname local_console_#{$$} -kernel start_boot_server true"
end
task :console do
@@ -26,7 +26,7 @@ end
task :distel do
puts "Starting distel editing session emacs@localhost"
- sh "erl +Bc +K true -smp enable -pz ./etest -pz ./ebin/yaws -pz ./ebin/ -pz ./ebin/eunit -name emacs@chisai.local -detached"
+ sh "erl +Bc +K true -smp enable -pz ./etest -pz ./ebin/yaws -pz ./ebin/ -pz ./deps/eunit/ebin -name emacs@chisai.local -detached"
end
task :test => [:default] do
@@ -40,7 +40,7 @@ task :test => [:default] do
end
mod_directives = mods.map {|m| "-run #{m} test"}.join(" ")
# -run #{ENV['MOD']} test
- sh %Q{erl +K true -smp enable -pz ./etest -pz ./ebin/yaws -pz ./ebin/ -pa ./ebin/eunit -sname local_console_#{$$} -noshell #{mod_directives} -run erlang halt}
+ sh %Q{erl +K true -smp enable -pz ./etest -pz ./ebin/yaws -pz ./ebin/ -pa ./deps/eunit/ebin -sname local_console_#{$$} -noshell #{mod_directives} -run erlang halt}
end
task :docs do
@@ -49,3 +49,7 @@ task :docs do
files = Dir["elibs/*.erl"].map { |x| "'../" + x + "'"}.join " "
sh %|cd doc && erl -noshell -s init stop -run edoc files #{files}|
end
+
+task :build_eunit do
+ sh %[cd deps/eunit && make clean && make all]
+end
View
@@ -13,7 +13,7 @@ $:.unshift(CMD_LINE_PATH)
DEFAULT_NODE_NAME = `hostname -s`.chomp + "-#{rand(9999)}"
DEFAULT_MASTER_NODE = "master@fuzed-dev.powerset.com"
-DEFAULT_ERLANG_CODEPATHS = %w[ebin/yaws ebin/mochiweb ebin/eunit etest ebin]
+DEFAULT_ERLANG_CODEPATHS = %w[ebin/yaws ebin/mochiweb deps/eunit/ebin etest ebin]
DEFAULT_BOOT_DIR = "/p/conf/fuzed/"
DEFAULT_HTTP_SERVER = "yaws"
Submodule eunit added at fa9b54
View
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
Binary file not shown.

0 comments on commit b789942

Please sign in to comment.