]>
git.ipfire.org Git - thirdparty/kea.git/log
Jelte Jansen [Wed, 3 Oct 2012 14:11:51 +0000 (16:11 +0200)]
[2275] valgrind fix: close db in test case
Mukund Sivaraman [Mon, 8 Oct 2012 09:12:55 +0000 (14:42 +0530)]
[master] Add libb10-cc.la to tests Makefile.am
Jelte Jansen [Tue, 2 Oct 2012 07:41:38 +0000 (09:41 +0200)]
[2278] Add temporary suppression for false positives
Jelte Jansen [Thu, 27 Sep 2012 14:28:25 +0000 (16:28 +0200)]
[2278] remove a bit of dead code
Jelte Jansen [Thu, 27 Sep 2012 14:00:48 +0000 (16:00 +0200)]
[2278] A number of cppcheck fixes
and whitespace things, while i was there
JINMEI Tatuya [Wed, 10 Oct 2012 18:02:24 +0000 (11:02 -0700)]
[2340] corrected the position of closing 'fi' for an 'if GXX = yes'.
JINMEI Tatuya [Tue, 9 Oct 2012 23:43:16 +0000 (16:43 -0700)]
[2340] added comment about why we need to explicitly define empty dtor.
JINMEI Tatuya [Mon, 8 Oct 2012 06:53:26 +0000 (23:53 -0700)]
[2340] added workaround for the clang++ "unused arguments" warn/error.
by specifying -Qunused-arguments. Also, as a cleanup for better organization
I moved compiler specific settings to earlier part of configure.ac, where
this workaround was added.
JINMEI Tatuya [Mon, 8 Oct 2012 04:20:52 +0000 (21:20 -0700)]
[2340] Revert "[2340] specify thread flag as part CPPFLAGS, not LDFLAGS."
This reverts commit
daf81c8846bf0b4e4308068a019c96beb09c5199 .
I believe the sense of the change is correct, but it has effects on
other OSes, so it's probably better to use clang specific workaround
(will commit it later).
JINMEI Tatuya [Mon, 8 Oct 2012 04:19:23 +0000 (21:19 -0700)]
[2340] Revert "[2340] specify -pthread in CXXFLAGS and via system-indepedent variable."
This reverts commit
d62a1e4250c88e765b3cd7f77fe9a948db0a565d .
I believe the sense of the change is correct, but it has effects on
other OSes, so it's probably better to use clang specific workaround
(will commit it later).
JINMEI Tatuya [Sun, 7 Oct 2012 21:12:02 +0000 (14:12 -0700)]
[2340] specify -pthread in CXXFLAGS and via system-indepedent variable.
specifying it in LDFLAGS would trigger build error with some versions of clang.
hardcoding "-pthread" is less portable.
JINMEI Tatuya [Sun, 7 Oct 2012 19:34:55 +0000 (12:34 -0700)]
[2340] removed an effectively unused variable. clang would complain.
JINMEI Tatuya [Sun, 7 Oct 2012 19:20:34 +0000 (12:20 -0700)]
[2340] specify thread flag as part CPPFLAGS, not LDFLAGS.
newer version of clang treats the latter as a fatal error.
JINMEI Tatuya [Sun, 7 Oct 2012 17:13:58 +0000 (10:13 -0700)]
[2340] explictly define destructor of mostly empty template class.
without this new versions of clang++ seem to complain that instantiation of
the class results in an unused variable.
Jelte Jansen [Thu, 11 Oct 2012 15:22:23 +0000 (17:22 +0200)]
[2349] Ignore EXPECT_DEATH when run in valgrind
Valgrind complains (probably rightfully so) that memory is leaking in death-tests. This has been reported upstream, but is not addressed yet, and may not be in the near future, if at all (one response was don't use EXPECT_DEATH).
So I added a checker function, *if* valgrind headers are available, that returns true if the tests are run under valgrind. Death tests are now ignored if so.
Note that we should be very careful about using this; and only use it for things we are sure valgrind can't help, since it is possible to do things differently when using valgrind, which kind of defeats its purpose
Mukund Sivaraman [Thu, 11 Oct 2012 14:43:05 +0000 (20:13 +0530)]
[2268] Fix disabled tests without using InMemoryClient::add()
Also remove direct tests for add() as the method has been removed now.
Tomek Mrugalski [Thu, 11 Oct 2012 14:14:28 +0000 (16:14 +0200)]
[master] Compilation fix for OpenBSD.
For some reason comparison operator for std::vector<uint8_t> does
not work with EXPECT_EQ macro on OpenBSD.
Tomek Mrugalski [Thu, 11 Oct 2012 14:07:32 +0000 (16:07 +0200)]
[master] Warning shown on Debian6 with g++ 4.4 removed.
Tomek Mrugalski [Thu, 11 Oct 2012 13:33:40 +0000 (15:33 +0200)]
[master] Compilation fix for Solaris in LeaseMgr
Mukund Sivaraman [Thu, 11 Oct 2012 13:09:13 +0000 (18:39 +0530)]
Merge branch 'master' into trac2268
Conflicts:
src/lib/datasrc/memory/Makefile.am
src/lib/datasrc/memory/memory_client.cc
src/lib/datasrc/memory/memory_client.h
src/lib/datasrc/tests/memory/memory_client_unittest.cc
Tomek Mrugalski [Thu, 11 Oct 2012 12:59:58 +0000 (14:59 +0200)]
[master] Merge branch 'trac2237' (Subnet/pool storage for DHCPv4)
Conflicts:
ChangeLog
src/lib/dhcp/cfgmgr.h
src/lib/dhcp/tests/cfgmgr_unittest.cc
Tomek Mrugalski [Thu, 11 Oct 2012 12:55:04 +0000 (14:55 +0200)]
[2237] Changes after review.
Tomek Mrugalski [Thu, 11 Oct 2012 12:40:04 +0000 (14:40 +0200)]
[master] Merge branch 'trac2269' (configuration for b10-dhcp6)
Tomek Mrugalski [Thu, 11 Oct 2012 12:30:28 +0000 (14:30 +0200)]
[2269] Typo fixed.
Tomek Mrugalski [Thu, 11 Oct 2012 12:15:10 +0000 (14:15 +0200)]
[master] Merge branch 'trac2140' (Abstract API for DHCP database)
Conflicts:
ChangeLog
src/lib/dhcp/tests/Makefile.am
Jelte Jansen [Thu, 11 Oct 2012 12:09:15 +0000 (14:09 +0200)]
[2223] small change in comment
Jelte Jansen [Thu, 11 Oct 2012 12:06:19 +0000 (14:06 +0200)]
[2223] revert vector implementation, use a count function
Stephen Morris [Thu, 11 Oct 2012 11:46:51 +0000 (12:46 +0100)]
[2304] Minor changes to header comments
Tomek Mrugalski [Thu, 11 Oct 2012 11:40:11 +0000 (13:40 +0200)]
[2140] LeaseMgr minor tweaks, ChangeLog updated.
Mukund Sivaraman [Thu, 11 Oct 2012 06:51:42 +0000 (12:21 +0530)]
[2266] Update ChangeLog
Mukund Sivaraman [Thu, 11 Oct 2012 06:49:00 +0000 (12:19 +0530)]
Merge branch 'master' into trac2266
JINMEI Tatuya [Thu, 11 Oct 2012 06:01:23 +0000 (23:01 -0700)]
[2332] (unrelated) style cleanups: func name convention, () after sizeof.
JINMEI Tatuya [Thu, 11 Oct 2012 05:58:39 +0000 (22:58 -0700)]
[2332] (unrelated) cleanup: removed unnecesary failure case in Locker.
We don't have to worry about the case lock() throws in the constructor.
In that case the destructor won't be called.
This simplification will make the code simpler, and we can also make
mutex_ member variable a const.
JINMEI Tatuya [Thu, 11 Oct 2012 05:55:34 +0000 (22:55 -0700)]
[2332] added class documentation
JINMEI Tatuya [Thu, 11 Oct 2012 05:17:25 +0000 (22:17 -0700)]
[2332] added more tests and some more comments
JINMEI Tatuya [Thu, 11 Oct 2012 03:09:58 +0000 (20:09 -0700)]
[2332] supported wait() and signal()
JINMEI Tatuya [Wed, 10 Oct 2012 23:45:41 +0000 (16:45 -0700)]
[2332] removed unused changed
JINMEI Tatuya [Wed, 10 Oct 2012 23:25:05 +0000 (16:25 -0700)]
[2332] makefile updates for the new files
JINMEI Tatuya [Wed, 10 Oct 2012 23:24:21 +0000 (16:24 -0700)]
[2332] added initial sets of condition variable encapsulation
currently it does almost nothing except initialize and cleanup
JINMEI Tatuya [Wed, 10 Oct 2012 23:00:28 +0000 (16:00 -0700)]
[2332] unrelated cleanup: noncopyable doesn't have to be public inheritance
(maybe a matter of taste, though)
JINMEI Tatuya [Wed, 10 Oct 2012 22:14:52 +0000 (15:14 -0700)]
[master] minor wording fix in a README file.
committing at my discretion.
JINMEI Tatuya [Wed, 10 Oct 2012 21:52:37 +0000 (14:52 -0700)]
[2340] Merge branch 'master' into trac2340
JINMEI Tatuya [Wed, 10 Oct 2012 20:50:21 +0000 (13:50 -0700)]
[master] changelog for #2339
JINMEI Tatuya [Wed, 10 Oct 2012 20:38:20 +0000 (13:38 -0700)]
[master] Merge branch 'trac2339'
Michal 'vorner' Vaner [Wed, 10 Oct 2012 18:42:46 +0000 (20:42 +0200)]
Compilation fix: usual static_cast<X*>(NULL)
Sunstudio is unhappy with plain NULL inside EXPECT_EQ and thinks it is
int. This makes it think otherwise.
Michal 'vorner' Vaner [Wed, 10 Oct 2012 18:28:16 +0000 (20:28 +0200)]
Remove extra comma at the end of enum
This should fix compilation issue on sunstudio.
Michal 'vorner' Vaner [Wed, 10 Oct 2012 18:17:38 +0000 (20:17 +0200)]
[2207] Document the local zone loader
JINMEI Tatuya [Wed, 10 Oct 2012 18:02:24 +0000 (11:02 -0700)]
[2340] corrected the position of closing 'fi' for an 'if GXX = yes'.
Tomek Mrugalski [Wed, 10 Oct 2012 17:28:09 +0000 (19:28 +0200)]
[2140] DUID no longer returns unsafe references, tests updated.
Tomek Mrugalski [Wed, 10 Oct 2012 17:27:28 +0000 (19:27 +0200)]
[2140] Renew, rebind timers added to lease4, recycle-timer removed
JINMEI Tatuya [Wed, 10 Oct 2012 16:32:40 +0000 (09:32 -0700)]
[master] added changelog for #2244
JINMEI Tatuya [Wed, 10 Oct 2012 16:31:30 +0000 (09:31 -0700)]
[master] a minor grammar fix to changelog entry.
JINMEI Tatuya [Wed, 10 Oct 2012 16:26:47 +0000 (09:26 -0700)]
[master] Merge branch 'trac2244'
JINMEI Tatuya [Wed, 10 Oct 2012 16:19:06 +0000 (09:19 -0700)]
[master] Merge branch 'trac2204'
Marcin Siodelski [Wed, 10 Oct 2012 15:21:01 +0000 (17:21 +0200)]
[2304] Code cleanup.
Mukund Sivaraman [Wed, 10 Oct 2012 14:41:09 +0000 (20:11 +0530)]
[2198] Remove dependency on libb10-util in src/lib/util/unittests/
Mukund Sivaraman [Wed, 10 Oct 2012 14:12:35 +0000 (19:42 +0530)]
[2302] Add a set test for map Element
Mukund Sivaraman [Wed, 10 Oct 2012 14:04:44 +0000 (19:34 +0530)]
[2302] Check map data
Mukund Sivaraman [Wed, 10 Oct 2012 14:03:53 +0000 (19:33 +0530)]
[2302] Add ConstElementPtr version of tests for all types of Element
Tomek Mrugalski [Wed, 10 Oct 2012 14:03:26 +0000 (16:03 +0200)]
[2140] Changes after review: LeaseMgr::getLeaseX() methods expanded.
Michal 'vorner' Vaner [Wed, 10 Oct 2012 11:44:53 +0000 (13:44 +0200)]
[2207] Definition of the local zone updater
Marcin Siodelski [Wed, 10 Oct 2012 11:18:57 +0000 (13:18 +0200)]
[2304] Unit tests for Option6IntArray.
Michal 'vorner' Vaner [Wed, 10 Oct 2012 11:12:21 +0000 (13:12 +0200)]
[2207] Documentation of the base ZoneUpdater
Yoshitaka Aharen [Wed, 10 Oct 2012 10:34:26 +0000 (19:34 +0900)]
[2155] fixed wrong comment
Michal 'vorner' Vaner [Wed, 10 Oct 2012 10:34:08 +0000 (12:34 +0200)]
[2207] Interface of the ZoneUpdater
Yoshitaka Aharen [Wed, 10 Oct 2012 10:32:37 +0000 (19:32 +0900)]
[2155] inline methods in a canonical way
Yoshitaka Aharen [Wed, 10 Oct 2012 10:09:58 +0000 (19:09 +0900)]
[2155] use auto-generated copy constructor
Jelte Jansen [Wed, 10 Oct 2012 10:00:45 +0000 (12:00 +0200)]
[2223] add full rrsets comparison in test
this implementation goes even further than the original one did; it converts both iterators (of rrsets) to string vectors, and sorts and compares the result, so it really does compare everything that is contained in all rrsets (as long as it is in toText() output).
It can compare vectors where the signatures are put in as separate rrsets and vectors where the signatures are contained in the rrset (by splitting them out when constructing the string vector), and as such is backwards comaptible with the existing tests that use rrsetsCheck.
Michal 'vorner' Vaner [Wed, 10 Oct 2012 09:58:50 +0000 (11:58 +0200)]
Merge #2292
Michal 'vorner' Vaner [Wed, 10 Oct 2012 09:58:17 +0000 (11:58 +0200)]
[2292] Add a TODO about re-adding tests
Planned for merge #2268
Yoshitaka Aharen [Wed, 10 Oct 2012 09:40:50 +0000 (18:40 +0900)]
[2155] checkCountersAllZeroExcept() returns void
Yoshitaka Aharen [Wed, 10 Oct 2012 08:06:15 +0000 (17:06 +0900)]
[2155] remove meaningless NULL check
Yoshitaka Aharen [Wed, 10 Oct 2012 07:31:15 +0000 (16:31 +0900)]
[2155] added notes for including header files with EXTRA_DIST
Yoshitaka Aharen [Wed, 10 Oct 2012 05:14:46 +0000 (14:14 +0900)]
[2157] fixed systest
Yoshitaka Aharen [Tue, 9 Oct 2012 12:17:03 +0000 (21:17 +0900)]
[2157] update spec file
JINMEI Tatuya [Tue, 9 Oct 2012 23:43:16 +0000 (16:43 -0700)]
[2340] added comment about why we need to explicitly define empty dtor.
JINMEI Tatuya [Tue, 9 Oct 2012 22:37:16 +0000 (15:37 -0700)]
[2268] separated zone data Loader from ZoneDataUpdater.
it doesn't have to be part of the updater (with the ability of accessing
private members).
Mukund Sivaraman [Tue, 9 Oct 2012 22:24:29 +0000 (03:54 +0530)]
[2302] Untabify and delete trailing whitespace
Kazunori Fujiwara [Tue, 9 Oct 2012 22:21:09 +0000 (03:51 +0530)]
[2302] Fix bugs in Element class
Two bugs in src/lib/cc/data.h:
* Element::find() does not return value because its argument is not a
reference.
* getValue() member functions does not work for ConstElementPointer
because getValue() member functions are not specified as const.
Aharen found these bugs.
JINMEI Tatuya [Tue, 9 Oct 2012 22:09:37 +0000 (15:09 -0700)]
[2268] cleanup: removed (now-)unnecessary include
JINMEI Tatuya [Tue, 9 Oct 2012 21:44:42 +0000 (14:44 -0700)]
[2268] constify
JINMEI Tatuya [Tue, 9 Oct 2012 21:40:13 +0000 (14:40 -0700)]
[2268] doxigen editorial fixes: use \code for code snippet; folded a long line
Mukund Sivaraman [Tue, 9 Oct 2012 21:35:46 +0000 (03:05 +0530)]
[2198] First use a mutex for mutual exclusion among threads, then a lock file
Mukund Sivaraman [Tue, 9 Oct 2012 21:33:09 +0000 (03:03 +0530)]
[2198] Add Mutex::tryLock() and make lock methods public
tryLock() is necessary inside InterprocessSyncFile. It also doesn't
make sense afterwards to make a dynamically constructed Mutex::Locker
that lives after the basic block is exited. So lock() and unlock()
have also been made public.
I've added comments to discourage the use of these methods directly
and use the Mutex::Locker where applicable.
JINMEI Tatuya [Tue, 9 Oct 2012 20:28:08 +0000 (13:28 -0700)]
[2204] removed an obsolete comment that only made sense for the previous code.
JINMEI Tatuya [Tue, 9 Oct 2012 20:26:20 +0000 (13:26 -0700)]
[2204] added notes about future extensions of incremental datasrc config update
JINMEI Tatuya [Tue, 9 Oct 2012 20:17:59 +0000 (13:17 -0700)]
[2339] changed the search order of python executable: seek python3.x first.
this works around a bit awkward installation setup where there's a link
from "python3" to "python3.x" but not from "python3-config" to the
corresponding "python3.x-config". That happens for recent versions of
Homebrew.
Mukund Sivaraman [Tue, 9 Oct 2012 20:05:38 +0000 (01:35 +0530)]
[2198] Test that locks work from threads
This test fails now because there's no mutual exclusion among threads
in the implementation.
Mukund Sivaraman [Tue, 9 Oct 2012 20:04:36 +0000 (01:34 +0530)]
[2198] Build threads directory first because . depends on it
JINMEI Tatuya [Tue, 9 Oct 2012 18:11:51 +0000 (11:11 -0700)]
[2244] missing update: Component.running() was renamed is_running().
Tomek Mrugalski [Tue, 9 Oct 2012 17:13:29 +0000 (19:13 +0200)]
[2269] Changes in Dhcp6 config parser after review.
Marcin Siodelski [Tue, 9 Oct 2012 16:34:42 +0000 (18:34 +0200)]
[2304] Added unit tests for Option6Int option.
Tomek Mrugalski [Tue, 9 Oct 2012 14:08:25 +0000 (16:08 +0200)]
[2237] Tests for addr utilities added, other minor fixes after review.
Tomek Mrugalski [Tue, 9 Oct 2012 12:54:09 +0000 (14:54 +0200)]
[2237] Changes after review.
Marcin Siodelski [Tue, 9 Oct 2012 12:39:14 +0000 (14:39 +0200)]
[2304] Asserts on types of options created with factory functions.
Michal 'vorner' Vaner [Tue, 9 Oct 2012 12:11:25 +0000 (14:11 +0200)]
[2292] Clarify test
And make it slightly stronger (it now checks something that should be
mostly obvious too, but who knows, with software).
Michal 'vorner' Vaner [Tue, 9 Oct 2012 12:07:13 +0000 (14:07 +0200)]
[2292] Pass the old zone back
Instead of releasing it directly. While the internal release was more
convenient, it didn't allow for swapping things fast under a mutex and
then spending the time releasing it unlocked.
Michal 'vorner' Vaner [Tue, 9 Oct 2012 11:39:30 +0000 (13:39 +0200)]
[2292] Don't pass SegmentObjectHolder
It is supposed to be mostly private. Use it internally only.
Mukund Sivaraman [Tue, 9 Oct 2012 05:11:32 +0000 (10:41 +0530)]
[master] Set lockfile path for DHCP tests
Mukund Sivaraman [Tue, 9 Oct 2012 05:05:21 +0000 (10:35 +0530)]
[master] Update .gitignore files