1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-20 08:23:50 +03:00
Commit Graph

177 Commits

Author SHA1 Message Date
Michael Adam
0f5c13e573 testsuite: enable the testparm_s3 tests.
Michael
2008-06-19 17:22:27 +02:00
Michael Adam
eb28146d40 testsuite: add a testparm_s3 test script.
This is a first testparm/lp_load test that runs testparm on a couple
of configuration files. The main purpose for now is to test the options
that have special handlers (to check whether the handlers succeed).
In particular, all the Macro expansions that are available via
alloc_sub_basic() are tested with the include handler. This is to
catch such crashbugs as #5548 where %m expansion led to a segfault.

The tests now are very simple. Just check if testparm completes
successfully on the given config files. This can (and should) be
elaborated in the future.

Michael
2008-06-19 17:22:27 +02:00
Michael Adam
73c17b6303 testsuite: update introductory comment to test_net_regsistry.sh
This is now used to test rpc and local access depending on
command line parameters.

Michael
2008-06-19 17:22:27 +02:00
Volker Lendecke
2eef2c682c Fix typo 2008-06-19 12:02:12 +02:00
Michael Adam
1734f9305a testsuite: give admin rights to testuser only for the "net rpc registry" test.
Remove the user from BUILTIN\Administrators at the end of the tests.
Note: BUILTIN\Administrators is not deletet at the end because that
functionality is not implemented.

Michael
2008-06-17 23:54:15 +02:00
Michael Adam
9fe99c69f3 testsuite: don't give the testuser administrative rights globally.
It breaks RPC-SAMBA3-GETUSERNAME for reasons I have not quite
understood yet. Somhow loosing rights fails when the user
belogns to BUILTIN\Administrators at some point.

Michael
2008-06-17 23:51:23 +02:00
Karolin Seeger
443691eb26 tests_all.sh: Do not execute $SMB4TORTURE --version if it is not available.
Improve error message if no SMB4TORTURE is available.

Karolin
2008-05-13 14:17:59 +02:00
Michael Adam
7418d89b29 testsuite: allow selection of posix_s3 subtests by env var POSIX_SUBTESTS.
This allows for calling e.g.

TESTS=posix_s3 POSIX_SUBTESTS="RPC-SAMBA3-GETUSERNAME" make test

Michael
2008-05-07 00:14:17 +02:00
Michael Adam
0b879817ba testsuite: make structuring output of net_s3 tests stand out more.
say "RUNNING SUBTESTS ..." instead of "Running ... tests"

Michael
2008-05-06 12:26:14 +02:00
Michael Adam
b73821c392 testsuite: make diagnostic output more appropriate in tests_all.sh
Say "RUNNING TESTS ..." instead of "RUNNING SUBTESTS ..."

Michael
2008-05-06 12:26:14 +02:00
Michael Adam
baea061500 testsuite: give the testuser administrative rights in selftest.sh
(by adding him to builtin\administrators)

Michael
2008-05-06 12:26:14 +02:00
Michael Adam
dcf39078cf testsuite: run the net rpc registry tests from the net_s3 tests.
Michael
2008-05-06 12:26:14 +02:00
Michael Adam
110c26374e testsuite: add the ability to test "net rpc registry" with the net_registry tests
by specifying a parameter "rpc" on the commandline.

Michael
2008-05-06 12:26:14 +02:00
Michael Adam
b5507f8a95 testsuite: adapt informative message to say "Running _local_ registry tests".
The plan is to also test remote registry  with "net rpc registry".

Michael
2008-05-06 12:26:14 +02:00
Michael Adam
a5fc47c245 testsuite: use domain==workgroup in wbinfo tests now that we are PDC.
Previously domain==netbios name was the right thing to use.

Michael
2008-05-06 12:26:14 +02:00
Kai Blin
026d701aff tests: Add a net_misc test. 2008-05-06 12:26:13 +02:00
Kai Blin
65c619b36d selftest: Advertise as PDC and time server during make test 2008-05-06 12:26:13 +02:00
Kai Blin
6fb1fe803c selftest: Use TESTS env var to specify tests to run like Samba4 does. 2008-05-06 12:26:13 +02:00
Gerald W. Carter
f8c364da94 Use wbinfo --online-status in make test rather than --sequence 2008-04-23 11:26:35 -05:00
Michael Adam
e0947537e6 test: not only pretend to call smbconftort - really do it :-}
Michael
2008-04-11 10:57:50 +02:00
Björn Jacke
9aabfa44d9 some shells are pickier than others ... 2008-04-11 10:51:19 +02:00
Michael Adam
6641061f76 test: run smbconftort testsuite from the local_s3 tests
Michael
2008-04-10 01:29:01 +02:00
Stefan Metzmacher
83b6da7c52 selftest: run the BASE-DELAYWRITE test 4 times faster in make test
metze
2008-04-08 18:53:38 +02:00
Stefan Metzmacher
5df3463431 selftest: samba3 passes BASE-DELAYWRITE
metze
2008-04-07 12:29:28 +02:00
Michael Adam
c04a234f8f test: add diagnostic message to net_registry test.
Michael
2008-04-01 16:16:55 +02:00
Michael Adam
8f0c25f01f test: fix net_registry test "set value to different type" to track error count
missing backslash in call... :-}

Michael
2008-04-01 16:16:55 +02:00
Michael Adam
dba9db5ae6 test: some cosmetics to net_registry tests.
Michael
2008-04-01 16:16:55 +02:00
Michael Adam
cb3dafe5fd test: fix net_registry tests to correctly capture output of commands inside one test
so that failure output is not clobbered by  output of previous
successful commands.

Michael
2008-04-01 16:16:55 +02:00
Michael Adam
388a40931f test: fix use of printf in net_registry tests.
actually 'printf "%s\n"' is the proper replacement of 'echo -e'

Michael
2008-04-01 16:16:55 +02:00
Michael Adam
c0c4118427 test: be more portable. replace 'echo -n' by 'printf "%s"' in test_functions.sh
Michael
2008-04-01 16:16:55 +02:00
Michael Adam
b6122406fe test: be more portable: replace 'echo -n' by 'printf "%s"' in selftest.sh
Michael
2008-04-01 16:16:54 +02:00
Michael Adam
1cb3b2f065 test: make registry tests more portable: protect some grep patterns in ' '.
Michael
2008-04-01 13:43:30 +02:00
Michael Adam
5c1b7ee5c1 test: make registry tests more portable: use 'printf "%s"' instead of 'echo -e'
Michael
2008-04-01 13:43:30 +02:00
Michael Adam
fa5968a26b test: add test script for testing "net registry".
Michael
2008-04-01 00:09:59 +02:00
Michael Adam
d775194e9c test: add (and unify) sectioning output of subtests in tests_all.sh
Michael
2008-03-31 17:22:03 +02:00
Michael Adam
bf4af79f05 test: add possibility to select tests to run via tests_all.sh (make test)
This allows to select the tests to run with tests_all.sh by setting
the environment variable "RUNTESTS". Example:

RUNTESTS="smbclient_s3_encrypted wbinfo_s3" make test

Michael
2008-03-31 17:22:03 +02:00
Michael Adam
ad1fbadf81 test: in tests_all.sh, wrap calls to test scripts into shell functions.
This is in preparation for enabling running only selected test scripts
through "make test".

Michael
2008-03-31 17:22:02 +02:00
Stefan Metzmacher
c765090871 selftest: samba3 passes RAW-SEARCH now
As the resume key tests are skipped against samba3.

metze
2008-03-11 22:08:24 +01:00
Michael Adam
567ac329dc Test: Properly track current test binary for tracking crashes.
Make sure the panic action always has the right test binary set.

Michael
2008-03-06 09:25:49 +01:00
Stefan Metzmacher
9b761062df make test: pass --option=torture:sharedelay=100000 to samba4 smbtorture
BASE-DEFER_OPEN is now more strict with incorrect timing

metze
2008-02-25 11:34:44 +01:00
Kai Blin
d12c49e60f ntlm_auth: Fix another typo in the test.
This _should_ be the last one.
2008-01-30 18:34:24 +01:00
Kai Blin
11c9c1536b ntlm_auth: test should honour configfile option to run on build farm. 2008-01-30 17:57:32 +01:00
Kai Blin
bfa919cde5 ntlm_auth: Fix typos in the torture test script.
This should fix the build farm. Sorry, wonder why it worked on my box
before.
2008-01-30 16:59:40 +01:00
Kai Blin
f02b74fc06 ntlm_auth: Add a blackbox test. 2008-01-30 15:26:27 +01:00
Volker Lendecke
63ee2ef775 Active RAW-STREAMS in make test 2008-01-20 15:29:58 +01:00
Volker Lendecke
151b42a150 rename vfs_ea_tdb to vfs_xattr_tdb 2008-01-15 17:30:29 +01:00
Volker Lendecke
2036b4c5ad Implement vfs_ea_tdb
This is an option for file systems that do not implement xattrs: in
lockdir/eas.tdb an array of xatts per inode is stored.

It can not solve the problem that xattrs might reappear if a posix-level
process deletes a file and happens to re-create it under the same name. On file
systems with birthtime we might have a chance to detect this, but not with
standard posix. A future version might put relief on file systems that do have
xattrs but where these are severely limited in size/speed/whatever: We can put
a simple marker as a native xattr, but the xattrs proper are stored in the tdb.

Volker
2008-01-15 11:01:18 +01:00
Michael Adam
3eedb89284 Reset the failed counter in test_wbinfo_s3.sh.
Michael
2008-01-14 00:23:11 +01:00
Michael Adam
50f65c3c55 Fix a syntax error in script/tests/test_local_s3.sh .
This will reveal the currently breaking tdbtorture to the build farm...

Michael
2008-01-13 23:54:48 +01:00
Jelmer Vernooij
015cf6b6ad Review feedback from metze. 2008-01-06 15:12:24 +01:00