about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorluislavena <luislavena@19e92222-5c0b-0410-8929-a290d50e31e9>2008-04-18 07:09:38 +0000
committerluislavena <luislavena@19e92222-5c0b-0410-8929-a290d50e31e9>2008-04-18 07:09:38 +0000
commit12cc38aaf337b2b0e0d518ec6d311e8d82db7d30 (patch)
tree4ce6c671a768447f38afcda522e4201e8db6df87
parent043f49fbeaa9b347b9d7c500334f05a84dd11c51 (diff)
downloadunicorn-12cc38aaf337b2b0e0d518ec6d311e8d82db7d30.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/branches/stable_1-2@1010 19e92222-5c0b-0410-8929-a290d50e31e9
-rw-r--r--projects/mongrel_service/Rakefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/projects/mongrel_service/Rakefile b/projects/mongrel_service/Rakefile
index 9fb0ae9..efc9810 100644
--- a/projects/mongrel_service/Rakefile
+++ b/projects/mongrel_service/Rakefile
@@ -97,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"