-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (15 loc) · 867 Bytes
/
Makefile
File metadata and controls
17 lines (15 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
testenv:
mkdir -p tmpdb/log
mkdir -p tmpdb/data0
mkdir -p tmpdb/data1
mkdir -p tmpdb/data2
mongod --dbpath tmpdb/data0 --port 30000 --replSet=testRs --noprealloc --oplogSize=5 --fork --logpath tmpdb/log/0.log && sleep 2
mongod --dbpath tmpdb/data1 --port 30001 --replSet=testRs --noprealloc --oplogSize=5 --fork --logpath tmpdb/log/1.log && sleep 2
mongod --dbpath tmpdb/data2 --port 30002 --replSet=testRs --noprealloc --oplogSize=5 --fork --logpath tmpdb/log/2.log && sleep 2
mongo --port 30000 --eval 'rs.initiate({"_id" : "testRs", members: [ {"host" : "127.0.0.1:30000", "_id" : 1}, {"host" : "127.0.0.1:30001", "_id" : 2}, {"host" : "127.0.0.1:30002", "_id" : 3 } ]})'
test:
ginkgo -r --randomizeSuites --failOnPending --trace --race --progress
clean:
@-ps ax | grep tmpdb | grep -v grep | awk '{print $$1}' | xargs -n1 kill
rm -rf tmpdb/
sleep 3