Don't use strdup for http path

If users are passing the npath parameter, they obviously expect to be
able to pass a non-NUL delimited string.

Change-Id: I339876d0605108cd66410fede8959bef3deacc7f
Reviewed-on: http://review.couchbase.org/20671
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Divide unit tests into categories and place them in their own files

Change-Id: I951c8c2a67636bf0c1693860a267087856158dcd
Reviewed-on: http://review.couchbase.org/20620
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
add mget hit/miss test

Change-Id: Id7ba2b23b3bcea40dfb4076e375dc18795f6fa4b
Reviewed-on: http://review.couchbase.org/20624
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Initialize counter for arithmetic tests before each test

By doing so we know the initial value instead of
depending on the value from the previous test

Change-Id: I9f30952420c3d5e394468124c3d4fc9c5e4f865a
Reviewed-on: http://review.couchbase.org/20621
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Instantiate the mock only once

Use global environment SetUp/TearDown instead of one for each test class

Change-Id: I3f77c1f39554ea0bee7477a785df44f03f916d04
Reviewed-on: http://review.couchbase.org/20674
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Split up mock-unit-test.h

It shouldn't be a "catch all" headerfile

Change-Id: I0619c681b00a6a189bee6a359f1772e26b36042a
Reviewed-on: http://review.couchbase.org/20685
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Refactor MockEnvironment to singleton

Change-Id: I7958642b28128649921f3864b126fc8f5a1feeca
Reviewed-on: http://review.couchbase.org/20686
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
The mockenv should provide createConnection

Change-Id: If1ba6d098c70ad8a469a7f2dbc706e3bfb024e34
Reviewed-on: http://review.couchbase.org/20687
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
CCBC-98 Differentiate between TMPFAILs

Introduce new client specific error code

Change-Id: I5517d97b8097bfbdf0d89b7889f1c722e88ff973
Reviewed-on: http://review.couchbase.org/20700
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Determine cluster version

Change-Id: Ib357621025f57aab89e66023c2dd82f3b018b416
Reviewed-on: http://review.couchbase.org/20677
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Test lock and unlock commands

Change-Id: I075db344d0bc903b8405e6b5800de67e03e1b5d2
Reviewed-on: http://review.couchbase.org/20678
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Fix build breakage with --disable-couchbasemock

Change-Id: I3b2b2f69bee6953391d5f643b3fb4c15184a1456
Reviewed-on: http://review.couchbase.org/20704
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Include config.h in unit_tests.cc

Change-Id: I70c88cfa46c7203d51d4566e5c3c55cecfff9915
Reviewed-on: http://review.couchbase.org/20706
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Document tests with Doxygen

Change-Id: I97d55ce5d1f21f4a72075021d03ed90eb9e3625b
Reviewed-on: http://review.couchbase.org/20709
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Add docs target to run generate doxygen docs

Change-Id: I4706235f54eba8032611108203bbd0e98ca01baf
Reviewed-on: http://review.couchbase.org/20721
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Make doxygen less chatty

Change-Id: I091285240896deddd2e7a2dfb932c5710cb03f97
Reviewed-on: http://review.couchbase.org/20722
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Tested-by: Mordechai Nunberg <mnunberg@haskalah.org>
Remove cbc symlinks with 'make uninstall'

Change-Id: If5972286e67ed76ca49a64ee41958a4ba9ae1404
Reviewed-on: http://review.couchbase.org/20724
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Do not include targets written in C++ if the compiler missing

Change-Id: I412857890f04e5728a2b453cb83339b750214d95
Reviewed-on: http://review.couchbase.org/20723
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Mordechai Nunberg <mnunberg@haskalah.org>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Declare package task for windows build

Currently it requires 7z archiver in the PATH
http://www.7-zip.org/

Change-Id: Ia366e96efa10c29f51b17e96ab22377a30746616
Reviewed-on: http://review.couchbase.org/20782
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Put arch and CC version into package name

Change-Id: I4d2a279453c9acbb7ab3b3a77329a30ee2b9c4bf
Reviewed-on: http://review.couchbase.org/20784
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>