20 lines
419 B
Bash
Executable File
20 lines
419 B
Bash
Executable File
#!/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
|