summaryrefslogtreecommitdiff
path: root/source4/torture/basic
AgeCommit message (Collapse)AuthorFilesLines
2011-10-19libcli: move ioctl function field defs to smb_constantsDavid Disseldorp1-1/+1
Currently there are a lot of duplicate ioctl function field definitions between source3 and source4. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-09-07s4:torture/basic: relax base.trans2 midmight time checkingStefan Metzmacher1-2/+4
It's possible that the test runs on a full hour, e.g. Tue Sep 6 03:00:00 2011. So better check that the a_time is different from the current time. metze
2011-08-18s4-test: prevent the utable test from crashingAndrew Tridgell1-3/+5
2011-08-13torture: use tevent_ functions names instead of the legacy event_ onesSimo Sorce2-2/+2
2011-06-20tdb_compat: use tdb_open_compat.Rusty Russell1-1/+1
This is a helper for the common case of opening a tdb with a logging function, but it doesn't do all the work, since TDB1 and TDB2's log functions are different types. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell1-1/+1
We change all the headers and wscript files to use tdb_compat; this means we have one place to decide whether to use TDB1 or TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-05-21s4:torture - always cast correctly when using the "%x" format string argumentMatthias Dieter Wallnöfer1-1/+1
Signed-off-by: Metze
2011-05-05Clean up some const and other compiler warnings.Jeremy Allison1-1/+1
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu May 5 00:59:40 CEST 2011 on sn-devel-104
2011-03-30Fix convert_string() to take a *converted_size arg. and return a bool.Jeremy Allison1-6/+12
Makes these interfaces much harder to misuse and easier to ensure error checking. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Mar 30 23:59:37 CEST 2011 on sn-devel-104
2011-03-25lib/util/charset rename iconv_convenience to iconv_handleAndrew Bartlett1-1/+1
This better reflects what this structure is Andrew Bartlett
2011-03-24charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell2-3/+3
convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
2011-03-19source4/torture/basic: Fix prototypes for all functions.Jelmer Vernooij17-0/+17
2011-02-28Use <tdb.h> to include tdb, so the system include file gets used when ↵Jelmer Vernooij1-1/+1
building against system tdb.
2010-12-11s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij6-55/+54
This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
2010-12-11smbtorture: correct error handling in BASE-OPEN.James Peach1-71/+104
There are a number of cases in BASE-OPEN where an initial failure cascades into multiple failures due to lack of cleanup between test phases. Fix all these so that they close open file handles correctly. Replace torture_comment with torture_result where appropriate so that the results output contains a useful diagnostic. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Dec 11 03:19:39 CET 2010 on sn-devel-104
2010-11-30s4:torture - partially revert "s4:torture - prefer the termination "return"s ↵Matthias Dieter Wallnöfer1-4/+2
at the end of two unittests" This partially reverts commit 54a5c398aaa1d53b5892c9b0aa5539ae7da651da. As tridge pointed out I've overseen the nested loop in "run_iometer". Therefore we end in a infinite loop. Obviously it wasn't run by "make test" since then I would have detected it. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Nov 30 09:23:00 CET 2010 on sn-devel-104
2010-11-29s4:torture - prefer the termination "return"s at the end of two unittestsMatthias Dieter Wallnöfer1-2/+4
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Nov 29 23:29:23 CET 2010 on sn-devel-104
2010-11-29s4:torture - remove unreachable statements to quiet warnings of Solaris "cc"Matthias Dieter Wallnöfer2-4/+0
2010-11-15s4:torture/basic/base.c - fix output warnings regarding "time_t"Matthias Dieter Wallnöfer1-2/+4
"time_t" is generally "long int".
2010-10-07File winattr testAbhidnya P Chirmule2-0/+248
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Oct 7 16:51:19 UTC 2010 on sn-devel-104
2010-10-07File BirthTime testAbhidnya P Chirmule1-0/+114
2010-09-16s3/s4: merge msleep and smb_msleepBjörn Jacke4-70/+70
the merged variant is renamed to smb_msleep as some platforms already have a msleep function.
2010-09-10s4/torture: use time_mono for timeoutsBjörn Jacke1-2/+2
2010-09-10s4/torture: use time_mono for delta timeBjörn Jacke1-2/+2
2010-08-31s4/torture: use monotonic clock for time deltas in denytestBjörn Jacke1-15/+15
2010-08-11smbtorture: Make BASE-OPENATTR report a failure if it fails.James Peach1-2/+4
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell4-43/+43
this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-05-18s3: Remove use of iconv_convenience.Jelmer Vernooij1-1/+0
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij3-16/+12
2010-04-11subunit: Remove more test output that could be interpreted by subunit.Jelmer Vernooij1-36/+36
2010-04-11subunit: Support formatting compatible with upstream subunit, for consistency.Jelmer Vernooij4-5/+5
Upstream subunit makes a ":" after commands optional, so I've fixed any places where we might trigger commands accidently. I've filed a bug about this in subunit.
2010-03-31s4-torture: removed more uses of typeof()Andrew Tridgell1-64/+59
not portable
2010-03-30s4:torture/basic/denytest.c - use "typeof" in a better supported syntaxMatthias Dieter Wallnöfer1-5/+5
This should make it compatible with the SUN Studio C Compiler.
2010-02-02Change uint_t to unsigned int in source4Matt Kraai6-13/+13
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-01-26s4:smbtorture: add BASE-BENCH-HOLDOPENStefan Metzmacher2-0/+64
This is useful for manual performance testing with a large number of share mode entries. metze
2009-12-07s4/torture: add delete-on-close test for directoriesAravind Srinivasan1-0/+63
This test opens a directory with delete on close, opens it again, and checks to make sure that the second open returned with NT_STATUS_DELETE_PENDING.
2009-12-03s4-torture: Allow the legacy DENY_FCB/DENY_DOS share modes to be ignoredZachary Loafman1-0/+20
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-11-07torture/basic/denytest - makes the code more compatible for TRU64 (consider ↵Matthias Dieter Wallnöfer1-10/+14
buildfarm)
2009-11-05Fix up some of the timing constants for DELAYWRITE. Add some extra tests up ↵Jeremy Allison1-30/+114
test_delayed_write_update6 to investigate what happens to a sticky write handle after a second handle close. Jeremy.
2009-10-20s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell17-29/+0
This reduces compile time somewhat.
2009-10-17s4-torture: cleanup after the MAXIMUM_ALLOWED testAndrew Tridgell1-0/+1
2009-10-17s4-torture: add a special check for administrators and privilegesAndrew Tridgell1-6/+6
lsa privileges calls don't expand groups. darn.
2009-10-17s4-torture: show the sid we are basing privilege tests onAndrew Tridgell1-2/+6
2009-10-16s4-torture: take privileges into account in BASE-MAXIMUM_ALLOWEDAndrew Tridgell1-10/+48
The correct answer depends on the users privileges.
2009-10-15s4-smb: declare root_fid as a file handleAndrew Tridgell5-12/+12
In order to implement root_fid in the s4 SMB server we need to declare it as a handle type, just as for other fnum values in SMB. This required some extensive (but simple) changes in many bits of code.
2009-10-06s4/torture: Add server target of OneFSSteven Danneman1-0/+23
I've added a "--target=onefs" which lists expected deviation in the OneFS SMB server implementation compared to a Windows machine. I've added this in a generic way using a list of module specific parameters. This list currently only contains the absence of SACL support but will be added to as additional server differences are defined. I'd liked to use this abstraction for defining the differences between a WinXP and Win7 server as well.
2009-10-06s4/torture: Add SMB sharemode/access mask testsAravind Srinivasan3-0/+9355
Test several thousand permutations of create mask and sharemodes on file and directory opens. These tests use a checked-in results table derived from a WinXP server to verify correct server behavior. CREATEX_ACCESS CREATEX_SHAREMODES_FILE CREATEX_SHAREMODES_DIR MAXIMUM_ALLOWED
2009-10-06s4/torture: change comments to torture_failuresAravind Srinivasan1-2/+4
This allows the frameworks that wrap smbtorture to detect errors better.
2009-09-14Torture test for bug 6529 - Offline files conflict with Vista and Office 2003.Jeremy Allison1-0/+131
Ensure we don't regress. Jeremy.
2009-08-24Allow systems with timestamp granularity of 1sec to work withJeremy Allison1-0/+15
this test. Jeremy.