about summary refs log tree commit homepage
path: root/projects/mongrel_service/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'projects/mongrel_service/Rakefile')
-rw-r--r--projects/mongrel_service/Rakefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/projects/mongrel_service/Rakefile b/projects/mongrel_service/Rakefile
index 1584ca3..efc9810 100644
--- a/projects/mongrel_service/Rakefile
+++ b/projects/mongrel_service/Rakefile
@@ -1,3 +1,6 @@
+
+require 'rubygems'
+gem 'echoe', '>=2.7.11'
 require 'echoe'
 require 'tools/freebasic'
 
@@ -10,6 +13,7 @@ echoe_spec = Echoe.new("mongrel_service") do |p|
   p.summary += " (debug build)" unless ENV['RELEASE']
   p.description = "This plugin offer native win32 services for rails, powered by Mongrel."
   p.author = "Luis Lavena"
+  p.email = "luislavena@gmail.com"
   p.platform = Gem::Platform::CURRENT
   p.dependencies = [['gem_plugin', '>=0.2.3', '<0.3.0'],
                     ['mongrel', '>=1.0.2', '<1.2.0'],
@@ -93,3 +97,42 @@ end
 #include_projects_of :native
 task :native_service => "native:build"
 task :clean => "native:clobber"
+
+project_task :mock_process do
+  executable  :mock_process
+  build_to    'tests'
+  
+  main        'tests/fixtures/mock_process.bas'
+  
+  option      OPTIONS
+end
+
+task "all_tests:build" => "lib:build"
+project_task :all_tests do
+  executable  :all_tests
+  build_to    'tests'
+  
+  search_path 'src', 'lib', 'native'
+  lib_path    'lib'
+  
+  main        'tests/all_tests.bas'
+  
+  # this temporally fix the inverse namespace ctors of FB
+  source      Dir.glob("tests/test_*.bas").reverse
+  
+  library     'testly'
+  
+  source      'native/console_process.bas'
+  
+  option      OPTIONS
+end
+
+desc "Run all the internal tests for the library"
+task "all_tests:run" => ["mock_process:build", "all_tests:build"] do
+  Dir.chdir('tests') do
+    sh %{all_tests}
+  end
+end
+
+desc "Run all the test for this project"
+task :test => "all_tests:run"