forked from mongodb/mongo-java-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdispatch
More file actions
executable file
·34 lines (31 loc) · 946 Bytes
/
dispatch
File metadata and controls
executable file
·34 lines (31 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
export CLASSPATH=$CLASSPATH:../../../../../build
begintime=`date`
if [[ "$1" = "test1" ]]; then
java com.mongodb.framework.Test1
#elif [[ "$1" = "count1" ]]; then
# java com.mongodb.framework.Count1 > $2
elif [[ "$1" = "find" ]]; then
java com.mongodb.framework.Find
elif [[ "$1" = "find1" ]]; then
java com.mongodb.framework.Find1 > $2
elif [[ "$1" = "remove" ]]; then
java com.mongodb.framework.Remove
elif [[ "$1" = "capped" ]]; then
java com.mongodb.framework.Capped
#elif [[ "$1" = "circular" ]]; then
# java com.mongodb.framework.Circular
elif [[ "$1" = "dbs" ]]; then
java com.mongodb.framework.Dbs > $2
elif [[ "$1" = "stress1" ]]; then
java com.mongodb.framework.Stress1
#elif [[ "$1" = "admin" ]]; then
# java com.mongodb.framework.Admin > $2
else
exit 0
fi
exitval=$?
endtime=`date`
echo "begintime:$begintime" >> $2
echo "endtime:$endtime" >> $2
echo "exit_code:$exitval" >> $2