Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH 0/8] Raft module, part 4 - unit tests
@ 2020-12-13 17:15 Vladislav Shpilevoy
  2020-12-13 17:15 ` [Tarantool-patches] [PATCH 1/8] fakesys: fix ev_is_active not working on fake timers Vladislav Shpilevoy
                   ` (9 more replies)
  0 siblings, 10 replies; 24+ messages in thread
From: Vladislav Shpilevoy @ 2020-12-13 17:15 UTC (permalink / raw)
  To: tarantool-patches, sergepetrenko

The patchset is a fourth part of Raft relocation to a new module for the sake of
unit testing. This part implements the tests and finishes the task.

Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-5303-p4-raft-tests
Issue: https://github.com/tarantool/tarantool/issues/5303

Vladislav Shpilevoy (8):
  fakesys: fix ev_is_active not working on fake timers
  fakesys: introduce fakeev_timer_remaining()
  raft: introduce raft_ev
  test: introduce raft unit tests
  raft: fix crash when received 0 term message
  raft: fix ignorance of bad state receipt
  raft: fix crash on election timeout decrease
  raft: fix crash on death timeout decrease

 src/lib/fakesys/fakeev.c    |   14 +
 src/lib/fakesys/fakeev.h    |    4 +
 src/lib/raft/CMakeLists.txt |    8 +
 src/lib/raft/raft.c         |   74 ++-
 src/lib/raft/raft.h         |    1 +
 src/lib/raft/raft_ev.c      |   57 ++
 src/lib/raft/raft_ev.h      |   57 ++
 test/unit/CMakeLists.txt    |    3 +
 test/unit/raft.c            | 1255 +++++++++++++++++++++++++++++++++++
 test/unit/raft.result       |  217 ++++++
 test/unit/raft_test_utils.c |  557 ++++++++++++++++
 test/unit/raft_test_utils.h |  287 ++++++++
 12 files changed, 2500 insertions(+), 34 deletions(-)
 create mode 100644 src/lib/raft/raft_ev.c
 create mode 100644 src/lib/raft/raft_ev.h
 create mode 100644 test/unit/raft.c
 create mode 100644 test/unit/raft.result
 create mode 100644 test/unit/raft_test_utils.c
 create mode 100644 test/unit/raft_test_utils.h

-- 
2.24.3 (Apple Git-128)

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2020-12-21 17:29 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-13 17:15 [Tarantool-patches] [PATCH 0/8] Raft module, part 4 - unit tests Vladislav Shpilevoy
2020-12-13 17:15 ` [Tarantool-patches] [PATCH 1/8] fakesys: fix ev_is_active not working on fake timers Vladislav Shpilevoy
2020-12-15  9:42   ` Serge Petrenko
2020-12-13 17:15 ` [Tarantool-patches] [PATCH 2/8] fakesys: introduce fakeev_timer_remaining() Vladislav Shpilevoy
2020-12-15  9:43   ` Serge Petrenko
2020-12-13 17:15 ` [Tarantool-patches] [PATCH 3/8] raft: introduce raft_ev Vladislav Shpilevoy
2020-12-15 10:02   ` Serge Petrenko
2020-12-13 17:15 ` [Tarantool-patches] [PATCH 4/8] test: introduce raft unit tests Vladislav Shpilevoy
2020-12-13 18:10   ` Vladislav Shpilevoy
2020-12-16 13:03   ` Serge Petrenko
2020-12-17 22:44     ` Vladislav Shpilevoy
2020-12-18  8:17       ` Serge Petrenko
2020-12-20 17:28         ` Vladislav Shpilevoy
2020-12-21  7:36           ` Serge Petrenko
2020-12-13 17:15 ` [Tarantool-patches] [PATCH 5/8] raft: fix crash when received 0 term message Vladislav Shpilevoy
2020-12-16 13:05   ` Serge Petrenko
2020-12-13 17:15 ` [Tarantool-patches] [PATCH 6/8] raft: fix ignorance of bad state receipt Vladislav Shpilevoy
2020-12-16 13:06   ` Serge Petrenko
2020-12-13 17:15 ` [Tarantool-patches] [PATCH 7/8] raft: fix crash on election timeout decrease Vladislav Shpilevoy
2020-12-16 13:08   ` Serge Petrenko
2020-12-13 17:15 ` [Tarantool-patches] [PATCH 8/8] raft: fix crash on death " Vladislav Shpilevoy
2020-12-16 13:10   ` Serge Petrenko
2020-12-21 16:50 ` [Tarantool-patches] [PATCH 0/8] Raft module, part 4 - unit tests Vladislav Shpilevoy
2020-12-21 17:29 ` Vladislav Shpilevoy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox