Andrew Tridgell
fd43e0ee09
added a uid_wrapper library
...
This library intercepts seteuid and related calls, and simulates them
in a manner similar to the nss_wrapper and socket_wrapper
libraries. This allows us to enable the vfs_unixuid NTVFS module in
the build farm, which means we are more likely to catch errors in the
token manipulation.
The simulation is not complete, but it is enough for Samba4 for
now. The major areas of incompleteness are:
- no emulation of setreuid, setresuid or saved uids. These would be
needed for use in Samba3
- no emulation of ruid changing. That would also be needed for Samba3
- no attempt to emulate file ownership changing, so code that (for
example) tests whether st.st_uid matches geteuid() needs special
handling
2009-08-05 10:51:00 +10:00
Andrew Bartlett
8ff1f50b0c
s4:kerberos Add support for user principal names in certificates
...
This extends the PKINIT code in Heimdal to ask the HDB layer if the
User Principal Name name in the certificate is an alias (perhaps just
by case change) of the name given in the AS-REQ. (This was a TODO in
the Heimdal KDC)
The testsuite is extended to test this behaviour, and the other PKINIT
certficate (using the standard method to specify a principal name in a
certificate) is updated to use a Administrator (not administrator).
(This fixes the kinit test).
Andrew Bartlett
2009-07-28 14:10:47 +10:00
Andrew Bartlett
cdd7a5208f
s4:kerberos Add test to show that we actually export the keytab
...
While it is hard to prove it is correct, at least the new
'nettestuser' principal and the Administrator principal are correct.
We had to fix the case of 'Administrator' in the selftest code to
match the DB, as the keytab lookup is case sensitive.
Andrew Bartlett
2009-07-27 22:41:43 +10:00
Jelmer Vernooij
57cd98de72
selftest: report time after testsuite, gives nicer output on the
...
buildfarm.
2009-06-17 21:37:49 +02:00
Jelmer Vernooij
89aed2771c
subunit: non-zero exit code if one or more testsuites failed.
2009-06-12 17:54:47 +02:00
Jelmer Vernooij
93384da226
selftest: Document the fact that test runner and formatter are now
...
separate tools.
2009-06-12 17:54:47 +02:00
Jelmer Vernooij
7c3f31a262
subunit: Pass canonical names of test results to formatters and filters.
2009-06-12 15:08:14 +02:00
Jelmer Vernooij
718f9be8a2
selftest: Add option to strip output of succeeded tests, and use it on
...
the buildfarm.
The matches the behaviour we had earlier in the previous output format.
2009-06-12 14:34:24 +02:00
Jelmer Vernooij
13e1654c4a
selftest: Remove existing buildfarm output format.
2009-06-12 14:21:15 +02:00
Jelmer Vernooij
994a4d35fc
format-subunit: Remove subunit output module.
...
We can still use "cat" to obtain a subunit stream from a subunit stream. :-)
2009-06-12 14:14:27 +02:00
Jelmer Vernooij
b8f36d3eb8
selftest/buildfarm: Don't assume that a reason being specified is an indication of failure.
2009-06-12 00:22:39 +02:00
Jelmer Vernooij
8fc3602582
subunit-filter: Print names of skipped testsuites.
2009-06-12 00:22:39 +02:00
Jelmer Vernooij
cc216340a6
selftest: Fix exit code for format-subunit.pl.
2009-06-11 20:00:00 +02:00
Jelmer Vernooij
3344df8d2f
selftest: Fix uninitialized variables in selftest output.
2009-06-11 20:00:00 +02:00
Jelmer Vernooij
2ffffcb220
subunit: Sort diff output.
2009-06-11 20:00:00 +02:00
Jelmer Vernooij
9faaffa87b
selftest: Make it easier to do subunit diffs from other apps.
2009-06-11 19:59:59 +02:00
Jelmer Vernooij
84f2d3001d
selftest/subunit: Add diff command that can diff two subunit streams.
2009-06-11 19:59:59 +02:00
Jelmer Vernooij
d8a77a798b
selftest: Properly recognize xfail testsuites.
2009-06-11 19:59:59 +02:00
Jelmer Vernooij
2e311fdac5
selftest/subunit: Remove open_tests argument from parse_results.
2009-06-11 19:59:59 +02:00
Jelmer Vernooij
ed61cc5419
selftest: Fix subunit formatting, fix years when filtering subunit
...
streams.
2009-06-11 19:59:59 +02:00
Jelmer Vernooij
68578d6374
selftest: Fix handling of testsuite, reintroduce progress indication.
2009-06-11 19:59:59 +02:00
Jelmer Vernooij
e979560c13
selftest: Remove unnecessary uses.
2009-06-11 19:59:59 +02:00
Jelmer Vernooij
8a76e4ab29
selftest/subunit: Remove prefix command.
2009-06-11 19:59:58 +02:00
Jelmer Vernooij
4308e69084
selftest: Fix subunit stream to include the right prefixes rather than
...
extending the subunit protocol.
2009-06-11 19:59:58 +02:00
Jelmer Vernooij
c278ee50ee
More work supporting prefixes.
2009-06-11 19:59:58 +02:00
Jelmer Vernooij
16a69f358a
selftest: Use external processes for filtering known failures and pretty
...
formatting.
2009-06-11 19:59:58 +02:00
Jelmer Vernooij
9bdf76c9c2
selftest: Avoid decreasing total testsuites if the original total is not
...
known.
2009-06-11 19:59:58 +02:00
Jelmer Vernooij
24f01e70aa
selftest: Use filter-xfail for known failures
2009-06-11 19:59:58 +02:00
Jelmer Vernooij
4e276fb60a
selftest: Add script to filter out known failures from a subunit stream.
2009-06-11 19:59:58 +02:00
Jelmer Vernooij
0e2f97092c
Subunit: Support "fail" as alias for "failure" in Subunit streams.
2009-06-11 19:59:58 +02:00
Jelmer Vernooij
9e108009d0
subunit: Move more Subunit printing logic to Subunit.pm.
2009-06-11 19:59:57 +02:00
Jelmer Vernooij
0a1dbf353d
subunit: Support the time: command.
2009-06-11 19:59:57 +02:00
Günther Deschner
9ac7e78041
s3-selftest: forward NSS_WRAPPER_WINBIND_SO_PATH env to tests.
...
Guenther
2009-06-08 11:03:07 +02:00
Jelmer Vernooij
b0654b3323
selftest: Add script that can take a subunit stream and format it.
2009-06-03 17:16:56 +02:00
Jelmer Vernooij
2e7022eda0
selftest/plain: Allow caller to not specify the number of expected
...
testsuites to run.
2009-06-03 17:16:25 +02:00
Jelmer Vernooij
4828f75fed
selftest: Fix target/Samba4 tests.
2009-06-03 16:26:30 +02:00
Jelmer Vernooij
4bbef3bcd8
Remove empty unit test.
2009-06-03 16:26:30 +02:00
Jelmer Vernooij
e72be91eba
selftest/README: Fix formatting.
2009-06-03 16:26:30 +02:00
Jelmer Vernooij
1dac17f941
selftest: Factor generic functionality for buildfarm output into a
...
separate perl module.
2009-06-03 16:26:30 +02:00
Jelmer Vernooij
641f8d62df
Support reporting current time in selftest output.
2009-06-03 16:26:30 +02:00
Jelmer Vernooij
53aeb7f4cf
selftest: Add subunit output format.
2009-06-03 16:26:29 +02:00
Günther Deschner
df167ee771
s3-selftest: Fix invalid /etc/group file used with nss_wrapper.
...
Found by torture test.
Guenther
2009-05-30 09:43:28 +02:00
Günther Deschner
7a5475f098
s3-selftest: use nss_wrapper.pl as "add user to group" and "delete user from group" script.
...
Guenther
2009-05-28 10:40:22 +02:00
Günther Deschner
e11f9b46c6
s3-selftest: add add and delete group scripts using nss_wrapper.
...
Guenther
2009-05-20 12:37:44 +02:00
Günther Deschner
94665adb48
s3-printing: Fix vlp testprinter application.
...
Jeremy, we cannot just access cache_path() here without calling lp_load and
friends as well as parsing configfile from the commandline in order to make
"make test/selftest" find the correct conffile with path, etc.
I just changed it to pass the target tdbfilename as an argument, ok ?
Guenther
2009-05-12 11:41:14 +02:00
Günther Deschner
6f4b5798c9
s3-selftest: need to enable lanman auth in order make RPC-SAMR-PASSWORDS pass.
...
Guenther
2009-05-08 00:46:54 +02:00
Jelmer Vernooij
79177c1d36
Specify explicit path to vlp, for those not having vlp in $PATH.
2009-04-22 23:56:35 +02:00
Kai Blin
2ee437e122
s4 selftest: Export the WINBINDD_SOCKET_DIR env var
2009-04-22 00:14:44 +02:00
Günther Deschner
18d475cea9
selftest: add a fake root user to nss_wrapper_passwd in s3.
...
Needed to make some server calls to get_root_nt_token() succeed.
make selftest/make test gurus, please check.
Guenther
2009-04-08 11:48:13 +02:00
Jelmer Vernooij
ea907a7144
selftest: Add copyright headers
2009-03-25 15:40:39 +01:00
Stefan Metzmacher
97a086d5c4
selftest/Samba3: Test smb signing against the member server
...
metze
2009-03-23 12:21:14 +01:00
Stefan Metzmacher
431fc718c1
selftest/Samba3: always use the same timeout for all servers
...
metze
2009-03-21 10:44:41 +01:00
Stefan Metzmacher
593ab6ac00
s4:selftest: rename SMBD_VALGRIND => SAMBA_VALGRIND
...
metze
2009-03-21 10:44:40 +01:00
Stefan Metzmacher
1ef206524d
selftest/Samba3: use the same sequence of signals to shutdown samba3 as with the shell scripts
...
When we kill the timelimit process with SIGKILL, it can't kill its
children...
metze
2009-03-20 14:41:11 +01:00
Andrew Bartlett
022946d196
Make the 'modules.conf' generation in the LDAP selftest simpler
...
The versions of OpenLDAP that we require don't need us to specify the
location any more - slaptest knows this from it's build time.
Andrew Bartlett
2009-02-24 20:49:59 +11:00
Simo Sorce
ca24822234
Fix GDB_PROVISION mode
2009-02-23 13:33:39 -05:00
Stefan Metzmacher
c3baf1529d
selftest/Samba4: pass down the kdc address down to provision_raw_*()
...
metze
2009-02-10 18:07:13 +01:00
Stefan Metzmacher
0d9531e2d3
selftest/Samba4: split out ldap specific stuff from provision_raw_*()
...
metze
2009-02-10 18:07:12 +01:00
Stefan Metzmacher
cfb9cbdf68
selftest/Samba4: split out share configurations of provision_raw*()
...
metze
2009-02-10 18:07:12 +01:00
Stefan Metzmacher
da12481df6
selftest/Samba4: split provision() into provision_raw_prepare() and provision_raw_run()
...
This functions will be reused soon for a Samba34.pm used by
a 'make selftest34'
metze
2009-02-10 18:06:49 +01:00
Stefan Metzmacher
f0e75ff363
selftest: s/SMBD/SAMBA/ in Samba.pm
...
metze
2009-02-10 11:47:24 +01:00
Stefan Metzmacher
76a2d068f5
selftest: allow "skip" as max runtime for smbd, nmbd and winbindd
...
metze
2009-02-10 11:47:02 +01:00
Stefan Metzmacher
bb88b03846
selftest: Samba3 protect against removing /*
...
metze
2009-02-10 11:47:01 +01:00
Stefan Metzmacher
3c1feb82c8
selftest: add target::Template
...
metze
2009-02-10 11:47:01 +01:00
Stefan Metzmacher
4248a8bf99
selftest: add my copyright
...
metze
2009-02-10 11:47:00 +01:00
Stefan Metzmacher
76db6f15dc
selftest/Samba3: use the same logic for make test and make selftest
...
See also commit 484c4a5955
metze
2009-02-04 09:25:36 +01:00
Stefan Metzmacher
a5f9816263
selftest: don't use hardcoded path to nmblookup in Samba4.pm
...
metze
2009-02-03 16:31:03 +01:00
Stefan Metzmacher
388da7ca97
selftest: export BUILDDIR, BUILDDIR_ABS and EXEEXT
...
metze
2009-02-03 16:31:03 +01:00
Stefan Metzmacher
016598717b
selftest: remove source4 specific stuff from selftest.pl
...
metze
2009-02-02 13:12:30 +01:00
Stefan Metzmacher
40b67c3426
selftest: pass down the path to python for provisioning samba4
...
metze
2009-01-30 20:39:44 +01:00
Stefan Metzmacher
6b128f03d5
selftest: don't export $CONFIGURATION anymore only $SMB_CONF_PATH
...
metze
2009-01-30 13:33:34 +01:00
Stefan Metzmacher
b88a0adbed
selftest: fix "none" test
...
metze
2009-01-30 10:31:36 +01:00
Stefan Metzmacher
fd82f593d7
selftest: fix default option name
...
metze
2009-01-30 10:03:45 +01:00
Stefan Metzmacher
52a49b448e
selftest: allow environment options
...
We support "local" and "client" (default) now.
We can decide if we want to run a client against the server
(with a special client.conf) or if we want to run tests localy
on the server with the same config as the server.
metze
2009-01-30 09:36:53 +01:00
Stefan Metzmacher
439172dc06
selftest: add "member" environment for Samba3
...
metze
2009-01-29 10:39:06 +01:00
Stefan Metzmacher
67bf7a2396
selftest: fix Samba3 bugs
...
metze
2009-01-29 10:31:48 +01:00
Stefan Metzmacher
9f8d80c699
selftest: Samba4 remove unused variable
...
metze
2009-01-28 22:17:24 +01:00
Stefan Metzmacher
6a41a2de8d
selftest: abstract Samba3 provision a bit
...
metze
2009-01-28 21:01:49 +01:00
Stefan Metzmacher
8b7c66512d
s3:selftest: fix 'make selftest'
...
metze
2009-01-28 17:32:50 +01:00
Stefan Metzmacher
ff39e0f6dd
selftest: set 'lock dir' in client.conf
...
metze
2009-01-28 12:01:20 +01:00
Stefan Metzmacher
db7ee3733f
s3: try to make 'make selftest' work again
...
metze
2009-01-28 10:07:12 +01:00
Stefan Metzmacher
6f6533aa81
selftest: add --exeext parameter
...
metze
2009-01-21 13:35:36 +01:00
Stefan Metzmacher
5a18607a3b
selftest:Samba4: add bindir_path() utility function to construct the binary pathes
...
metze
2009-01-21 13:35:35 +01:00
Stefan Metzmacher
ac364b4bab
selftest: bin/ is under $(builddir) instead of $(srcdir)
...
metze
2009-01-21 13:35:35 +01:00
Andrew Bartlett
18ef32f4ce
s4:selftest: lower debug level for slapd
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-17 12:29:27 +11:00
Jelmer Vernooij
069a6f0e4b
Disable lanman authentication by default in Samba 4.
2008-10-31 15:07:34 +01:00
Stefan Metzmacher
6bc9fb887f
selftest: move gdb_* and valgrind_* scripts to selftest/
...
metze
2008-10-28 12:20:59 +01:00
Jelmer Vernooij
0e36ffc675
selftest.pl: Silence verbose tdbsam output.
2008-10-23 16:42:45 +02:00
Jelmer Vernooij
7a683618e7
Require separate option for quicktest include list rather than making
...
assumptions about it.
2008-10-22 04:09:17 +02:00
Jelmer Vernooij
5018fef8cb
Fix path for quicktest.
2008-10-22 04:05:22 +02:00
Jelmer Vernooij
e422f638bc
Use socket wrapper for selftest.pl, find binaries correctly.
2008-10-21 17:48:05 +02:00
Jelmer Vernooij
dadde7e8f0
Make warning a bit more user-friendly.
2008-10-20 12:09:36 +02:00
Jelmer Vernooij
c3d8f472e8
Export variables correctly for blackbox tests (thanks metze).
2008-10-20 10:53:26 +02:00
Jelmer Vernooij
c0de338394
Move Samba4-specific code out of selftest.
2008-10-19 16:07:00 +02:00
Jelmer Vernooij
1ba9867e7a
Fix typo.
2008-10-19 14:53:55 +02:00
Jelmer Vernooij
0b3cf400db
Fix formatting in selftest help output.
2008-10-19 14:50:25 +02:00
Jelmer Vernooij
0fd0fc75c4
Merge branch 'master' of ssh://git.samba.org/data/git/samba into selftest
...
Conflicts:
selftest/selftest.pl
2008-10-11 03:12:21 +02:00
Jelmer Vernooij
69d38a95c2
keep obsolete file in samba4 source directory.
2008-09-18 19:53:05 +02:00
Jelmer Vernooij
182a0e3490
Move selftest code to top-level.
2008-09-18 19:51:03 +02:00