mongodb/mongo — pull request #269 by kalman5 (2012-07-25 15:26:59+00:00)
Title: Bsonobjtest

- BSONObj tested.
- Removed BSONObj::Vals and BSONObj::vals not used by anyone.
- Templetized BSONObj::elems now the method works with every container having the push_back method.
- Typo in the comment in src/mongo/bson/oid.h
- Constness

I did try to run "scons smoke" but it tries to create a /data directory then I did run the tests in the following way: "python buildscripts/smoke.py --smoke-db-prefix=/home/kalman/mongo_smoke all"
but still the peformance tests try to access the /data directory with the following error:

Test : perftest ...
Wed Jul 25 17:17:47 [conn2] end connection 127.0.0.1:60463 (0 connections now open)
Command : /home/kalman/kalman_mongo/mongo/perftest
Date : Wed Jul 25 17:17:47 2012
terminate called after throwing an instance of 'boost::filesystem2::basic_filesystem_error >'
what(): boost::filesystem::create_directory: No such file or directory: "/data/db/perftest"

I ran all tests with ./test all tests passed:

BSONObjTests | tests: 1 | fails: 0 | assert calls: 27
auth | tests: 3 | fails: 0 | assert calls: 26
background_job | tests: 3 | fails: 0 | assert calls: 7
basic | tests: 24 | fails: 0 | assert calls: 462
btree | tests: 78 | fails: 0 | assert calls: 2428
btree1 | tests: 78 | fails: 0 | assert calls: 2428
btree1_twostep | tests: 78 | fails: 0 | assert calls: 2428
chunk | tests: 20 | fails: 0 | assert calls: 19
client | tests: 7 | fails: 0 | assert calls: 44
commands | tests: 2 | fails: 0 | assert calls: 4
count | tests: 6 | fails: 0 | assert calls: 9
cursor | tests: 16 | fails: 0 | assert calls: 354
directclient | tests: 8 | fails: 0 | assert calls: 10
documentsource | tests: 27 | fails: 0 | assert calls: 167
gridfs | tests: 1 | fails: 0 | assert calls: 3
histogram | tests: 3 | fails: 0 | assert calls: 14
js | tests: 30 | fails: 0 | assert calls: 100144
jsobj | tests: 103 | fails: 0 | assert calls: 10711
jsobjhashing | tests: 1 | fails: 0 | assert calls: 18
json | tests: 82 | fails: 0 | assert calls: 308
matcher | tests: 13 | fails: 0 | assert calls: 20033
mmap | tests: 1 | fails: 0 | assert calls: 3
namespace | tests: 47 | fails: 0 | assert calls: 337
pdfile | tests: 16 | fails: 0 | assert calls: 151252
perf | tests: 37 | fails: 0 | assert calls: 38
query | tests: 58 | fails: 0 | assert calls: 42500
queryoptimizer | tests: 71 | fails: 0 | assert calls: 280
queryoptimizercursor | tests: 163 | fails: 0 | assert calls: 20524
queryutil | tests: 206 | fails: 0 | assert calls: 921
remove | tests: 2 | fails: 0 | assert calls: 12
repl | tests: 51 | fails: 0 | assert calls: 490
replicaSetMonitor_node | tests: 23 | fails: 0 | assert calls: 55
replicaSetMonitor_select_node | tests: 60 | fails: 0 | assert calls: 154
replset | tests: 6 | fails: 0 | assert calls: 7
shard_chunk_manager | tests: 13 | fails: 0 | assert calls: 60
sharding | tests: 7 | fails: 0 | assert calls: 6182350
sock | tests: 1 | fails: 0 | assert calls: 3
spinlock | tests: 1 | fails: 0 | assert calls: 66
stack | tests: 0 | fails: 0 | assert calls: 0
tagSet | tests: 3 | fails: 0 | assert calls: 16
threading | tests: 21 | fails: 0 | assert calls: 488203
update | tests: 67 | fails: 0 | assert calls: 116
TOTALS | tests: 1438 | fails: 0 | assert calls: 7027031