Skip to content
Chang Hua Guo edited this page Jan 18, 2017 · 5 revisions

Only for dreyfus test to support index purge.

Configurate and Start couchdb

Add dreyfus into couchdb

read the link below.
https://github.com/cloudant-labs/dreyfus/wiki/Introduce-dreyfus-into-couchdb

Start couchdb

Start couchdb based on branch 45918-pluggable-storage-engines.

dev/run --admin=foo:bar

Start clouseau

Start clouseau based on branch 68280_clouseau_for_clustered_purge

mvn scala:run -Dlauncher=clouseau1

Run test cases

Start console in couchdb

dev/remsh

Compile the test code

([email protected])1> c("src/dreyfus/test/dreyfus_purge_test.erl").
{ok,dreyfus_purge_test}

Run the test cases

([email protected])2> dreyfus_purge_test:test_purge_single().
ok
([email protected])3> dreyfus_purge_test:test_purge_multiple().
ok
([email protected])4> dreyfus_purge_test:test_purge_multiple2().
ok
([email protected])5> dreyfus_purge_test:test_purge_conflict().
ok
([email protected])6> dreyfus_purge_test:test_purge_update().
ok

or

([email protected])7> dreyfus_purge_test:test_all().
ok

All the method return ok means passed.