From fc49e8c982902966c64e6515ab71cfeddc073374 Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Tue, 18 Aug 2009 10:07:01 -0400 Subject: [PATCH] move tests -> test --- README.rdoc | 2 +- Rakefile | 2 +- bin/run_test_script | 4 +- mongo-ruby-driver.gemspec | 60 +++++++++++++-------------- {tests => test}/mongo-qa/_common.rb | 0 {tests => test}/mongo-qa/admin | 0 {tests => test}/mongo-qa/capped | 0 {tests => test}/mongo-qa/count1 | 0 {tests => test}/mongo-qa/dbs | 0 {tests => test}/mongo-qa/find | 0 {tests => test}/mongo-qa/find1 | 0 {tests => test}/mongo-qa/gridfs_in | 0 {tests => test}/mongo-qa/gridfs_out | 0 {tests => test}/mongo-qa/indices | 0 {tests => test}/mongo-qa/remove | 0 {tests => test}/mongo-qa/stress1 | 0 {tests => test}/mongo-qa/test1 | 0 {tests => test}/mongo-qa/update | 0 {tests => test}/test_admin.rb | 0 {tests => test}/test_bson.rb | 0 {tests => test}/test_byte_buffer.rb | 0 {tests => test}/test_chunk.rb | 0 {tests => test}/test_collection.rb | 0 {tests => test}/test_cursor.rb | 0 {tests => test}/test_db.rb | 0 {tests => test}/test_db_api.rb | 0 {tests => test}/test_db_connection.rb | 0 {tests => test}/test_grid_store.rb | 0 {tests => test}/test_message.rb | 0 {tests => test}/test_mongo.rb | 0 {tests => test}/test_objectid.rb | 0 {tests => test}/test_ordered_hash.rb | 0 {tests => test}/test_round_trip.rb | 0 {tests => test}/test_threading.rb | 0 34 files changed, 34 insertions(+), 34 deletions(-) rename {tests => test}/mongo-qa/_common.rb (100%) rename {tests => test}/mongo-qa/admin (100%) rename {tests => test}/mongo-qa/capped (100%) rename {tests => test}/mongo-qa/count1 (100%) rename {tests => test}/mongo-qa/dbs (100%) rename {tests => test}/mongo-qa/find (100%) rename {tests => test}/mongo-qa/find1 (100%) rename {tests => test}/mongo-qa/gridfs_in (100%) rename {tests => test}/mongo-qa/gridfs_out (100%) rename {tests => test}/mongo-qa/indices (100%) rename {tests => test}/mongo-qa/remove (100%) rename {tests => test}/mongo-qa/stress1 (100%) rename {tests => test}/mongo-qa/test1 (100%) rename {tests => test}/mongo-qa/update (100%) rename {tests => test}/test_admin.rb (100%) rename {tests => test}/test_bson.rb (100%) rename {tests => test}/test_byte_buffer.rb (100%) rename {tests => test}/test_chunk.rb (100%) rename {tests => test}/test_collection.rb (100%) rename {tests => test}/test_cursor.rb (100%) rename {tests => test}/test_db.rb (100%) rename {tests => test}/test_db_api.rb (100%) rename {tests => test}/test_db_connection.rb (100%) rename {tests => test}/test_grid_store.rb (100%) rename {tests => test}/test_message.rb (100%) rename {tests => test}/test_mongo.rb (100%) rename {tests => test}/test_objectid.rb (100%) rename {tests => test}/test_ordered_hash.rb (100%) rename {tests => test}/test_round_trip.rb (100%) rename {tests => test}/test_threading.rb (100%) diff --git a/README.rdoc b/README.rdoc index 8519fc4..23ca925 100644 --- a/README.rdoc +++ b/README.rdoc @@ -70,7 +70,7 @@ Here's how to start mongo and run the "simple.rb" example: $ cd path/to/mongo-ruby-driver $ ruby examples/simple.rb -See also the test code, especially tests/test_db_api.rb. +See also the test code, especially test/test_db_api.rb. = The Driver diff --git a/Rakefile b/Rakefile index 0fdfa41..f4851be 100644 --- a/Rakefile +++ b/Rakefile @@ -16,7 +16,7 @@ gem_command = "gem1.9" if $0.match(/1\.9$/) # use gem1.9 if we used rake1.9 # NOTE: some of the tests assume Mongo is running Rake::TestTask.new do |t| - t.test_files = FileList['tests/test*.rb'] + t.test_files = FileList['test/test*.rb'] end desc "Generate documentation" diff --git a/bin/run_test_script b/bin/run_test_script index 36afedc..b99c5bc 100755 --- a/bin/run_test_script +++ b/bin/run_test_script @@ -5,12 +5,12 @@ HERE=`dirname $0` -if [ ! -f $HERE/../tests/mongo-qa/$1 ] ; then +if [ ! -f $HERE/../test/mongo-qa/$1 ] ; then exit 0 fi begintime=`date` -ruby $HERE/../tests/mongo-qa/$1 $3 $4 >> $2 +ruby $HERE/../test/mongo-qa/$1 $3 $4 >> $2 exitval=$? endtime=`date` diff --git a/mongo-ruby-driver.gemspec b/mongo-ruby-driver.gemspec index d010e83..8f1d037 100644 --- a/mongo-ruby-driver.gemspec +++ b/mongo-ruby-driver.gemspec @@ -49,36 +49,36 @@ PACKAGE_FILES = ['README.rdoc', 'Rakefile', 'mongo-ruby-driver.gemspec', 'lib/mongo/util/ordered_hash.rb', 'lib/mongo/util/xml_to_ruby.rb', 'lib/mongo.rb'] -TEST_FILES = ['tests/mongo-qa/_common.rb', - 'tests/mongo-qa/admin', - 'tests/mongo-qa/capped', - 'tests/mongo-qa/count1', - 'tests/mongo-qa/dbs', - 'tests/mongo-qa/find', - 'tests/mongo-qa/find1', - 'tests/mongo-qa/gridfs_in', - 'tests/mongo-qa/gridfs_out', - 'tests/mongo-qa/indices', - 'tests/mongo-qa/remove', - 'tests/mongo-qa/stress1', - 'tests/mongo-qa/test1', - 'tests/mongo-qa/update', - 'tests/test_admin.rb', - 'tests/test_bson.rb', - 'tests/test_byte_buffer.rb', - 'tests/test_chunk.rb', - 'tests/test_collection.rb', - 'tests/test_cursor.rb', - 'tests/test_db.rb', - 'tests/test_db_api.rb', - 'tests/test_db_connection.rb', - 'tests/test_grid_store.rb', - 'tests/test_message.rb', - 'tests/test_mongo.rb', - 'tests/test_objectid.rb', - 'tests/test_ordered_hash.rb', - 'tests/test_threading.rb', - 'tests/test_round_trip.rb'] +TEST_FILES = ['test/mongo-qa/_common.rb', + 'test/mongo-qa/admin', + 'test/mongo-qa/capped', + 'test/mongo-qa/count1', + 'test/mongo-qa/dbs', + 'test/mongo-qa/find', + 'test/mongo-qa/find1', + 'test/mongo-qa/gridfs_in', + 'test/mongo-qa/gridfs_out', + 'test/mongo-qa/indices', + 'test/mongo-qa/remove', + 'test/mongo-qa/stress1', + 'test/mongo-qa/test1', + 'test/mongo-qa/update', + 'test/test_admin.rb', + 'test/test_bson.rb', + 'test/test_byte_buffer.rb', + 'test/test_chunk.rb', + 'test/test_collection.rb', + 'test/test_cursor.rb', + 'test/test_db.rb', + 'test/test_db_api.rb', + 'test/test_db_connection.rb', + 'test/test_grid_store.rb', + 'test/test_message.rb', + 'test/test_mongo.rb', + 'test/test_objectid.rb', + 'test/test_ordered_hash.rb', + 'test/test_threading.rb', + 'test/test_round_trip.rb'] Gem::Specification.new do |s| s.name = 'mongo' diff --git a/tests/mongo-qa/_common.rb b/test/mongo-qa/_common.rb similarity index 100% rename from tests/mongo-qa/_common.rb rename to test/mongo-qa/_common.rb diff --git a/tests/mongo-qa/admin b/test/mongo-qa/admin similarity index 100% rename from tests/mongo-qa/admin rename to test/mongo-qa/admin diff --git a/tests/mongo-qa/capped b/test/mongo-qa/capped similarity index 100% rename from tests/mongo-qa/capped rename to test/mongo-qa/capped diff --git a/tests/mongo-qa/count1 b/test/mongo-qa/count1 similarity index 100% rename from tests/mongo-qa/count1 rename to test/mongo-qa/count1 diff --git a/tests/mongo-qa/dbs b/test/mongo-qa/dbs similarity index 100% rename from tests/mongo-qa/dbs rename to test/mongo-qa/dbs diff --git a/tests/mongo-qa/find b/test/mongo-qa/find similarity index 100% rename from tests/mongo-qa/find rename to test/mongo-qa/find diff --git a/tests/mongo-qa/find1 b/test/mongo-qa/find1 similarity index 100% rename from tests/mongo-qa/find1 rename to test/mongo-qa/find1 diff --git a/tests/mongo-qa/gridfs_in b/test/mongo-qa/gridfs_in similarity index 100% rename from tests/mongo-qa/gridfs_in rename to test/mongo-qa/gridfs_in diff --git a/tests/mongo-qa/gridfs_out b/test/mongo-qa/gridfs_out similarity index 100% rename from tests/mongo-qa/gridfs_out rename to test/mongo-qa/gridfs_out diff --git a/tests/mongo-qa/indices b/test/mongo-qa/indices similarity index 100% rename from tests/mongo-qa/indices rename to test/mongo-qa/indices diff --git a/tests/mongo-qa/remove b/test/mongo-qa/remove similarity index 100% rename from tests/mongo-qa/remove rename to test/mongo-qa/remove diff --git a/tests/mongo-qa/stress1 b/test/mongo-qa/stress1 similarity index 100% rename from tests/mongo-qa/stress1 rename to test/mongo-qa/stress1 diff --git a/tests/mongo-qa/test1 b/test/mongo-qa/test1 similarity index 100% rename from tests/mongo-qa/test1 rename to test/mongo-qa/test1 diff --git a/tests/mongo-qa/update b/test/mongo-qa/update similarity index 100% rename from tests/mongo-qa/update rename to test/mongo-qa/update diff --git a/tests/test_admin.rb b/test/test_admin.rb similarity index 100% rename from tests/test_admin.rb rename to test/test_admin.rb diff --git a/tests/test_bson.rb b/test/test_bson.rb similarity index 100% rename from tests/test_bson.rb rename to test/test_bson.rb diff --git a/tests/test_byte_buffer.rb b/test/test_byte_buffer.rb similarity index 100% rename from tests/test_byte_buffer.rb rename to test/test_byte_buffer.rb diff --git a/tests/test_chunk.rb b/test/test_chunk.rb similarity index 100% rename from tests/test_chunk.rb rename to test/test_chunk.rb diff --git a/tests/test_collection.rb b/test/test_collection.rb similarity index 100% rename from tests/test_collection.rb rename to test/test_collection.rb diff --git a/tests/test_cursor.rb b/test/test_cursor.rb similarity index 100% rename from tests/test_cursor.rb rename to test/test_cursor.rb diff --git a/tests/test_db.rb b/test/test_db.rb similarity index 100% rename from tests/test_db.rb rename to test/test_db.rb diff --git a/tests/test_db_api.rb b/test/test_db_api.rb similarity index 100% rename from tests/test_db_api.rb rename to test/test_db_api.rb diff --git a/tests/test_db_connection.rb b/test/test_db_connection.rb similarity index 100% rename from tests/test_db_connection.rb rename to test/test_db_connection.rb diff --git a/tests/test_grid_store.rb b/test/test_grid_store.rb similarity index 100% rename from tests/test_grid_store.rb rename to test/test_grid_store.rb diff --git a/tests/test_message.rb b/test/test_message.rb similarity index 100% rename from tests/test_message.rb rename to test/test_message.rb diff --git a/tests/test_mongo.rb b/test/test_mongo.rb similarity index 100% rename from tests/test_mongo.rb rename to test/test_mongo.rb diff --git a/tests/test_objectid.rb b/test/test_objectid.rb similarity index 100% rename from tests/test_objectid.rb rename to test/test_objectid.rb diff --git a/tests/test_ordered_hash.rb b/test/test_ordered_hash.rb similarity index 100% rename from tests/test_ordered_hash.rb rename to test/test_ordered_hash.rb diff --git a/tests/test_round_trip.rb b/test/test_round_trip.rb similarity index 100% rename from tests/test_round_trip.rb rename to test/test_round_trip.rb diff --git a/tests/test_threading.rb b/test/test_threading.rb similarity index 100% rename from tests/test_threading.rb rename to test/test_threading.rb