|
Tests passed against a replica set running MongoDB 3.6.15.
For future reference:
1. Build the archived libbson (back before it was merged with libmongoc).
git clone https://github.com/mongodb/libbson.git
|
cd libbson
|
mkdir cmake-build
|
cmake -DCMAKE_INSTALL_PREFIX=/Users/kevinalbertson/libbson-install ..
|
make install
|
2. Build libmongoc from the r1.9 branch
git clone -b r1.9 https://github.com/mongodb/mongo-c-driver.git
|
cd mongo-c-driver
|
mkdir cmake-build
|
cmake -DCMAKE_PREFIX_PATH=/Users/kevinalbertson/libbson-install ..
|
make test-libmongoc
|
3. Run a mongodb replica set. Using mtools:
mlaunch init --replicaset --nodes=2 --name=rs0 --priority --binarypath bin-3.6 --hostname localhost --enableMajorityReadConcern --setParameter enableTestCommands=1 --dir replicaset
|
4. Run test-libmongoc
./cmake-build/test-libmongoc
|
|