History log of /4.6.4/couchstore/tests/ (Results 1 - 25 of 177)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
Revision tags: v6.0.3, v5.5.3, v5.1.2, v5.1.0, v5.0.0, v4.6.0, v4.6.0-DP, v4.5.1-MP1
13d4a25118-Aug-2016 Dave Rigby <daver@couchbase.com>

MB-20769: Convert to cb_malloc memory allocation API

Replace:

* malloc -> cb_malloc
* calloc -> cb_calloc
* realloc -> cb_realloc
* free -> cb_free
* strdup -> cb_st

MB-20769: Convert to cb_malloc memory allocation API

Replace:

* malloc -> cb_malloc
* calloc -> cb_calloc
* realloc -> cb_realloc
* free -> cb_free
* strdup -> cb_strdup

Change-Id: Ia9edb231ebad30655489bec1052e4d41eea33a32
Reviewed-on: http://review.couchbase.org/67306
Well-Formed: buildbot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>

show more ...

Revision tags: v4.5.0, v4.5.1
bce1f23415-Feb-2016 Will Gardner <will.gardner@couchbase.com>

[BP] MB-20224: gtest macro changes

backport of 1e523270 (no MB on previous commit).

Improve doctest parameterised test name

Adds a test name generator for the CouchstoreDoc

[BP] MB-20224: gtest macro changes

backport of 1e523270 (no MB on previous commit).

Improve doctest parameterised test name

Adds a test name generator for the CouchstoreDocTest parameterised
testing. Also silences warnings introduced by the warning being
added to Google Test.

Change-Id: Iae14415c549c165a550d79b39df1619e1cac9f9a
Reviewed-on: http://review.couchbase.org/66217
Well-Formed: buildbot <build@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Will Gardner <will.gardner@couchbase.com>

show more ...

185ec8ff04-Apr-2016 harsha <hhs.couchbase@gmail.com>

[BP] MB-19031 Handle race in updating terminator timeout

Change-Id: Id9908e758a443bfe4c0c6b5a379f3dfe3ec159f5
Reviewed-on: http://review.couchbase.org/63744
Reviewed-by: Harsha H S <

[BP] MB-19031 Handle race in updating terminator timeout

Change-Id: Id9908e758a443bfe4c0c6b5a379f3dfe3ec159f5
Reviewed-on: http://review.couchbase.org/63744
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>
Tested-by: buildbot <build@couchbase.com>

show more ...

236dd13024-Mar-2016 Will Gardner <will.gardner@couchbase.com>

Return a non-zero exit code if a Lua test fails

Currently the lua tests do nothing if they fail. This change ensures
that they will trigger a test failure in ctest if they actually fail.

Return a non-zero exit code if a Lua test fails

Currently the lua tests do nothing if they fail. This change ensures
that they will trigger a test failure in ctest if they actually fail.

Change-Id: If658e562ca0dc5364859dce277cf9e380545699d
Reviewed-on: http://review.couchbase.org/61923
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...

85bf96b421-Mar-2016 Will Gardner <will.gardner@couchbase.com>

Speed up 'large' lua test

Lua tests have just been enabled on the commit validation slaves
and the 'large' lua test is reasonably slow (~100s without
valgrind). This change speeds it

Speed up 'large' lua test

Lua tests have just been enabled on the commit validation slaves
and the 'large' lua test is reasonably slow (~100s without
valgrind). This change speeds it up by reducing the amount of
random characters is has to generate by a factor of ~20000x.

Change-Id: I8e874b57a78e738302c5776b11d0627d54d9b8ab
Reviewed-on: http://review.couchbase.org/61763
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...

9e10208601-Mar-2016 Will Gardner <will.gardner@couchbase.com>

[BP] Remove 100x loops in mapreduce tests

The couchstore testapp currently takes a very long time to run
and occasionally times out after 1500s on commit validation.

This change

[BP] Remove 100x loops in mapreduce tests

The couchstore testapp currently takes a very long time to run
and occasionally times out after 1500s on commit validation.

This change removes the code to run all the mapreduce tests 100
times and instead runs them just once.

The loop was previously there to reproduce a V8 crash in the
event that a regression occurred. This should be no longer
necessary as we now run the tests under Valgrind which should
detect race conditions and memory erors.

Change-Id: I8a7dc1285a390726dbee7be23938e5fe9125fc1b
Reviewed-on: http://review.couchbase.org/60717
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
(cherry picked from commit e47111a6949b4b812f939ecce724b183d286de27)
Reviewed-on: http://review.couchbase.org/60866
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>

show more ...

128e895c14-Dec-2015 harsha <hhs.couchbase@gmail.com>

MB-17043 Upgrade V8 to version 4.8

V8 APIs have changed from earlier version of 3.23 to current
version of 4.8, current stable v8 version used in Chrome.
Corresponding API changes ar

MB-17043 Upgrade V8 to version 4.8

V8 APIs have changed from earlier version of 3.23 to current
version of 4.8, current stable v8 version used in Chrome.
Corresponding API changes are incorporated in this fix.

Change-Id: I9942225d70d8d5b8dac1bde2429d995b8a4d7dc2
Reviewed-on: http://review.couchbase.org/57777
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>

show more ...

1daef43203-Feb-2016 Will Gardner <will.gardner@couchbase.com>

MB-10280 Align position when extending file for commit

Currently extending the file doesn't achieve very much and leaves
stray 1-byte chunks around the file. This change aligns the file

MB-10280 Align position when extending file for commit

Currently extending the file doesn't achieve very much and leaves
stray 1-byte chunks around the file. This change aligns the file
extension to the next block so when the header's written it doesn't
extend the file again.

Change-Id: Ib6e168abe1cad12a352d4f29f6d2fac4d4924e61
Reviewed-on: http://review.couchbase.org/59458
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: buildbot <build@couchbase.com>

show more ...

2110dd8512-Jan-2016 Volker Mische <vmx@couchbase.com>

Fixing memory leaks found by the Clang AddressSanitizer

Couchstore was compiled via:

make EXTRA_CMAKE_OPTIONS='-D CMAKE_C_FLAGS=-fsanitize=address -D CMAKE_CXX_FLAGS=-fsanitize=

Fixing memory leaks found by the Clang AddressSanitizer

Couchstore was compiled via:

make EXTRA_CMAKE_OPTIONS='-D CMAKE_C_FLAGS=-fsanitize=address -D CMAKE_CXX_FLAGS=-fsanitize=address -D CC=clang -D CXX=clang++'

And the analysis was run via:

ASAN_SYMBOLIZER_PATH=llvm-symbolizer-3.8 ./couchstore_testapp

Change-Id: I19fee52229ee5f9993233ecc11f376b20eba2656
Reviewed-on: http://review.couchbase.org/58515
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>
Tested-by: buildbot <build@couchbase.com>

show more ...

bbabdf7b22-Dec-2015 Volker Mische <vmx@couchbase.com>

MB-17154: Fixing problems in tests

Those problems were identified by static analysis with the Clang Analyzer
`scan-build`.

Change-Id: I7b547ccffb1459475815b450b0ef0d0fd6c27ebc

MB-17154: Fixing problems in tests

Those problems were identified by static analysis with the Clang Analyzer
`scan-build`.

Change-Id: I7b547ccffb1459475815b450b0ef0d0fd6c27ebc
Reviewed-on: http://review.couchbase.org/58045
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>

show more ...

05983a8e22-Dec-2015 Volker Mische <vmx@couchbase.com>

MB-17154: Return results early

If one string is zero-sized, return early before doing any more
complicated things.

Change-Id: I35845144aafa39ce0a59bbe97f68ed02430a79ae
Revie

MB-17154: Return results early

If one string is zero-sized, return early before doing any more
complicated things.

Change-Id: I35845144aafa39ce0a59bbe97f68ed02430a79ae
Reviewed-on: http://review.couchbase.org/58042
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>
Tested-by: buildbot <build@couchbase.com>

show more ...

Revision tags: v4.1.0
f00c64d315-Jun-2015 Volker Mische <vmx@couchbase.com>

MB-15267: Add line numbers to JavaScript errors

When there's an error in a view, it's hard to determine where exactly
it happened. The logging of the errors is improved to contain the li

MB-15267: Add line numbers to JavaScript errors

When there's an error in a view, it's hard to determine where exactly
it happened. The logging of the errors is improved to contain the line
and column number:

[mapreduce_errors:error,2015-06-11T17:23:47.302+02:00,couchdb_n_0@127.0.0.1:<0.461.0>:couch_set_view_updater:-do_maps/3-fun-0-:783]Bucket `beer-sample`, main group `_design/dev_beer`, error mapping document `copper_kettle_brewery` for view `brewery_beers`: TypeError: Cannot read property 'bar' of undefined (line 4:21)

Change-Id: Ife11faecd97082ac2e658a2a2d9ef59e5d513da6
Reviewed-on: http://review.couchbase.org/52061
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...

65f4fbb311-Aug-2015 Dave Rigby <daver@couchbase.com>

couchstore_tests: Fix Windows compile failure

Fix compile failures on Windows due to missing types / headers.

Change-Id: Ifef91c26c03957ababfa3c5212fd25f470c44d1c
Reviewed-on: h

couchstore_tests: Fix Windows compile failure

Fix compile failures on Windows due to missing types / headers.

Change-Id: Ifef91c26c03957ababfa3c5212fd25f470c44d1c
Reviewed-on: http://review.couchbase.org/54346
Reviewed-by: Jim Walker <jim@couchbase.com>
Tested-by: buildbot <build@couchbase.com>

show more ...

7a1ecb6131-Jul-2015 Jim Walker <jim@couchbase.com>

Enable crc32c in couchstore. Changes couchstore file version.

This increases the couchstore version number from 11 to 12.

The idea is that we wish to utilise crc32c for efficient ch

Enable crc32c in couchstore. Changes couchstore file version.

This increases the couchstore version number from 11 to 12.

The idea is that we wish to utilise crc32c for efficient checksumming.

The strategy is to bump the version number.
- version 11 files use the old crc.
- version 12 files use the new crc.

1) Brand new couchstore files will be version 12.

1a) However the API allows users to open files and force
legacy CRC, this is in-case any couchstore user doesn't
want to upgrade (e.g. erlang couchdb).

Opening a file with COUCHSTORE_OPEN_WITH_LEGACY_CRC will
force the version to 11 if the file is new. If the file is
not new the open is failed if the file version is not 11.

2) Compaction is the method to have upgrades performed.

A new compaction flag COUCHSTORE_COMPACT_FLAG_UPGRADE_DB
informs compaction that if the file to be compacted is
version 11, then the new file is version 12.

If the flag is not specified then compaction writes the new
file with same version/crc as the source file.

3) Views are not being upgraded to CRC-32C as part of this commit.
Code which opens tree-files specifies CRC32 explictly so that
they are compatible with couchdb/geocouch code. Upgrading views
to crc32c is a separate item.

Change-Id: I25573f5107408ba8040d06033abb1b6fcbde8414
Reviewed-on: http://review.couchbase.org/54136
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...

5815fc1c05-Aug-2015 Jim Walker <jim@couchbase.com>

Port couchstore_testapp to the gtest framework.

This is in preparation for new tests in later patches.

Move couchstore_testapp to gtest framework.

Primary changes are that:

Port couchstore_testapp to the gtest framework.

This is in preparation for new tests in later patches.

Move couchstore_testapp to gtest framework.

Primary changes are that:
1. Majority of testapp.c becomes gtest_tests.cc (now C++)
2. testapp.c remains just to call to the non-ported C tests.
3. A Documents support class replaces the global SETDOC/Doc/DocInfo
code of the old world.
4. GTest deriving classes are also created so that we can drive tests via
GTest.

Change-Id: Idaf9054f945c312a81db39d525ec887aad6a07ed
NB: pushing again following the previous revert of this patch.
Reviewed-on: http://review.couchbase.org/54309
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...

ab70e51407-Aug-2015 Dave Rigby <daver@couchbase.com>

Revert "Port couchstore_testapp to the gtest framework."

Reverting to fix Sherlock build break - Sherlock builds are still using
couchbase/master and this patch requires gtest, which isn

Revert "Port couchstore_testapp to the gtest framework."

Reverting to fix Sherlock build break - Sherlock builds are still using
couchbase/master and this patch requires gtest, which isn't present in sherlock.

This reverts commit 9b5a3b8df5a8cc8f0d225adb1ae91d568c5e0a09.

Change-Id: I89336f1f09ecfabc5ee3f6ae5735d3653b0ead8a
Reviewed-on: http://review.couchbase.org/54214
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...

9b5a3b8d05-Aug-2015 Jim Walker <jim@couchbase.com>

Port couchstore_testapp to the gtest framework.

This is in preparation for new tests in later patches.

Move couchstore_testapp to gtest framework.

Primary changes are that:

Port couchstore_testapp to the gtest framework.

This is in preparation for new tests in later patches.

Move couchstore_testapp to gtest framework.

Primary changes are that:
1. Majority of testapp.c becomes gtest_tests.cc (now C++)
2. testapp.c remains just to call to the non-ported C tests.
3. A Documents support class replaces the global SETDOC/Doc/DocInfo
code of the old world.
4. GTest deriving classes are also created so that we can drive tests via
GTest.

Change-Id: I543f979e51d6c7b5454f6540fce7d9eff461cfa1
Reviewed-on: http://review.couchbase.org/54130
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...

a8e6291215-Jun-2015 Volker Mische <vmx@couchbase.com>

Fix compiler warnings

Change-Id: I77a7c8ef77f2dbd308a2558643046eea8151bdce
Reviewed-on: http://review.couchbase.org/52081
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: T

Fix compiler warnings

Change-Id: I77a7c8ef77f2dbd308a2558643046eea8151bdce
Reviewed-on: http://review.couchbase.org/52081
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...

Revision tags: v3.1.2
c312c42c20-Mar-2015 Trond Norbye <trond.norbye@gmail.com>

MB-14040: Remove compiler waring (redundant redeclaration)

redundant redeclaration of ‘make_modres’ [-Wredundant-decls]

Change-Id: I6246f821557800a13b57b945046d409a4dd09079
Revi

MB-14040: Remove compiler waring (redundant redeclaration)

redundant redeclaration of ‘make_modres’ [-Wredundant-decls]

Change-Id: I6246f821557800a13b57b945046d409a4dd09079
Reviewed-on: http://review.couchbase.org/48555
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...

d826ffba11-Mar-2015 Nimish Gupta <nimish@couchbase.com>

CBSE-1668 Fix the initial tree building with large node size

If the KP node size is large (e.g. due to large reduce value),
while building the btree, we may be flushing that node only to

CBSE-1668 Fix the initial tree building with large node size

If the KP node size is large (e.g. due to large reduce value),
while building the btree, we may be flushing that node only to
disk and creating one parent node for that.This will not reduce
the number of nodes in the upper level of the tree, and the
tree building will never finish. In this fix, we make sure that
we flush at least 2 KP nodes.

Change-Id: I9832a232c724fc4dd8ff5218b5217b485374d783
Reviewed-on: http://review.couchbase.org/48072
Reviewed-by: Nimish Gupta <nimish@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>

show more ...

81a8545e18-Feb-2015 Trond Norbye <trond.norbye@gmail.com>

MB-13520: use cb_assert() instead of assert() in the tests

assert() is optimized away when built with -DNDEBUG

Change-Id: Id6a8d60cce18164f9df0b3b55d6b62abb5e61eb8
Reviewed-on:

MB-13520: use cb_assert() instead of assert() in the tests

assert() is optimized away when built with -DNDEBUG

Change-Id: Id6a8d60cce18164f9df0b3b55d6b62abb5e61eb8
Reviewed-on: http://review.couchbase.org/47028
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...

9093aa5f22-Jan-2015 abhinavdangeti <abhinav@couchbase.com>

MB-10292: Allow test_file_sort on WIN32

Change-Id: I6573e449864427da2b0d3441652aee82012e8e48
Reviewed-on: http://review.couchbase.org/45711
Tested-by: buildbot <build@couchbase.com>

MB-10292: Allow test_file_sort on WIN32

Change-Id: I6573e449864427da2b0d3441652aee82012e8e48
Reviewed-on: http://review.couchbase.org/45711
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...

Revision tags: v3.0.3
4f26a20018-Dec-2014 Volker Mische <vmx@couchbase.com>

MB-12967: Fix Unicode conversion

This change partly reverts commmit
ca31670ffdb51a6bcac7f44ed955ba7687ec9b07 [1].

The supplied length for the conversion was off by one.

MB-12967: Fix Unicode conversion

This change partly reverts commmit
ca31670ffdb51a6bcac7f44ed955ba7687ec9b07 [1].

The supplied length for the conversion was off by one.

[1]: https://github.com/couchbase/couchstore/commit/ca31670ffdb51a6bcac7f44ed955ba7687ec9b07

Change-Id: I85b45be6bf5f4bac3c90620b9fa9d4b62094579e
Reviewed-on: http://review.couchbase.org/44471
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>

show more ...

Revision tags: v3.0.2
2af5afa805-Nov-2014 Trond Norbye <trond.norbye@gmail.com>

MB-12554: Don't blow the stack

Change-Id: I52e89ceb60ca41a80a703b1d94b1f561b23482bf
Reviewed-on: http://review.couchbase.org/42836
Reviewed-by: Volker Mische <volker.mische@gmail.com

MB-12554: Don't blow the stack

Change-Id: I52e89ceb60ca41a80a703b1d94b1f561b23482bf
Reviewed-on: http://review.couchbase.org/42836
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>

show more ...

Revision tags: v3.0.1, v3.0.0
9a8beb9721-Jul-2014 Volker Mische <vmx@couchbase.com>

Add spatial helper functions

Add some functions including tests that will be used in the subsequent
commits.

Change-Id: I07b9f9410cfc41709c50d33df5241742e892eff4
Reviewed-on

Add spatial helper functions

Add some functions including tests that will be used in the subsequent
commits.

Change-Id: I07b9f9410cfc41709c50d33df5241742e892eff4
Reviewed-on: http://review.couchbase.org/39636
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
Tested-by: buildbot <build@couchbase.com>

show more ...

12345678