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`
|
|
|
|
|
2009-02-05 20:59:09 +00:00
|
|
|
if [ ! -f $HERE/../tests/mongo-qa/$1 ] ; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2009-02-02 18:12:33 +00:00
|
|
|
begintime=`date`
|
2009-02-18 22:42:37 +00:00
|
|
|
ruby $HERE/../tests/mongo-qa/$1 $3 $4 >> $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
|