1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

730 Commits

Author SHA1 Message Date
Michael Adam
e30892764e s3:selftest: improve logging in the registry upgrade test
Don't only log to the log file. Give "make test" a cance to grab
some output. And add some more messages.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Nov  4 01:58:20 CET 2011 on sn-devel-104
2011-11-04 01:58:20 +01:00
Björn Baumbach
2f9b453635 s3-selftest: introduce registry upgrade test
Signed-off-by: Michael Adam <obnox@samba.org>
2011-11-04 00:28:08 +01:00
Andrew Bartlett
85598e6850 s3-selftest use a more portable shell syntax
"$10" evaulates to $1 and 0, not the 10th argument.

Thanks to Amitay for pointing this out!

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Sep 13 09:34:49 CEST 2011 on sn-devel-104
2011-09-13 09:34:49 +02:00
Andrew Bartlett
28ad50e5fd s3-selftest: Set path to bin/net and bin/wbinfo in command line to test scripts
This makes it easier to reproduce these tests outside the test
environment, as we rely less on environment variables.

Andrew Bartlett
2011-09-12 20:42:22 +10:00
Amitay Isaacs
78c2eca811 build: Replace mkbuildoptions-waf awk script with waf target 2011-09-07 12:16:40 +02:00
Vicentiu Ciorbaru
2c11d8f177 s3-test: Added new testsuites for test net [rpc] conf
The script tests all commands present in the net conf tool.
It is also possible to provide a fourth command line parameter
'rpc' in order to run the tests with the use of rpc.

Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-22 14:01:48 +02:00
Vicentiu Ciorbaru
ed233dba9a s3-test: Enhanced the net registry roundtrip test script
The script now supports an rpc mode, which is triggered by the
presence of a fourth command line parameter "rpc"

Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-22 13:59:28 +02:00
Andrew Bartlett
61cb2150cb selftest: explain how the message command test works 2011-07-29 04:24:06 +02:00
Michael Adam
93ad34c4ad s3:test: catch more errors in test_access_check() in the smbclient_s3 test
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Jul  6 14:07:13 CEST 2011 on sn-devel-104
2011-07-06 14:07:13 +02:00
Michael Adam
3e73ed77e0 s3:test: don't rely on pyhton being in /usr/bin/python in the sids2xids test
"/usr/bin/env pyhton" should always work as long as pyhton is in the path.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sat Jun 25 01:07:15 CEST 2011 on sn-devel-104
2011-06-25 01:07:15 +02:00
Michael Adam
05a287c9d9 s3:test: fix the smbclient_s3 test on older systems
mktemp requires precisely six Xs at the end of the template name
2011-06-24 23:58:24 +02:00
Michael Adam
c459a1d06e s3:test: fix the net registry roundtrip test on older systems
mktemp requires exactly Xs at the end of the template name on SLES8
2011-06-24 23:58:23 +02:00
Andrew Bartlett
ded32a34f4 s3-buildoptions Show compiled-in location of the new ncaclrpc and nmbd sockets
(cherry picked from commit c558775713)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-06-24 22:45:46 +02:00
Andrew Bartlett
54d8836a84 s3-selftest Remove unused gdb_backtrace
The version in selftest/ has more features and is the one used by 'make test'.

Andrew Bartlett
2011-06-24 13:08:04 +10:00
Andrew Bartlett
5a37d3217a s3-selftest Add test for smbclient --authentication-file
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Jun  9 13:49:59 CEST 2011 on sn-devel-104
2011-06-09 13:49:59 +02:00
Andrew Bartlett
bb00f97a82 s3-selftest Add a test for 'message command'
This also provides us a way to test that the -n option to smbclient
works, as that becomes part of the filename.

Andrew Bartlett
2011-06-09 12:40:09 +02:00
Andrew Bartlett
7e8f086798 s3-build: Move generated config.h and config.h.in to include/autoconf
This ensures that these are not found by the waf build, which causes
issues when the wrong config.h is used by the recursive smbtorture build

Andrew Bartlett
2011-05-09 11:21:09 +02:00
Andrew Bartlett
3e85b960fa dynconfig: Have only one dynconfig.o in the common code. 2011-04-27 22:22:26 +10:00
Andrew Bartlett
9e29b09d39 s3-test Make samba3.blackbox.net.local.registry.roundtrip reliable
Looking for smb.conf files with find -name \*.conf would find and not
find all sorts of things that were just not valid inputs.  When
restricted to under source3 it then finds no inputs in the top level
build, as it only worked on the generated smb.conf files from 'make
test' environments.

Instead, just run it on the one file we know is valid, and if we want
to run it on more files, then we can make this test run against more
environments, or specific target files.

Andrew Bartlett
2011-04-27 21:10:30 +10:00
Volker Lendecke
40e0079bae s3: Some build farm machines do not have /bin/true
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 14:35:42 CEST 2011 on sn-devel-104
2011-04-25 14:35:42 +02:00
Volker Lendecke
422b2fa0d0 s3: Run pthreadpooltest in make test
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 25 10:39:12 CEST 2011 on sn-devel-104
2011-04-25 10:39:12 +02:00
Andrew Bartlett
1870d25495 selftest Add binary mappings for samba3 selftest
This will help us have a top level 'make test', working around the
fact that the --eanble-s3build has different names for some of these
binaries, without fixing the names forever (we can just change the
mapping later).

Andrew Bartlett
2011-04-16 11:43:04 +02:00
Volker Lendecke
845d4d43c7 s3: Add a test for sid2xids
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-13 14:13:25 -07:00
Andrew Bartlett
2d22bbf2c0 s3-selftest Look only under source3 for smb.conf files
This test looks for any .conf file with [global] in it, and assumes
it's a Samba3 format smb.conf file.  If 'make test' has been run in
the top level build, it was finding the smb.conf files it generated.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Apr  4 23:50:06 CEST 2011 on sn-devel-104
2011-04-04 23:50:06 +02:00
Andrew Bartlett
841d0bc9e8 s3-selftest Remove more instances of /tmp in test_smbclient_s3.sh 2011-04-04 19:48:58 +10:00
Andrew Bartlett
2c0d80259a s3-selftest Fix test_smbclient_auth.sh
The -N in the command line meant that all the logins were as the
guest, not as the user specified.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Mar 29 00:47:50 CEST 2011 on sn-devel-104
2011-03-29 00:47:50 +02:00
Andrew Bartlett
2839391c7d s3-selftest unconditionaly include subunit.sh
we no longer . this file into other shell scripts, so we don't need
this check any more.

Andrew Bartlett
2011-03-29 00:00:23 +02:00
Michael Adam
916ff0bf55 s3:test: mark vanished parameter "postscript" invalid in net registry roundtrip test 2011-03-05 01:31:33 +01:00
Michael Adam
2fd2e2e75d s3:test: in net registry roundtrip test, mark "lock dir" as invalid parameter
This is a synonym of lock directory which is already marked invalid.
2011-03-05 01:31:33 +01:00
Michael Adam
541c580895 s3:test: in net registry roundtrip test, exclude the files from exclude/logon
These files are not samba config files...
2011-03-05 01:31:33 +01:00
Michael Adam
7b4fc4d745 s3:test: correctly react to each failing step in the net registry roundtrip tests 2011-03-05 01:31:33 +01:00
Michael Adam
f5ab9c1e77 s3:test: improve logging in the net registry roundtrip test steps 2011-03-05 01:31:32 +01:00
Michael Adam
e55937cfea s3:test: fix smbclient test on older systems (usage of mktemp)
--tmpdir is not a valid option to mktemp on older systems

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Feb 28 18:12:46 CET 2011 on sn-devel-104
2011-02-28 18:12:46 +01:00
Michael Adam
61c2bcdf20 s3:test: fix registry roundtrip test on older systems (usage of mktemp)
--tmpdir is not a valid option to mktemp on older systems
2011-02-28 17:27:18 +01:00
Andrew Bartlett
a82d9e4e72 s3-selftest convert tests.sh to python
This should allow us a much better chance of invoking the subunit
wrappers in the right way, at the right level.

Andrew Bartlett
2011-02-22 16:20:10 +11:00
Andrew Bartlett
56c28d1cfb s3-tests use $PREFIX to ensure tests don't work outside the test area
Andrew Bartlett
2011-02-22 14:50:14 +11:00
Andrew Bartlett
1650da8a99 Add tests for various s3 auth modes 2011-02-22 14:50:14 +11:00
Michael Adam
1820084523 s3:tests: move the log directory of the smbclient_s3 test to st/
And use a proper mktemp call to create a unique name.
The old location under /tmp/ was bad.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Feb 21 13:39:06 CET 2011 on sn-devel-104
2011-02-21 13:39:06 +01:00
Michael Adam
4ee1c7c493 s3:tests: clean up old log directories of the registry.roundtrip test 2011-02-21 12:50:06 +01:00
Michael Adam
8ad127e187 s3:tests: fix the smbclient_s3 test for multiple users running it.
The test created /tmp/log.smbclient, which lets the test fail if
two users are running the test simultaneously.

Now /tmp/log.test_smbclient_s3.$$ is used.

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sat Feb 19 13:06:57 CET 2011 on sn-devel-104
2011-02-19 13:06:57 +01:00
Michael Adam
0749f7a976 s3:tests: remove unused script/tests/test_functions.sh
This is not used any more now with selftest.
2011-02-19 12:23:24 +01:00
Michael Adam
93ca1bc410 s3:tests: include subunit.sh instead of test_functions.sh in test_posix_s3.sh
It would actually not be necessary at all to include a script providing
testit() and so on, since this script snippet is currently only sourced
in tests.sh to plan the included test.
2011-02-19 12:23:24 +01:00
Michael Adam
d03996afb5 s3:tests: include subunit.sh instead of test_functions.sh in test_ntlm_auth_s3.sh
It would actually not be necessary at all to include a script providing
testit() and so on, since this script snippet is currently only sourced
in tests.sh to plan the included test.
2011-02-19 12:23:24 +01:00
Michael Adam
6af6241040 s3:tests: include subunit.sh instead of test_functions.sh in test_smbtorture_s3.sh
It would actually not be necessary at all to include a script providing
testit() and so on, since this script snippet is currently only sourced
in tests.sh to plan the included test.
2011-02-19 12:23:24 +01:00
Michael Adam
4eb3da2b0e s3:tests: include subunit.sh instead of test_functions.sh in test_wbinfo_s3.sh
It would actually not be necessary at all to include a script providing
testit() and so on, since this script snippet is currently only sourced
in tests.sh to plan the included test.
2011-02-19 12:23:24 +01:00
Michael Adam
ae9aa47d6b s3:tests: use the blackbox subunit output formatter for the testparm_s3 test.
With the old output, failures would go unnoticed by selftest.
2011-02-19 12:23:24 +01:00
Michael Adam
a1bec01eeb s3:tests: include subunit.sh instead of test_functions.sh in test_local_s3.sh
It would actually not be necessary at all to include a script providing
testit() and so on, since this script snippet is currently only sourced
in tests.sh to plan the included test.
2011-02-19 12:23:24 +01:00
Michael Adam
745354eab8 s3:tests: use the blackbox subunit output formatter for the smbclient_s3 test.
With the old output, failures would go unnoticed by selftest.
2011-02-19 12:23:24 +01:00
Michael Adam
ae9eca61eb s3:test: remove the give/take admin rights code from the net(rpc)registry test
This is not neede any more.
The token has been fixed at the lower level on the dc.
2011-02-16 15:21:20 +01:00
Michael Adam
df4044ed33 s3:test: move the registry roundtrip test to a test script of its own 2011-02-16 12:56:41 +01:00