2009-02-02 18:12:33 +00:00
|
|
|
#!/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`
|
|
|
|
|
|
|
|
begintime=`date`
|
2009-02-05 19:24:01 +00:00
|
|
|
ruby $HERE/../tests/mongo-qa/$1 >> $2
|
2009-02-02 18:12:33 +00:00
|
|
|
exitval=$?
|
|
|
|
endtime=`date`
|
|
|
|
|
|
|
|
echo "begintime:$begintime" >> $2
|
|
|
|
echo "endtime:$endtime" >> $2
|
|
|
|
echo "exit_code:$exitval" >> $2
|