From fe9946355fe6fb3056f6d4a5a8214b3e2e7b645d Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Wed, 3 Nov 2010 12:45:22 -0400 Subject: [PATCH] minor: cleanup bin dir. move any benchmarking files to bench dir. --- {bin => bench}/batch_size_benchmark | 0 {bin => bench}/bson_benchmark.rb | 0 {bin => bench}/gridstore_benchmark | 0 {bin => bench}/sample_file.pdf | Bin {bin => bench}/standard_benchmark | 0 bin/fail_if_no_c.rb | 11 ----------- bin/run_test_script | 19 ------------------- 7 files changed, 30 deletions(-) rename {bin => bench}/batch_size_benchmark (100%) rename {bin => bench}/bson_benchmark.rb (100%) rename {bin => bench}/gridstore_benchmark (100%) rename {bin => bench}/sample_file.pdf (100%) rename {bin => bench}/standard_benchmark (100%) delete mode 100644 bin/fail_if_no_c.rb delete mode 100755 bin/run_test_script diff --git a/bin/batch_size_benchmark b/bench/batch_size_benchmark similarity index 100% rename from bin/batch_size_benchmark rename to bench/batch_size_benchmark diff --git a/bin/bson_benchmark.rb b/bench/bson_benchmark.rb similarity index 100% rename from bin/bson_benchmark.rb rename to bench/bson_benchmark.rb diff --git a/bin/gridstore_benchmark b/bench/gridstore_benchmark similarity index 100% rename from bin/gridstore_benchmark rename to bench/gridstore_benchmark diff --git a/bin/sample_file.pdf b/bench/sample_file.pdf similarity index 100% rename from bin/sample_file.pdf rename to bench/sample_file.pdf diff --git a/bin/standard_benchmark b/bench/standard_benchmark similarity index 100% rename from bin/standard_benchmark rename to bench/standard_benchmark diff --git a/bin/fail_if_no_c.rb b/bin/fail_if_no_c.rb deleted file mode 100644 index a451d81..0000000 --- a/bin/fail_if_no_c.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Fail if the C extension module isn't installed. -# -# Only really intended to be used by internal build scripts. - -require 'rubygems' -require 'mongo' -begin - require 'bson_ext/cbson' -rescue LoadError - Process.exit 1 -end diff --git a/bin/run_test_script b/bin/run_test_script deleted file mode 100755 index b99c5bc..0000000 --- a/bin/run_test_script +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# usage: run_test_script test_name output_file -# -# See http://mongodb.onconfluence.com/display/DOCS/Using+the+Framework+(for+Driver+Developers) - -HERE=`dirname $0` - -if [ ! -f $HERE/../test/mongo-qa/$1 ] ; then - exit 0 -fi - -begintime=`date` -ruby $HERE/../test/mongo-qa/$1 $3 $4 >> $2 -exitval=$? -endtime=`date` - -echo "begintime:$begintime" >> $2 -echo "endtime:$endtime" >> $2 -echo "exit_code:$exitval" >> $2