Hi,
I removed run_tests.sh script and moved tests exexution into Rakefile. So now you could do:
rake test
Michal
--- server/libexec/Rakefile | 19 ++++++++++++++----- server/libexec/run_tests.sh | 10 ---------- 2 files changed, 14 insertions(+), 15 deletions(-) delete mode 100755 server/libexec/run_tests.sh
diff --git a/server/libexec/Rakefile b/server/libexec/Rakefile index 0cba045..7a2aca1 100644 --- a/server/libexec/Rakefile +++ b/server/libexec/Rakefile @@ -18,12 +18,21 @@ # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
-require(File.join(File.dirname(__FILE__), 'config', 'boot')) - require 'rake' require 'rake/testtask' -require 'rake/rdoctask'
-require 'tasks/rails' +task :default => [:test]
-#require 'torquebox/tasks' +desc "Run basic unit tests" +Rake::TestTask.new("test") { |t| + t.test_files = FileList[ + 'tests/flavors_test.rb', + 'tests/realms_test.rb', + 'tests/images_test.rb', + 'tests/instances_test.rb', + 'tests/storage_volumes_test.rb', + 'tests/storage_snapshots_test.rb', + ] + t.verbose = false + t.warning = false +} diff --git a/server/libexec/run_tests.sh b/server/libexec/run_tests.sh deleted file mode 100755 index 23cf8d3..0000000 --- a/server/libexec/run_tests.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -# -## TODO: This fiel will be replaced by regular Rake task -# - -for t in tests/*_test.rb; do - if [ "$t" != "tests/common_test.rb" ]; then - /bin/env ruby $t - fi -done
On Wed, 2010-03-03 at 17:22 +0100, mfojtik@redhat.com wrote:
server/libexec/Rakefile | 19 ++++++++++++++----- server/libexec/run_tests.sh | 10 ---------- 2 files changed, 14 insertions(+), 15 deletions(-) delete mode 100755 server/libexec/run_tests.sh
ACK, though I wouldn't make :default depend on :test (it just feels weird that the tests run when you type 'rake')
David
deltacloud-devel@lists.fedorahosted.org