1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-16 00:23:52 +03:00
Commit Graph

166 Commits

Author SHA1 Message Date
Andrew Tridgell
cd2bc5854c r19405: the talloc speed test suite was not giving an accurate picture of the
cost of talloc versus malloc. The size parameter in the test suite was
constantly increasing, leading to a worst case for malloc. It is far
more common to have talloc calls of 100 bytes or lower, so change the
benchmark to reflect this.

This makes talloc look much worse - on my laptop I now get:

talloc: 5615164 ops/sec
malloc: 14337130 ops/sec

I'm working on improving that.
(This used to be commit db273ef4dd)
2007-10-10 14:21:27 -05:00
Jelmer Vernooij
4517b7af0e r19381: Print out the specific tests that failed after a smbtorture run.
Support listing known failures as a list of wildcards in the file
`KNOWN_FAILURES'.
(This used to be commit 23f66efd56)
2007-10-10 14:21:22 -05:00
Jelmer Vernooij
b58deeea69 r19350: Properly list LOCAL-TALLOC under the "LOCAL" header.
Support directories for subcategories in tests.
Several small other fixes.
(This used to be commit bde00d9706)
2007-10-10 14:21:14 -05:00
Jelmer Vernooij
52e3f69a36 r19343: Add support for external scripts/binaries that write results using the
'subunit' protocol. This allows us to easily plug EJS scripts or binaries that
can't depend on -ltorture into smbtorture. The protocol is very simple:

- write "comments" to stderr

Example output on stdout:
test: foo
success: foo
test: bar
success: bar
test: blah
failure: blah [
dummy.c:30: Expression 1 != 2 failed!
]
test: blie
skip: blie [
Iconv support not built in
]

I've already converted the talloc testsuite.
(This used to be commit e1742c14a2)
2007-10-10 14:21:13 -05:00
Jelmer Vernooij
8773e743c5 r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
output in the testsuite rather than just True or False for a
set of tests.

The aim is to use this for:
 * known failure lists (run all tests and detect tests that
						started working or started failing). This
   would allow us to get rid of the RPC-SAMBA3-* tests
 * nicer torture output
 * simplification of the testsuite system
 * compatibility with other unit testing systems
 * easier usage of smbtorture (being able to run one test
						and automatically set up the environment for that)

This is still a work-in-progress; expect more updates over the next couple of
days.
(This used to be commit 0eb6097305)
2007-10-10 14:21:12 -05:00
Simo Sorce
666a72e39a r19304: If you really want to look at the contents undef this one
(This used to be commit fe20ac404d)
2007-10-10 14:21:05 -05:00
Andrew Tridgell
18278a5560 r19118: get rid of a bunch of bool misuse warnings
(This used to be commit e620f44643)
2007-10-10 14:20:36 -05:00
Stefan Metzmacher
4ccdd53704 r18995: - fix bug 4078
- talloc_free(talloc_autofree_context()); should not result
  in a SIGABORT on exit
- add a test for this, but this test can also pass in the standalone build
  and samba3, as samba4 uses talloc_autofree_context()

metze
(This used to be commit 2be48c1b03)
2007-10-10 14:20:27 -05:00
Stefan Metzmacher
ee97148354 r18946: fix compiler warning
metze
(This used to be commit 4505958224)
2007-10-10 14:20:23 -05:00
Andrew Tridgell
f96b8c5391 r18601: updated web page for new talloc build method
(This used to be commit fbd8028080)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
e84ee4a6fd r18600: - fix shell syntax in tests for libraries
- add library test for libpopt
(This used to be commit 13878b7e7e)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
550834c9df r18594: fail the configure step if the required library is not found for tdb,
talloc or libreplace
(This used to be commit 9f45f970f7)
2007-10-10 14:18:54 -05:00
Andrew Tridgell
182ab7107c r18539: 'make distclean' should delete config.cache
(This used to be commit 5a8becb1be)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
fafa8c3e47 r18535: move the AC_CANONICAL_HOST and host specific flag tests into
libreplace. This should fix the standalone build of tdb on HPUX, where
we need to blacklist mmap.

Unfortunately this requires that we have a copy of config.guess and
config.sub in each of our project subdirectories. I tried to find a
way to use something like AC_CONFIG_AUX_DIR($libreplacedir) and just
put config.{guess,sub} in the lib/replace/ directory, but I couldn't
figure out how to do that in a way that kept autoconf happy for each
of our separate builds. Any autoconf guru out there see a way to do
this?
(This used to be commit 823cd3ab35)
2007-10-10 14:18:42 -05:00
Andrew Tridgell
c902a8927c r18521: implement volkers suggestion for avoiding the type punning warnings
(This used to be commit 9b9f058edb)
2007-10-10 14:18:41 -05:00
Stefan Metzmacher
d08fb7b1cc r18485: include libreplace.m4 in the aclocal.m4 files
and use the macros in configure.ac

metze
(This used to be commit 95d33e4d71)
2007-10-10 14:18:36 -05:00
Andrew Tridgell
05cdd9ccaf r18439: 2nd try at a talloc_move() api. This type with the ** ptr interface
exposed.

Unfortunately this generates a large number of type punning
warnings. We'll have to find some magic to hide those.
(This used to be commit 254cbf09de)
2007-10-10 14:18:29 -05:00
Andrew Tridgell
1a59784451 r18435: added a function talloc_move() which is like talloc_steal(), but is
meant for moving pointers between structures. The difference is that
talloc_move() will zero the source pointer, thus ensuring you don't
reference the pointer in the old context.

talloc_move() is appropriate in some, but not all cases where we use
talloc_steal() now. The interface came out of a discussion with
Jeremy.
(This used to be commit 200756017e)
2007-10-10 14:18:29 -05:00
Andrew Tridgell
e6b457d550 r18283: libreplace.m4 needs to be early in configure.ac in other packages too
(This used to be commit 03f9c67c06)
2007-10-10 14:18:01 -05:00
Stefan Metzmacher
a46e12d0e0 r18213: don't list LIBREPLACE depdendecies explicit and
always at it as first private dependencies

metze
(This used to be commit 135d096776)
2007-10-10 14:17:50 -05:00
Jelmer Vernooij
1869a8cc66 r18163: Remove defines for BOOL, False and True
(This used to be commit 6f5e7df6f2)
2007-10-10 14:17:44 -05:00
Stefan Metzmacher
6150443532 r18152: move our AC macros into lib/replace/libreplace_macros.m4
and include them from there

metze
(This used to be commit 38f9e90a12)
2007-10-10 14:17:43 -05:00
Andrew Tridgell
ed356c7989 r18143: the 'showflags' convention from Samba is useful for the other packages
(This used to be commit a4d1f1d222)
2007-10-10 14:17:40 -05:00
Stefan Metzmacher
eb1def379e r18142: add make distclean to talloc build
metze
(This used to be commit c8342c9ae5)
2007-10-10 14:17:39 -05:00
Andrew Tridgell
a983b06d37 r18129: moved the system includes into libreplace - this gives much more
isolation of our portability environment from the main code, and also
simplifies the includes system (no separate #ifdef _SAMBA_BUILD for
tdb. ldb etc now)
(This used to be commit 77d1a468e0)
2007-10-10 14:17:36 -05:00
Stefan Metzmacher
3c6ce57101 r18100: actually make usage of libreplace :-)
metze
(This used to be commit 357882e6ec)
2007-10-10 14:17:16 -05:00
Stefan Metzmacher
7a29fb6dd7 r18096: try to make tcc happy and don't the same struct names in a global and
a local scope

metze
(This used to be commit b787259365)
2007-10-10 14:17:16 -05:00
Stefan Metzmacher
bf0250c621 r18089: sometimes autoconf picks up some old stuff:
- remove configure and config.h.in
- cleanup after autoconf and autoheader are done

metze
(This used to be commit 8246d8ecd2)
2007-10-10 14:17:14 -05:00
Andrew Tridgell
9105f1323b r18086: here too
(This used to be commit e485b25a39)
2007-10-10 14:17:14 -05:00
Andrew Tridgell
6c1bcc6521 r18083: i should sleep more ....
(This used to be commit 9bc583cf6c)
2007-10-10 14:17:13 -05:00
Andrew Tridgell
1acb65fdef r18082: bring talloc in line with new conventions
(This used to be commit 7f7c85fa2f)
2007-10-10 14:17:13 -05:00
Andrew Tridgell
c75b6b92c8 r18080: added distclean target to talloc
(This used to be commit 1185dd044b)
2007-10-10 14:17:12 -05:00
Andrew Tridgell
f9cdcd2eca r18077: move some configure tests out of talloc that are now in libreplace
(This used to be commit b5d519eb1e)
2007-10-10 14:17:12 -05:00
Andrew Tridgell
9b10009938 r18076: convert talloc to the new libreplace system
(This used to be commit 968a4e97cf)
2007-10-10 14:17:12 -05:00
Stefan Metzmacher
10d58661be r18064: merge from samba3
metze
(This used to be commit c60deff667)
2007-10-10 14:17:10 -05:00
Jelmer Vernooij
38fdde5d9b r18031: Merge my replace fixes:
* libreplace can now build stand-alone
 * add stub testsuite for libreplace
 * make talloc/tdb/ldb use libreplace
(This used to be commit fe7ca4b145)
2007-10-10 14:17:05 -05:00
Volker Lendecke
f6f4d868ea r18027: Fix some 64-bit warnings
(This used to be commit cd495d8931)
2007-10-10 14:17:04 -05:00
Stefan Metzmacher
c3d6fea11f r17966: remove all generated files
metze
(This used to be commit 2493f670d3)
2007-10-10 14:16:58 -05:00
Stefan Metzmacher
5e214d5160 r17965: make talloc build more portable
metze
(This used to be commit 64ba7ffdb8)
2007-10-10 14:16:58 -05:00
Stefan Metzmacher
e683a57f32 r17964: try to support sun* hosts
metze
(This used to be commit 87d88b3a47)
2007-10-10 14:16:58 -05:00
Stefan Metzmacher
648dacfaa1 r17963: fix install logic for talloc.3
metze
(This used to be commit 161f2c04f7)
2007-10-10 14:16:58 -05:00
Stefan Metzmacher
071582898c r17960: try to use gmake if present on IRIX
metze
(This used to be commit 18b4ae591a)
2007-10-10 14:16:57 -05:00
Stefan Metzmacher
722d20f4dd r17958: as talloc_init() enabled null tracking, we should avoid to use it
in smbtorture, and in the LOCAL-TALLOC we should reset the null tracking

also make bin/smbtorture //url/foo LOCAL-TALLOC LOCAL-TALLOC possible

metze
(This used to be commit d1dd3df5e4)
2007-10-10 14:16:57 -05:00
Stefan Metzmacher
cca9dbb66f r17957: don't try to use an internet connection when generating the manpage
and only install the manpage if we build it

metze
(This used to be commit 23c6c7a27c)
2007-10-10 14:16:57 -05:00
Stefan Metzmacher
930edaaba7 r17952: merge changes from samba3
metze
(This used to be commit ff8d044c2e)
2007-10-10 14:16:56 -05:00
Stefan Metzmacher
4ce057c3f4 r17950: sync talloc with samba3
metze
(This used to be commit 5697841e29)
2007-10-10 14:16:56 -05:00
Stefan Metzmacher
832ac85ba3 r17907: - add a generic talloc_report_depth_cb() function which takes a callback
to do the actual report.
- make the talloc_report_depth_file() a wrapper of it
- and talloc_report() and talloc_report_full() are wrapper of
  talloc_report_depth_file()

metze
(This used to be commit b199557b35)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
3caba85623 r17905: fix c++ warnings
metze
(This used to be commit 972a84f220)
2007-10-10 14:16:53 -05:00
Stefan Metzmacher
59057c8d56 r17895: - talloc_increase_ref_count() can fail
- make talloc_reference() typesafe when gcc >= 3 is used

metze
(This used to be commit 933d1b47ad)
2007-10-10 14:16:53 -05:00
Stefan Metzmacher
3400d91197 r17893: add a function to disable the null_context
metze
(This used to be commit 7cab4285b1)
2007-10-10 14:16:52 -05:00