1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00
Commit Graph

903 Commits

Author SHA1 Message Date
Jelmer Vernooij
576b1c84fb r23542: Include function documentation in prototype headers.
(This used to be commit 03eef5f337)
2007-10-10 14:53:26 -05:00
Jelmer Vernooij
c2781df0d5 r23289: Provide support for GCC attributes _PURE_, _NONNULL_, _DEPRECATED_, _NORETURN_ and _WARN_UNUSED_RESULT_.
(This used to be commit 44248f662f)
2007-10-10 14:53:08 -05:00
Andrew Bartlett
af1c3c64b0 r23262: Fix mkrelease.sh to work in the right directories
(This used to be commit db8d78f187)
2007-10-10 14:53:07 -05:00
Andrew Bartlett
86a4886e39 r23189: Work towards a totally scripted setup of LDAP backends, so others can
easily try this out.

I also intend to use this for the selftest, but I'm chasing issues
with the OpenlDAP (but not Fedora DS) backend.

Andrew Bartlett
(This used to be commit 0f457b1d2e)
2007-10-10 14:53:02 -05:00
Andrew Bartlett
5fb459e4fa r23177: Add in a new provision-backend script. This helps set up the OpenLDAP or Fedora DS backend.
This required a new mkdir() call in ejs.

We can now provision just the schema for ad2oLschema to operate on
(with provision_schema(), without performing the whole provision, just
to wipe it again (adjustments to 'make test' to come soon).

Andrew Bartlett
(This used to be commit 01d54d13dc)
2007-10-10 14:53:00 -05:00
Jelmer Vernooij
dc919c2534 r23175: Handle PKG_CONFIG_PATH not set yet - fixes warning in selftest.pl
(This used to be commit 222acbe33b)
2007-10-10 14:52:59 -05:00
Stefan Metzmacher
d3f30cab1e r22997: only if the output of which has a leading '/' the output is useful...
metze
(This used to be commit 34968bef6d)
2007-10-10 14:52:38 -05:00
Stefan Metzmacher
1e84e4026e r22575: move script/tests/ -> selftest/
as discussed with jelmer and abartlet

metze
(This used to be commit e9fe3c40e1)
2007-10-10 14:51:46 -05:00
Stefan Metzmacher
c36eedf35c r22571: - don't use "localhost" anymore in our tests
- use different passwords for dc and member

metze
(This used to be commit 9e882cbde2)
2007-10-10 14:51:46 -05:00
Stefan Metzmacher
498166904d r22570: run the NBT tests against DC and MEMBER
metze
(This used to be commit 307cee21e4)
2007-10-10 14:51:45 -05:00
Stefan Metzmacher
ba204fe350 r22569: use the $SERVER_IP for the LDAP-* tests because I'll later change
$SERVER from localhost to localdc.

we should find out why this is needed and add explicit name resolution
in related code...

metze
(This used to be commit 8336e85aad)
2007-10-10 14:51:45 -05:00
Stefan Metzmacher
d17ae2fe82 r22568: use the $SERVER_IP for the NET-* tests because I'll later change
$SERVER from localhost to localdc

mimir: please take a look why that's needed at all, as it shouldn't:-)

metze
(This used to be commit b06a9a00cf)
2007-10-10 14:51:45 -05:00
Rafal Szczesniak
2096de0b8d r22567: add NET-API-DOMLIST test to automatic testing.
rafal
(This used to be commit 69a6f655aa)
2007-10-10 14:51:45 -05:00
Andrew Bartlett
b006d86e65 r22556: Make the slapd command valid.
Andrew Bartlett
(This used to be commit dfb2fd2b2a)
2007-10-10 14:51:43 -05:00
Stefan Metzmacher
b8fdea2172 r22552: this doesn't need a dc
metze
(This used to be commit 56a86c7cc7)
2007-10-10 14:51:42 -05:00
Stefan Metzmacher
99b2851f46 r22551: use fixed passwords, to make it possible to reproduce stuff
and look into krb5 blobs when using wireshark on
--socket-wrapper-pcap created files

metze
(This used to be commit eaf4b9c0ee)
2007-10-10 14:51:42 -05:00
Stefan Metzmacher
ecc37e1dac r22550: nmblookup -U needs an ip address otherwise we depend on gethostbyname()
metze
(This used to be commit 5533fc5063)
2007-10-10 14:51:42 -05:00
Stefan Metzmacher
c1195e0e60 r22549: export some more info ipaddress and in member env also the
details of the dc

metze
(This used to be commit 0c8c1c55f4)
2007-10-10 14:51:42 -05:00
Stefan Metzmacher
e5b0977897 r22548: - maintain a global array of exported envvars
- make it possible to specify the envname for make testenv:
  SELFTEST_TESTENV=member make testenv

metze
(This used to be commit b6b57dd9c9)
2007-10-10 14:51:41 -05:00
Stefan Metzmacher
5d78a487b8 r22547: fix some pathes and make sure we work with relative and abslute prefix pathes
metze
(This used to be commit dc3df1ca43)
2007-10-10 14:51:41 -05:00
Stefan Metzmacher
18d141a3cf r22544: use the same syntax as in all other files
maybe that fixes make test on all sun hosts...

metze
(This used to be commit 2597152126)
2007-10-10 14:51:40 -05:00
Andrew Bartlett
6d69e67dfd r22498: The initial LDIF import into Fedora DS didn't work, so just push this
onto the end of dse.ldif.

This make Fedora DS work with multiple naming contexts.

Andrew Bartlett
(This used to be commit 43deee4f93)
2007-10-10 14:51:33 -05:00
Andrew Bartlett
f1851e7abc r22494: Skip subSchema again, but we will need to remap this objectClass.
Make the Fedora DS backend test again.

Andrew Bartlett
(This used to be commit 65327a0e4d)
2007-10-10 14:51:33 -05:00
Andrew Bartlett
3d4c4c5fa3 r22478: Update the LDAP backend code to handle initialisation of multiple
partitions onto the target LDAP server.

Make the LDAP provision run before smbd starts, then stop the LDAP
server.  This ensures this occurs synchronously, We then restart it
for the 'real run' (with slapd's stdin being the FIFO).

This required fixing a few things in the provision scripts, with more
containers being created via a add/modify pair.

Andrew Bartlett
(This used to be commit 860dfa4ea1)
2007-10-10 14:51:31 -05:00
Andrew Bartlett
c6343915bf r22427: Abort in a few more cases of failure to provision.
Andrew Bartlett
(This used to be commit 113544876f)
2007-10-10 14:51:19 -05:00
Stefan Metzmacher
66a9f1e276 r22420: fix smbd timeout
metze
(This used to be commit 3ac671bd5c)
2007-10-10 14:51:17 -05:00
Stefan Metzmacher
86d376e484 r22414: use more portable perl
hopefully fix solaris 8...

metze
(This used to be commit 103df4465e)
2007-10-10 14:51:16 -05:00
Stefan Metzmacher
3c070cb7c4 r22409: try to fix selftest.pl on systems with old perl versions
metze
(This used to be commit 81a2a144df)
2007-10-10 14:51:16 -05:00
Stefan Metzmacher
b9ed2cc4ba r22398: try to let all tests pass 5400 seconds is not enough
with the amount of tests we run now.

metze
(This used to be commit b0a1f730f9)
2007-10-10 14:51:13 -05:00
Stefan Metzmacher
3e6c45455f r22384: print out the total selftest runtime
and the time for each test

we hit the max runtime of smbd on some hosts

metze
(This used to be commit 7b173c3421)
2007-10-10 14:51:12 -05:00
Stefan Metzmacher
8b3830fbbf r22383: maybe this fixes the mkdir not enough args failure
on sun1

metze
(This used to be commit 8b8152b490)
2007-10-10 14:51:11 -05:00
Stefan Metzmacher
fdae545292 r22380: get the output of the exited smbd...
this shows all the memory leaks now...

metze
(This used to be commit 29c0b56449)
2007-10-10 14:51:11 -05:00
Stefan Metzmacher
fefc459b8f r22378: none needs to be checked first
metze
(This used to be commit 7688919ab8)
2007-10-10 14:51:10 -05:00
Stefan Metzmacher
e4fb7098cd r22377: implement check_env() for samba4
metze
(This used to be commit 4fe8e724ef)
2007-10-10 14:51:10 -05:00
Stefan Metzmacher
e2deb00136 r22375: implement check_env() logic in the frontend
metze
(This used to be commit 0b48ca5d3e)
2007-10-10 14:51:10 -05:00
Stefan Metzmacher
49f71c5c97 r22374: fix perl warnings
metze
(This used to be commit e8dd140a03)
2007-10-10 14:51:09 -05:00
Stefan Metzmacher
558e5ddc52 r22361: warnings.pm isn't available on solaris 8
metze
(This used to be commit a21a86543f)
2007-10-10 14:51:07 -05:00
Stefan Metzmacher
ad6b43ae3b r22360: print out the name of the PCAP file and move setup and cleanup
of pcap files into functions

metze
(This used to be commit dea42ce559)
2007-10-10 14:51:07 -05:00
Stefan Metzmacher
1711fed0dd r22359: try to fix the start failures in the build-farm by creating the prefix dir
before using abs_path()

metze
(This used to be commit a3f35f5af4)
2007-10-10 14:51:07 -05:00
Jelmer Vernooij
efe1883d9b r22356: Simple refactoring.
(This used to be commit 913aa17b02)
2007-10-10 14:51:06 -05:00
Jelmer Vernooij
a60ab76694 r22339: Run some more tests.
(This used to be commit 1b73e6a776)
2007-10-10 14:51:06 -05:00
Jelmer Vernooij
8636c243d6 r22338: Allow regexes in known-failures file
(This used to be commit 74efac5ce2)
2007-10-10 14:51:05 -05:00
Stefan Metzmacher
08a44496d1 r22337: print out the smbd log output after each test
metze
(This used to be commit b6b95180d3)
2007-10-10 14:51:05 -05:00
Stefan Metzmacher
cef04ba64f r22335: output the error code
metze
(This used to be commit cf3a176615)
2007-10-10 14:51:05 -05:00
Stefan Metzmacher
249174cfc5 r22334: don't print the test output if the test passed
(in build-farm mode)

use scalar(localtime()) instead of system("date")

metze
(This used to be commit d1d485fd0c)
2007-10-10 14:51:04 -05:00
Andrew Bartlett
38f9de8ae5 r22333: Use kerberos and the ntvfs/cifs backend for just one test, in the
quicktest.

Andrew Bartlett
(This used to be commit cf9508cd56)
2007-10-10 14:51:04 -05:00
Stefan Metzmacher
f4ec06d8db r22332: escape bad chars with '_' to form a nice filename
metze
(This used to be commit 3d3c0b36cb)
2007-10-10 14:51:04 -05:00
Stefan Metzmacher
f9e5d77b9c r22331: remove run_test_buildfarm() function
and pass buildfarm specific msg_ops to run_test()
instead

metze
(This used to be commit e102863020)
2007-10-10 14:51:03 -05:00
Stefan Metzmacher
ab9b8d3604 r22329: abstract the output handling of run_test()
via function pointers

metze
(This used to be commit 4a77fc9cf5)
2007-10-10 14:51:03 -05:00
Jelmer Vernooij
21379ee620 r22326: Merge some more test improvements.
(This used to be commit 3f85eab590)
2007-10-10 14:51:03 -05:00
Stefan Metzmacher
45e8a27d98 r22312: avoid the need of typing 'run' into each gdb xterm
if someone knows how to tell gdb to only exit
if 'run' exists clean via the if/else logic
please tell me!

see http://davis.lbl.gov/Manuals/GDB/gdb_20.html#SEC194)
but there's no useful example :-(

metze
(This used to be commit 4a95e89308)
2007-10-10 14:51:01 -05:00
Stefan Metzmacher
cc098d19bc r22311: use different ip-addresses for dc and member
metze
(This used to be commit d5b13e7923)
2007-10-10 14:51:01 -05:00
Stefan Metzmacher
8934c3f68e r22307: when no lex or yacc is found:
- just touch $DEST if it's already there and newer than $SRC
- touch $DEST if it's already there but older than $SRC and print warnings
  to stderr
- otherwise return an error

when lex or yacc is found:
- just touch $DEST if it's already there and newer than $SRC
- otherwise regenerate $DEST from $SRC using lex or yacc

I don't like that every 'make' tries to regenerate because the timestamp
of $DEST is never updated...

metze
(This used to be commit 10ed5c3969)
2007-10-10 14:51:00 -05:00
Stefan Metzmacher
86a137b6cc r22305: fix make test using a absolute path for
--with-selftest-prefix

metze
(This used to be commit b9dc78c3ad)
2007-10-10 14:50:59 -05:00
Andrew Bartlett
0ca8807734 r22295: Use delegated credentials and kerberos to test the pass-though
authenticatication as well as the ntvfs/cifs layer.

Andrew Bartlett
(This used to be commit a59ec710ce)
2007-10-10 14:50:58 -05:00
Andrew Bartlett
bcf43e1eb0 r22292: Start the LDAP server inside the same fifo as smbd, as OpenLDAP (like
smbd, but not Fedora DS yet) will then shut down when it looses stdin.

This avoids leaving stray slapd processes around, if we don't finish
the script to run the kill.

Also set KRB5_CONFIG in the smbd process again, as we do actually need
this...

Andrew Bartlett
(This used to be commit 24ca1e180c)
2007-10-10 14:50:57 -05:00
Andrew Bartlett
ed4df962f4 r22290: Fedora DS is incredibly picky about newlines...
(This used to be commit 0e80f456e8)
2007-10-10 14:50:57 -05:00
Jelmer Vernooij
fabbcb6104 r22289: Another fedora ds fix
(This used to be commit 25a7eabc6b)
2007-10-10 14:50:57 -05:00
Andrew Bartlett
15416dc72e r22288: Somehow, Jelmer lost a few capital letters. I'll send him a new batch.
Andrew Bartlett
(This used to be commit 5e9f7805f0)
2007-10-10 14:50:56 -05:00
Jelmer Vernooij
5dc27b3681 r22287: Fix some issues in fedora ds code.
(This used to be commit e820f1d0f3)
2007-10-10 14:50:56 -05:00
Jelmer Vernooij
2c247996a9 r22286: Import branch that converted the Samba4 test target code to perl and makes the code a bit clearer.
(This used to be commit e3ba5ced04)
2007-10-10 14:50:56 -05:00
Jelmer Vernooij
7836c2d101 r22260: Use single script for creating Samba 4 test environments. Add first test
that uses the member environment.
(This used to be commit 9e3142a1bb)
2007-10-10 14:50:49 -05:00
Andrew Bartlett
b0cbe9ae4a r22235: Test kinit, and PKINIT functionality by means of a new blackbox test.
Andrew Bartlett
(This used to be commit 7f27bfc356)
2007-10-10 14:50:41 -05:00
Andrew Bartlett
3f7d52d538 r22233: Allow 'REALM' as a global environment variable in the tests.
Set the default socket_wrapper interface inside the test env setup, so
it actually stays (fixes LOCAL-SOCKET failures).

Andrew Bartlett
(This used to be commit 783c57bf1c)
2007-10-10 14:50:41 -05:00
Stefan Metzmacher
d84fcaa76c r22197: fix formating
metze
(This used to be commit 31c9bd4bf2)
2007-10-10 14:50:03 -05:00
Andrew Bartlett
f1b2b43ba5 r22187: Test kerberos logins in the smbclient blackbox tests, including with a
machine account.

Andrew Bartlett
(This used to be commit 16a2bb87a8)
2007-10-10 14:50:01 -05:00
Jelmer Vernooij
f725377346 r22185: Initial work on a 'member' test environment'.
(This used to be commit 9e0032be03)
2007-10-10 14:49:59 -05:00
Andrew Bartlett
f5bcf91e22 r22180: Re-add testing of the CIFS backend.
Andrew Bartlett
(This used to be commit d76afe147c)
2007-10-10 14:49:58 -05:00
Andrew Bartlett
5904bbf3d9 r22177: Restore the PIDDIR mapping for the client 'pid directory', as this is
(ab)used for messaging.

Andrew Bartlett
(This used to be commit 0a721c3193)
2007-10-10 14:49:58 -05:00
Andrew Bartlett
f3303bc8f6 r22170: To get the smbclient blackbox test to pass again, we need to get the
private dir to contain a valid machine account.

It isn't really valid it use the DC's account any more, so extend this
script to also join the domain.  This nicely tests out some previously
untested code too!

Andrew Bartlett
(This used to be commit 12f4e6033e)
2007-10-10 14:49:57 -05:00
Andrew Bartlett
f57ebf3f12 r22168: Ensure we actually run all the transports for the slow tests
(otherwise we miss tests).

Andrew Bartlett
(This used to be commit 216bf28a8d)
2007-10-10 14:49:57 -05:00
Andrew Bartlett
5f11116a6b r22167: This seems to get Fedora DS to run the tests again.
Andrew Bartlett
(This used to be commit b893c63183)
2007-10-10 14:49:56 -05:00
Andrew Bartlett
c41fe665e4 r22162: get the TEST_LDAP mode working again
Andrew Bartlett
(This used to be commit 529575d07a)
2007-10-10 14:49:55 -05:00
Andrew Bartlett
7b88696bed r22161: Clarify exactly where the socket_wrapper should be handled (early),
and ensure that $prefix exists before it tries to create $prefix/w.

This should fix the build farm.  Perhaps we should have a rm -rf
$prefix at the start of this script, as that would have found the
problem, but I want to be careful about that...

Andrew Bartlett
(This used to be commit a230261e83)
2007-10-10 14:49:55 -05:00
Andrew Bartlett
dbfb32ffe5 r22160: Only use test environment names that actually exist (get make
quicktest to pass).

Ensure that when we fail on the build farm, this ends up in the total
failures.

I think having the 2 different functions for running the tests is just
asking for this kind of failure.  The build farm should be a
presentation detail, and not alter the test behaviour.

There is still a gremlin in there, we will fail horribly on the farm,
but not on local tests...

Andrew Bartlett
(This used to be commit 519f3c0575)
2007-10-10 14:49:55 -05:00
Jelmer Vernooij
e338b4b47b r22156: - Lazy evaluate variable names.
- Don't set up environments until necessary

- Add --resetup-environment option

- Add 'none' environment
(This used to be commit ed0410309b)
2007-10-10 14:49:55 -05:00
Jelmer Vernooij
892c8cd1b4 r22137: Actually use client.conf, defer more code as far as possible.
(This used to be commit 9399123a72)
2007-10-10 14:49:54 -05:00
Jelmer Vernooij
3ff1625f1f r22134: Create different smb.conf file for the client side. This should make use with Samba 3 or windows easier as well as environments.
(This used to be commit a32cdc06c3)
2007-10-10 14:49:54 -05:00
Jelmer Vernooij
51fd156081 r22133: Don't push parameters into environment until necessary.
(This used to be commit 290815d180)
2007-10-10 14:49:53 -05:00
Andrew Bartlett
a16989b1e9 r22121: The RPC-CRACKNAMES test now passes against Samba4. This should help
the code coverage...

Andrew Bartlett
(This used to be commit 394c863a3f)
2007-10-10 14:49:53 -05:00
Andrew Bartlett
bfc4053178 r22088: export PIDDIR to make the smbd pid show in 'make testenv' again.
(This used to be commit 9e95871b3a)
2007-10-10 14:49:50 -05:00
Jelmer Vernooij
cb04f015ee r22077: Import only necessary test variables, more refactoring.
(This used to be commit 150bb2238e)
2007-10-10 14:49:48 -05:00
Andrew Bartlett
bc8474b5cc r22076: Fill in short and long domain names into the generated krb5.conf
(This used to be commit c366610cbc)
2007-10-10 14:49:48 -05:00
Andrew Bartlett
6e3887569f r22075: Configure the bitwise match plugin, until it becomes accepted upstream.
Andrew Bartlett
(This used to be commit ce080b107c)
2007-10-10 14:49:47 -05:00
Jelmer Vernooij
e3e505625d r22074: More refactoring.
(This used to be commit b0e0c5cb94)
2007-10-10 14:49:47 -05:00
James Peach
051e4b25cf r22034: Use builddir and srcdir instead on samba_builddir and samba_srcdir.
(This used to be commit 8b19b8bfbe)
2007-10-10 14:49:43 -05:00
Andrew Bartlett
fdd4c5f879 r21971: Fill in some more values in config files from variables, so we can
better setup multiple environments.

Run the mk-keyblobs script before we need variables it defines.

Andrew Bartlett
(This used to be commit 448ffc68f3)
2007-10-10 14:49:40 -05:00
Andrew Bartlett
c95d468046 r21970: Ensure that Fedora DS can be shut down correctly with the stop script:
This needs the pid file to be in the right spot.

Andrew Bartlett
(This used to be commit cf9993a309)
2007-10-10 14:49:39 -05:00
Jelmer Vernooij
86d77746db r21910: Clean up some unused functions.
(This used to be commit 36cd3406db)
2007-10-10 14:49:38 -05:00
Jelmer Vernooij
2fca3f9082 r21909: Merge some of my recent improvements to the test infrastructure:
- Allow tests to specify what environment they need to run in (dc and none are thecurrent supported ones).

- Move more Samba4-specific code out of the common code
(This used to be commit dbe9de1028)
2007-10-10 14:49:37 -05:00
Andrew Bartlett
8afe4e7f3c r21836: Assume that if an OpenLDAP system is 'modular' then everything is a
module, so we have to bring in syncprov too.

Andrew Bartlett
(This used to be commit b9d06c70ad)
2007-10-10 14:49:35 -05:00
Andrew Bartlett
67e22aa6ff r21790: Setup the socket_wrapper_dir when we set the environment variable.
Andrew Bartlett
(This used to be commit 5c07dbd248)
2007-10-10 14:49:26 -05:00
Andrew Bartlett
7b706c7091 r21789: We do actually need this, to get a contextCSN attribute, which we need
for USN support.

Andrew Bartlett
(This used to be commit 5f36350243)
2007-10-10 14:49:26 -05:00
Andrew Bartlett
7a9f31a926 r21771: We just don't need to test this on more than one transport.
Andrew Bartlett
(This used to be commit c55edacba5)
2007-10-10 14:49:24 -05:00
Andrew Bartlett
35a606378d r21751: These 2 tests pass for me, so add them to the standard test script.
Andrew Bartlett
(This used to be commit 8a5b3067e9)
2007-10-10 14:49:23 -05:00
Andrew Bartlett
45be80844e r21743: Always use the 'escaped' LDAPI path.
Wait around for the server to start, so we don't try to contact it
during it's starup phase.

Andrew Bartlett
(This used to be commit f484b0a924)
2007-10-10 14:49:22 -05:00
Andrew Tridgell
0012f7509a r21742: reenable the smbclient test now that the d_printf bug is fixed
(This used to be commit f483f5b26a)
2007-10-10 14:49:22 -05:00
Andrew Bartlett
d500181515 r21741: Like starting smbd, ensure we have acutally started slapd, and it is
listening, before we continue.

Andrew Bartlett
(This used to be commit 171540e06a)
2007-10-10 14:49:21 -05:00
Andrew Bartlett
41a72a506f r21739: Make it easy to change the log level for the slapd processes, and have
the logs go to a file.

Andrew Bartlett
(This used to be commit 9aaa193197)
2007-10-10 14:49:21 -05:00
Andrew Tridgell
b0b31f52f7 r21735: skip the smbclient test until jelmer can take a look at it. The
current test makes no sense with the new test system. For example, it
does "mkdir bla" then "cd bla" then "cd ..", but it now does these as
separate smbclient commands, which makes no sense at all. It even
seems to try to run them in parallel???

The test fails (segfault, plus lots of errors), but gets reported as a
success
(This used to be commit 9e3bbdee50)
2007-10-10 14:49:20 -05:00
Jelmer Vernooij
eaa02e4b54 r21733: Merge testenv back into core selftest.pl
(This used to be commit 4b78ed3a60)
2007-10-10 14:49:20 -05:00
Jelmer Vernooij
8fdbf34ea7 r21732: Use smbtorture for enumerating tests.
(This used to be commit f6aa921521)
2007-10-10 14:49:20 -05:00
Jelmer Vernooij
f91f57b749 r21730: Reintroduce summary for testenv, remove old (no longer used) file.
(This used to be commit 0140aa5fd9)
2007-10-10 14:49:19 -05:00
Andrew Bartlett
904c03abc4 r21728: Perhaps we don't need this on recent OpenLDAP servers. This overlay
is depricated.

Andrew Bartlett
(This used to be commit 32e39b377a)
2007-10-10 14:49:19 -05:00
Andrew Bartlett
0fa6e86b57 r21721: Push the 'Success! Your new directory server instance was created'
message to stderr.

Andrew Bartlett
(This used to be commit 0b8b3f6671)
2007-10-10 14:49:18 -05:00
Andrew Bartlett
6376a474c7 r21720: Try to make 'TEST_LDAP=yes make test' work again. These recent
changes seem to have been lost in the merge, and some variables were
not yet exported.

Andrew Bartlett
(This used to be commit ee9d9fb6c0)
2007-10-10 14:49:18 -05:00
Jelmer Vernooij
ac9bb2e4fb r21716: Report status in a way the build farm recognizes.
(This used to be commit 8d775e87b5)
2007-10-10 14:49:17 -05:00
Jelmer Vernooij
70e6a8bfec r21713: Redirect stderr output to stdout.
(This used to be commit a5000b286d)
2007-10-10 14:49:17 -05:00
Jelmer Vernooij
15d4047d06 r21712: Run tdb stress test.
(This used to be commit e480beb956)
2007-10-10 14:49:16 -05:00
Jelmer Vernooij
804ac30704 r21709: Add a list of tests that should be skipped rather than ad-hoc test skipping in various places.
(This used to be commit 01befd5211)
2007-10-10 14:49:16 -05:00
Jelmer Vernooij
72d88d158a r21707: Finally merge my (long-living) perlselftest branch.
This changes the main selftest code to be in perl rather than in shell script.

The selftest script is now no longer a black box but a regular executable that takes
--help.

This adds the following features:

 * "make test TESTS=foo" will run only the tests that match the regex "foo"
 * ability to deal with expected failures. the suite will not warn about tests
   that fail and are known to fail, but will warn about other failing tests and
   tests that are succeeding tests but incorrectly marked as failing.
 * ability to print a summary with all failures at the end of the run

It also opens up the way to the following features, which I hope to implement later:
 * "environments", for example having a complete domains with DCs and domain members
 in a testenvironment
 * only set up smbd if necessary (not when running LOCAL tests, for example)
 * different mktestsetup scripts per target. except for the mktestsetup script, we can
   use the same infrastructure for samba 3 or windows.
(This used to be commit 38f867880b)
2007-10-10 14:49:15 -05:00
Jelmer Vernooij
d18afd6aee r21701: Fix ejs tests.
(This used to be commit e4cf8f1dea)
2007-10-10 14:49:15 -05:00
Jelmer Vernooij
000a094318 r21700: Run mktestsetup as an external program. This guarantees that it can be used for other selftest implementations (in particular the perl one I've been working on).
(This used to be commit aa29907327)
2007-10-10 14:49:15 -05:00
Andrew Bartlett
6bca66d7d1 r21696: Run the RPC-COUNTCALLS test to try and walk some of the NDR layer for
routines for which we don't have any tests.

Andrew Bartlett
(This used to be commit e5b9bdf037)
2007-10-10 14:49:14 -05:00
Andrew Bartlett
32cdb5aa31 r21692: Test with LDAP, but without the non-block testing. This is not
compatible with the TLS layer at the moment.

https://bugzilla.samba.org/show_bug.cgi?id=4431

Andrew Bartlett
(This used to be commit 1e401286f9)
2007-10-10 14:49:13 -05:00
Andrew Bartlett
eb3d3fb27a r21689: Try to walk a bit more of the param/loadparm.c functions, as well as
validating that we have a correct configuration before we even start
testing.

Andrew Bartlett
(This used to be commit c399b20b44)
2007-10-10 14:49:12 -05:00
Andrew Bartlett
112e520073 r21687: Always test LDAP and LDAPS
(This used to be commit e830b81596)
2007-10-10 14:49:11 -05:00
Andrew Bartlett
737d24c9fc r21686: Do enable TLS, as we have solved the key setup problems, and we need
to get the TLS code covered.

Andrew Bartlett
(This used to be commit 4aa928dac3)
2007-10-10 14:49:11 -05:00
Jelmer Vernooij
d693c2707b r21685: Add some unit tests for the registry utility functions.
(This used to be commit 0ae6d18ebe)
2007-10-10 14:49:11 -05:00
Jelmer Vernooij
1ec8f79bae r21680: Reenable CLDAP test
(This used to be commit c6dfc90daf)
2007-10-10 14:49:09 -05:00
Jelmer Vernooij
e8fe61e7ae r21679: Disable upgrade test for now, I can't get it to work.
(This used to be commit 4929c07261)
2007-10-10 14:49:09 -05:00
Jelmer Vernooij
a4a9772e2c r21677: Run some of the other ldap tests, too
(This used to be commit b8f43e1eb1)
2007-10-10 14:49:09 -05:00
Jelmer Vernooij
2de3bbbdb0 r21676: Run more NET tests
(This used to be commit 06eb2faebb)
2007-10-10 14:49:08 -05:00
Jelmer Vernooij
a42b35a4c5 r21675: Run some more of the NET tests.
(This used to be commit 778a150f35)
2007-10-10 14:49:08 -05:00
Jelmer Vernooij
99fb785ea1 r21673: Fix Samba 3 data read tests. I can't figure out why the upgrade one is broken, so that one is still disabled.
(This used to be commit ef794f03d5)
2007-10-10 14:49:08 -05:00
Andrew Bartlett
b9df742fb4 r21649: Update self test scripts to start Fedora DS. This requires current
Fedora DS CVS, plus changes to split up 00core.ldif.

Now we 'just' need to work to make the tests pass...

Andrew Bartlett
(This used to be commit d214cb1ccf)
2007-10-10 14:49:04 -05:00
Andrew Tridgell
084978b6b4 r21618: an attempt to fix the problem with lcov and yacc generated C code
(This used to be commit e9d17b5ba0)
2007-10-10 14:49:03 -05:00
Andrew Tridgell
3d61a1bbdd r21571: added RPC-HANDLES test to make test
(This used to be commit 73da5e368b)
2007-10-10 14:48:58 -05:00
Andrew Bartlett
ad3b40d258 r21554: Use a snippet from tridge's junkcode to cause us to wait for smbd to
exit.

If we kill smbd right away, we can interrupt the gcov data file
writeout.  Instead, we now wait up to 20 seconds for the process to
exit, before sending it a kill -9.

Andrew Bartlett
(This used to be commit c547bce3d3)
2007-10-10 14:48:56 -05:00
Andrew Tridgell
60fd088c48 r21535: - fixed a crash in the RAW-ACLS test. When a dcerpc_pipe is created
using the pattern in the clilsa code, it didn't fill in the p->binding
structure. This affects nearly all users of dcerpc_pipe_open_smb(), so
the simplest fix is to ensure that dcerpc_pipe_open_smb() initialises
the binding if its not already there.

- re-enable the RAW-ACLS test
(This used to be commit d8875c286d)
2007-10-10 14:48:54 -05:00
Brad Henry
c7e06e88ae r21528: This file gets called by testit(), so it shouldn't call testit().
NET tests against Windows weren't getting run, testit() here just created a recipe.
(This used to be commit c71dee3402)
2007-10-10 14:48:52 -05:00
Brad Henry
59d5e6a1b0 r21522: Stop passing the VM config file path to wintest_2k3_dc.sh on the command line.
Forgot this one in the last commit.
(This used to be commit 2982d9e90c)
2007-10-10 14:48:50 -05:00
Brad Henry
74e23c7e7a r21521: Add missing quotes around shell variables which could have spaces.
Stop passing the VM config file path to wintest_2k3_dc.sh on the command line as it is now properly passed through the environment.

Windows tests, including the DC tests found in test_w2k3.sh should work properly with 'make wintest' and a configured VMware environment.
These tests are executed on build-farm host bnhtest.
(This used to be commit 7496a28b43)
2007-10-10 14:48:50 -05:00
Brad Henry
f3ec806997 r21498: Putting the second parameter in quotes so that we accept spaces in the config file path.
(This used to be commit 7facfe9247)
2007-10-10 14:48:45 -05:00
Brad Henry
81adf162a8 r21495: Pass the VM .vmx file path to wintest_2k3_dc.sh on the command line.
(This used to be commit 06bf94781e)
2007-10-10 14:48:44 -05:00
Brad Henry
48b0dabdba r21494: Fix 'make wintest' to support command-line changes to 'vm-get-ip.pl' and the revertsnapshot() shell function.
Restructure existing tests to work with the recent build farm changes.
Added windows DC testing to 'make wintest'.
Some improvements and generalization to the way errors are handled.
(This used to be commit de9687404e)
2007-10-10 14:48:44 -05:00
Brad Henry
7819f9b668 r21475: Updated vm_get_ip.pl to read the name of the environment variable containing the VM path from the command line.
wintest_2k3_dc.sh is a new script which will run a group of tests against a Windows 2003 DC.
The group of tests to run should be passed in on the command line.
These tests were taken from the source/script/tests/test_win2k3.sh script.

tests_win2k3_dc.sh is a new script intended to be called by 'make wintest_dc' (patch to source/main.mk forthcoming).
This is intended to provide the basis for Windows 2003 DC testing in the build farm.

In order to use these tests, you should have a DC setup as a VM in VMware server.

This process is not automated yet, but can be done by following a few steps:

1. Prepare a Windows 2003 VM in VMware Server by downloading and extracting:
		svn://svn.samba.org/home/svn/samba/branches/SOC/bnh/vm_setup.tar.gz
	and following the instructions in the README file.

2. Copying the following file onto the filesystem of the VM configured in step 1:
		svn://svn.samba.org/home/svn/samba/branches/SOC/bnh/dcpromo_2k3dc_newdomain.answerfile.txt
	and use it to promote the VM.
	For example: "dcpromo /answer:<path to answerfile>"

3. On the system you are testing from, set the environment variable WINTESTCONF, and SRCDIR.
	WINTESTCONF should point to the path of a test_win.conf file modified for your environment.
	There's a default copy in source/script/tests/win/test_win.conf.
	SRCDIR should point to the base of your Samba 4 source tree.

At that point, you should be able to run wintest_2k3_dc.sh by passing a group of tests at the command line.
For example: source/script/tests/win/wintest_2k3_dc.sh RPC-DRSUAPI

Sorry for the long-winded commit message!
(This used to be commit a0d1c690de)
2007-10-10 14:48:40 -05:00
Brad Henry
23c36460e1 r21473: Added new parameters to test_win.conf that apply only to the DC tests.
Made the restore_snapshot() routine in wintest_functions.sh more robust.
This change would have broken the existing windows tests, if they weren't already broken.

Will fix those once the windows DC tests are committed and working in the build farm.
(This used to be commit 76c6c5b8de)
2007-10-10 14:48:40 -05:00
Stefan Metzmacher
a9a13949d8 r21466: run the LDAP-UPTODATEVECTOR test in make test
metze
(This used to be commit 74ded55787)
2007-10-10 14:48:40 -05:00
Jelmer Vernooij
0515f728e6 r21433: Get rid of the COM support code - it's not used and unmaintained. We can
always bring it back if we need to. This code was getting in the way while
refactoring.

Add some tests for TDR.

Get rid of typedef in lib/registry/tdr_regf.idl and fix the
TDR code to be able to deal with it.
(This used to be commit 1ad0f99a43)
2007-10-10 14:48:33 -05:00
Andrew Bartlett
b9f11e3bc9 r21071: Move some of the key path variables into the mk-keyblobs.sh script.
Andrew Bartlett
(This used to be commit 1c466c6d6f)
2007-10-10 14:44:27 -05:00
Andrew Bartlett
ae174faf36 r21069: Try to split up the mktestsetup.sh script into parts to deal with each
LDAP implementation, and another to hold the key blobs.

Also fix the OpenLDAP test.

Andrew Bartlett
(This used to be commit ec511c592b)
2007-10-10 14:44:27 -05:00
Andrew Bartlett
5e12e00249 r21068: Code to configure, start and stop Fedora DS.
We can't actually use it, as we are stuck inside our socket_wrapper
network, and can't talk to it.

Andrew Bartlett
(This used to be commit bd564da6b9)
2007-10-10 14:44:27 -05:00
Jelmer Vernooij
f7fb1e442d r21066: Fix the build (uninitialised variable).
(This used to be commit 54b6378760)
2007-10-10 14:44:26 -05:00
Jelmer Vernooij
cf09c00c4e r21055: Fix executable bit.
(This used to be commit 7512270ffa)
2007-10-10 14:44:26 -05:00
Andrew Bartlett
9676f4ce4c r21043: Work towards allowing Fedora DS to backend Samba4 in 'make test'.
Andrew Bartlett
(This used to be commit 92cea0b790)
2007-10-10 14:44:24 -05:00
Jelmer Vernooij
2096b36411 r21038: Move commands to distclean target
(This used to be commit 6713945fba)
2007-10-10 14:44:23 -05:00
Jelmer Vernooij
96c3cb957b r21032: Skip two more tests
(This used to be commit 65cb965f11)
2007-10-10 14:44:22 -05:00
Jelmer Vernooij
6676d7cfc7 r21031: Skip some tests that were not listed previously.
(This used to be commit 7b160f18b2)
2007-10-10 14:44:22 -05:00
Jelmer Vernooij
32dd550d19 r21030: whoops, fix incorrect regex
(This used to be commit 2c6cc617f9)
2007-10-10 14:44:22 -05:00
Jelmer Vernooij
37a13964ef r21029: - Remove now unused failure checking code
- Use --list option for smbtorture for local and nbt tests as well
(This used to be commit 053d5a40bc)
2007-10-10 14:44:22 -05:00
Jelmer Vernooij
5c847a00a7 r21028: Generate list of tests rather than maintaining it manually.
(This used to be commit 7de4727ceb)
2007-10-10 14:44:21 -05:00
Andrew Bartlett
a3c2bc4ba0 r21026: Add a helpful script to do the things we need to do to make a release
tarball.

Andrew Bartlett
(This used to be commit 5975229043)
2007-10-10 14:44:21 -05:00
Jelmer Vernooij
48bb9bc6cd r21017: Actually run tests during test phase rather than when generating the recipe.
(This used to be commit b975ce3a47)
2007-10-10 14:44:20 -05:00
Andrew Bartlett
0eea5a66b4 r20997: Add in more certificate and key blobs, to enable PKINIT.
To automaticly test this, we need to decide if we should ship kinit
(and possibly and hxtool).

Andrew Bartlett
(This used to be commit 413df7114e)
2007-10-10 14:44:19 -05:00
Jelmer Vernooij
fe938ca91f r20967: Allow pidl tests to work with gcov
(This used to be commit 9da63e362c)
2007-10-10 14:44:04 -05:00
Jelmer Vernooij
c471abbcfe r20963: remove unused functions, run LOCAL-TDR by default
(This used to be commit 0f34c67fff)
2007-10-10 14:44:04 -05:00
Jelmer Vernooij
615895332a r20830: merge mgmt work
(This used to be commit 3cc299dbbe)
2007-10-10 14:43:37 -05:00
Jelmer Vernooij
6688846ee1 r20822: Fix total failure counting.
(This used to be commit e4691447c4)
2007-10-10 14:43:36 -05:00
Jelmer Vernooij
10e1a80b9e r20756: Update to use generated recipes.
(This used to be commit 842637f78b)
2007-10-10 14:40:45 -05:00
Jelmer Vernooij
0eb967cd41 r20755: Add progress indicator to test runner
(This used to be commit bbe00636a9)
2007-10-10 14:40:44 -05:00
Jelmer Vernooij
5ae1175460 r20754: Simplify code for calculating total number of failed tests.
(This used to be commit f288ca5f68)
2007-10-10 14:40:44 -05:00
Jelmer Vernooij
727748bee8 r20750: Use files in script/tests to build a recipe rather than running the tests immediately.
(This used to be commit d31d16e4eb)
2007-10-10 14:40:42 -05:00
Jelmer Vernooij
70dbcf6d69 r20748: Add file I forgot to commit
(This used to be commit 2794af5726)
2007-10-10 14:40:36 -05:00
Jelmer Vernooij
f60f9de6a8 r20747: Move cifsdd to blackbox section
(This used to be commit 96ac1c62ee)
2007-10-10 14:40:36 -05:00
Jelmer Vernooij
d9665a737b r20746: Don't report each individual test in test_smbclient as a single testsuite.
Create separate directory for blackbox tests.
(This used to be commit 7e6357f213)
2007-10-10 14:40:36 -05:00
Jelmer Vernooij
1d1315adcd r20739: Add more command-line options.
(This used to be commit 8ca927f888)
2007-10-10 14:40:35 -05:00
Jelmer Vernooij
1e29e06d80 r20737: Add option parsing.
(This used to be commit b1719ebf38)
2007-10-10 14:40:35 -05:00
Jelmer Vernooij
5f450fbd9a r20696: Print mktestsetup errors to stderr rather than to either stderr or stdout.
Instead, print variables for the setup created to mktestsetup's stdout.
(This used to be commit b7fd9645f5)
2007-10-10 14:40:24 -05:00
Jelmer Vernooij
c827955d80 r20693: Add reimplementation of selftest in perl. Once this has been tested
more properly, I hope to use this as a replacement for the existing
file.
(This used to be commit 1e013aba76)
2007-10-10 14:40:23 -05:00
Derrell Lipman
d0d846cd9b r20519: Web Application Framework
- No path given to web server means use old scripts (missed check-in)

- Build Web Application (qooxdoo stuff) from autogen.sh since python isn't
  available or is differently-configured on various build-farm machines

- Don't continually check in generated files

- Properly identify SWAT "Statistics" module as "Status and Statistics"
(This used to be commit 9d89b7663a)
2007-10-10 14:36:10 -05:00
Jelmer Vernooij
ce5581a85e r20509: Warn about the fact that no tests have been run rather than showing division by
zero errors.
(This used to be commit 62f55b3394)
2007-10-10 14:36:03 -05:00
Derrell Lipman
43470b5ec3 r20444: WEB Application framework / SWAT.
We're now at the stage where the web application framework should build and
install automatically.

Derrell
(This used to be commit 0201baef46)
2007-10-10 14:30:39 -05:00
Stefan Metzmacher
66afa10037 r20167: reenable the ejsnet tests
metze
(This used to be commit 1e4289fae4)
2007-10-10 14:29:17 -05:00
Rafal Szczesniak
32a0486739 r20164: Disable the test till tomorrow when I find out what caused
the crash.

rafal
(This used to be commit 5d7908038b)
2007-10-10 14:29:16 -05:00
Andrew Bartlett
d471e52d23 r20149: Remove the smb.conf distinction between PDC and BDC. Now the correct
way to setup a Samba4 DC is to set 'server role = domain controller'.

We use the fSMORoleOwner attribute in the base DN to determine the PDC.

This patch is quite large, as I have corrected a number of places that
assumed taht we are always the PDC, or that used the smb.conf
lp_server_role() to determine that.

Also included is a warning fix in the SAMR code, where the IDL has
seperated a couple of types for group display enumeration.

We also now use the ldb database to determine if we should run the
global catalog service.

In the near future, I will complete the DRSUAPI
DsGetDomainControllerInfo server-side on the same basis.

Andrew Bartlett
(This used to be commit 67d8365e83)
2007-10-10 14:29:15 -05:00
Jelmer Vernooij
f98b34d0f2 r19880: Eliminate duplicates in the output.
(This used to be commit 2a8c8e1f2d)
2007-10-10 14:28:30 -05:00
Jelmer Vernooij
4a127c679d r19877: Add simple script for summarizing subunit testresults.
(This used to be commit c38705ef42)
2007-10-10 14:28:30 -05:00
Jelmer Vernooij
60e7b4d995 r19863: Create -uninstalled.pc files. This should reenable compilation and running
of the pidl testsuite as part of the testsuite.
(This used to be commit db237ad52f)
2007-10-10 14:28:27 -05:00
Jelmer Vernooij
0b4bd70616 r19862: Fix list concatenation
(This used to be commit a26da5182e)
2007-10-10 14:28:27 -05:00
Jelmer Vernooij
1aec9389ed r19861: Add simple pkg-config replacement.
(This used to be commit a42220c356)
2007-10-10 14:28:26 -05:00
Stefan Metzmacher
a4957315d8 r19723: don't use [,],(,) in test names to make the build-farm output happy
metze
(This used to be commit 8a0a92e2dc)
2007-10-10 14:28:14 -05:00
Rafal Szczesniak
52f53078bf r19708: add a script for running net tests separately
rafal
(This used to be commit 0f913ef240)
2007-10-10 14:28:12 -05:00
Jelmer Vernooij
9d7856122e r19680: Allow specifying basedir for test data.
Create temporary directories in base directory.
(This used to be commit f111feb1d2)
2007-10-10 14:25:30 -05:00
Jelmer Vernooij
273d5f8666 r19671: Fix remaining unresolved symbols in shared library build.
Fix starting tests in shared library build.
(This used to be commit 3b65a0d6e4)
2007-10-10 14:25:27 -05:00
Andrew Bartlett
f722b07438 r19633: Merge to lorikeet-heimdal, removing krb5_rd_req_return_keyblock in favour of a more tasteful replacement.
Remove kerberos_verify.c, as we don't need that code any more.
Replace with code for using the new krb5_rd_req_ctx() borrowed from
Heimdal's accecpt_sec_context.c

Andrew Bartlett
(This used to be commit 13c9df1d4f)
2007-10-10 14:25:21 -05:00
Andrew Bartlett
8b91594e09 r19603: Make it easier to control the debug level of smbd.
Ensure that we don't accept kerberos logins without a PAC (to ensure
we actually produce a PAC in the KDC)

Andrew Bartlett
(This used to be commit 5fda92783f)
2007-10-10 14:25:02 -05:00
Andrew Bartlett
ac43520c5a r19590: Make it less noisy to run the session_key test outside 'make test',
for example against a remote host.

Andrew Bartlett
(This used to be commit 1c7cb1314b)
2007-10-10 14:24:58 -05:00
Andrew Bartlett
d1fd7fb79a r19589: Because we what we really wanted was coverage of seal and non-seal,
rather than validate or not, change $VALIDATE to bigendian in the
session_key test.

Andrew Bartlett
(This used to be commit 4f79f3b0c4)
2007-10-10 14:24:58 -05:00
Jelmer Vernooij
2eeb0e5f28 r19569: Require that all public header files have a destination path. Fix
places where this was currently not the case.
(This used to be commit 3894497a23)
2007-10-10 14:24:53 -05:00
Andrew Bartlett
f3405430db r19567: Make it easier to control the debug level in the test scripts, by not
specifying it on the smbd command line.

Andrew Bartlett
(This used to be commit 8b71f4b31f)
2007-10-10 14:24:53 -05:00
Jelmer Vernooij
4fa24df98d r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
works again now, by specifying --enable-dso to configure.
(This used to be commit 7a01235067)
2007-10-10 14:24:41 -05:00
Andrew Tridgell
863bd921f2 r19503: it only makes sense to run the LOCAL-ICONV test on 'known good'
platforms as it tests the system iconv with the built in iconv. Limit
the test to Linux to avoid spurious errors.
(This used to be commit 9e1a8475ca)
2007-10-10 14:24:40 -05:00
Brad Henry
c309e2e597 r19476: small typo.
(This used to be commit 51580208a7)
2007-10-10 14:21:39 -05:00
Brad Henry
11c6ecc8be r19475: fixed a couple of typos.
(This used to be commit f2df3a90f1)
2007-10-10 14:21:39 -05:00
Brad Henry
e0dfd66361 r19474: Move the Samba server / Windows client test to its own script.
(This used to be commit 908b483ed0)
2007-10-10 14:21:38 -05:00
Brad Henry
622928924f r19473: Add NET tests in their own script. Run the same set of tests that 'make test' does.
Comment those tests which don't pass.
(This used to be commit 7d382b175b)
2007-10-10 14:21:38 -05:00
Brad Henry
9c83f44fa1 r19472: Move rpc tests to their own scripts. Run the same tests as 'make test' does.
Comment those tests that don't pass.
(This used to be commit 046b38817a)
2007-10-10 14:21:38 -05:00
Brad Henry
2fa394a51a r19471: Move BASE and RAW tests to their own scripts. Run the same set of tests as 'make test' does, at least for those that pass.
Comment the tests that don't pass.
(This used to be commit 33760cfe94)
2007-10-10 14:21:37 -05:00
Brad Henry
ac83f285a1 r19470: Move common windows test functions into their own script wintest_functions.sh, and remove them from the main windows test script.
(This used to be commit 5871960928)
2007-10-10 14:21:37 -05:00