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

251 Commits

Author SHA1 Message Date
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 Tridgell
b038aca5c8 s4-loadparm: removed "setup directory" option
the correct setup directory is known at both build time and install
time using dyn_SETUPDIR, so we no longer have any need to override it

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Andrew Tridgell
6484da4859 s4-test: allow make test to work from top level directory
this fixes the path assumptions in Samba4 make test to allow it to
work from the top level directory.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00
Jeremy Allison
04987bd843 Explicitly set "nmbd: socket dir" in the test environment.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Jan  8 07:17:22 CET 2011 on sn-devel-104
2011-01-08 07:17:22 +01:00
Stefan Metzmacher
3b0425c8c7 selftest: setup $ENV{TEST_DATA_PREFIX}
metze
2010-12-27 15:37:55 +01:00
Jelmer Vernooij
002acbbbd0 selftest: Support multiple instances of $LISTOPT. 2010-12-11 18:48:05 +01:00
Jelmer Vernooij
5f6dd9a608 selftest: Check exit code when listing tests. 2010-12-10 03:04:06 +01:00
Jelmer Vernooij
a957d8c80f selftest: Rename $LIST to $LISTOPT for consistency with testrepository. 2010-12-10 03:04:06 +01:00
Jelmer Vernooij
e6974b0ff0 selftest: add --list option. 2010-12-10 03:04:06 +01:00
Jelmer Vernooij
34adc745ef selftest: Document --testenv in --help output, remove documentation for
now obsolete --analyse-cmd.
2010-12-10 03:04:06 +01:00
Jelmer Vernooij
7f32c21ef0 selftest: Even if setting up an environment failed, the next tests may
still work.
2010-11-21 23:12:03 +01:00
Andrew Tridgell
43f7c9ca26 s4-test: we don't need to set LDB_MODULES_PATH any more 2010-11-01 18:55:19 +11:00
Andrew Tridgell
a00657db75 s4-test: don't override modules dir
it is set correctly during the build
2010-10-30 23:49:02 +11:00
Andrew Tridgell
ac8e910686 s4-modules: remove LD_SAMBA_MODULE_PATH
this isn't needed now that we automatically get the module path right
in our build and install trees

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-30 23:49:01 +11:00
Andrew Tridgell
75d57dbc25 selftest: terminate selftest if we can't setup the environment 2010-10-19 14:53:39 +11:00
Matthieu Patou
b1a13e5e14 selftest: correct the import of Time::HighRes
The "use" is always evaluated first even if enclosed into a if. So
on plateform without Time::Hires (ie. sun8 in the build farm). This
leads to an error.

Instead we use the synthax require Module + Module->import("function")
2010-10-18 19:09:07 +00:00
Andrew Tridgell
dfb664a182 s4-selftest: support 'make testenv SCREEN=1'
this can be used to start a test envioronment in screen windows.

Use:

  make testenv SCREEN=1 SELFTEST_TESTENV=dc

to launch just one environment (in this case, "dc")
2010-10-02 21:11:53 -07:00
Jelmer Vernooij
fbee3586fd selftest: Let selftest provide the tempdir, rather than creating it as sideeffect of tests.py. 2010-10-01 01:31:06 +00:00
Jelmer Vernooij
36ffe4f467 selftest: Abort early on SIGPIPE. 2010-09-28 09:12:39 +02:00
Jelmer Vernooij
ba5d034d53 selftest: If a testsuite is killed by a signal, let selftest die. 2010-09-25 12:20:56 -07:00
Andrew Bartlett
0bc3e15931 selftest Don't run 'speed' tests for very long
'make test' is too long, and the main thing we need with these
tests is to ensure they don't segfault - there is no need to benchmark
every box in the build farm, and we have no 'fail' metric in any case.

Andrew Bartlett
2010-09-24 09:25:44 +10:00
Jelmer Vernooij
e74b7091cd selftest: Pass prefix to setup_env function. 2010-09-23 11:36:12 -07:00
Jelmer Vernooij
4c3985b584 selftest: Use variable for clientdir. 2010-09-23 11:36:12 -07:00
Jelmer Vernooij
20c95cf685 selftest: Fix testsuite counts when running only a limited number of
testsuites.
2010-09-22 22:29:09 -07:00
Jelmer Vernooij
3d0e6db9dc selftest: Fix idlist running. 2010-09-22 22:29:09 -07:00
Jelmer Vernooij
9bce783878 selftest: Fix use of --load-list. 2010-09-22 22:29:08 -07:00
Jelmer Vernooij
7e31704762 selftest: Remove unused --analyse argument. 2010-09-22 17:48:25 -07:00
Jelmer Vernooij
31d5ac0540 selftest: Let tests add prefix to tests by themselve. 2010-09-22 17:48:23 -07:00
Jelmer Vernooij
7c1b00f4a8 selftest: Use idlist testing for python tests. 2010-09-21 22:54:37 -07:00
Jelmer Vernooij
bf907d2c4a selftest: Support running individual tests using idlists, for testsuites that support them. 2010-09-21 22:54:35 -07:00
Jelmer Vernooij
e8b20039a7 selftest: Fix generation of test id file. 2010-09-21 22:54:34 -07:00
Jelmer Vernooij
d98754ca93 selftest: If setting up environment fails, mark testsuites that use it as
errorring, don't skip it.
2010-09-14 17:24:04 +02:00
Jelmer Vernooij
1e5ea0be84 subunit.pm: Fold Subunit::Filter into Subunit, trim further. 2010-09-14 10:54:28 +02:00
Jelmer Vernooij
d3960f6b40 subunit.pm: Simplify subunit handling in perl. 2010-09-14 10:54:28 +02:00
Jelmer Vernooij
49411fa107 subunit.pm: Pass through milliseconds in time reports. 2010-09-14 10:54:27 +02:00
Jelmer Vernooij
851ad13047 selftest: Cope with parentheses in testnames in --load-list. 2010-09-05 03:16:48 +02:00
Jelmer Vernooij
ef9657017c selftest: Print out unmatched tests when using --load-list. 2010-09-05 02:20:56 +02:00
Jelmer Vernooij
9550765304 testr: Fix configuration to use idfile, in case more than a couple of
hundred tests fail.
2010-09-04 21:13:37 +02:00
Jelmer Vernooij
bde18c6218 selftest: Don't make printing the log output a side-effect of check_env(), do it manually. 2010-09-04 21:08:35 +02:00
Jelmer Vernooij
3c2b733698 selftest: Remove stop() method, not used anywhere. 2010-09-04 18:24:02 +02:00
Andrew Tridgell
48323d88cc selftest: run client tests with log level 1
this PIDL print functions to display
2010-09-04 12:29:10 +10:00
Jelmer Vernooij
653b30f91f selftest: Clarify generation of idlist option. 2010-06-25 11:32:59 +02:00
Stefan Metzmacher
6a0db03c80 selftest: use 127.0.0.11-16 for the client
This gives more room for servers.

Note: socket_wrapper currently only supports 127.0.0.1-16
      see MAX_WRAPPED_INTERFACES.

metze
2010-06-17 09:11:59 +02:00
Andrew Bartlett
697cd13978 s4:selftest Add vampire_dc test environment
This starts a domain controller, after running 'net vampire' to
populate it.  We don't use it as the 'all' environment yet, as the
rest of the code isn't quite ready to handle it.

Andrew Bartlett
2010-06-16 09:57:51 +10:00
Günther Deschner
3854f0708e s3-selftest: Fix blackbox smbclient s3 tests during make selftest.
Guenther
2010-06-02 15:37:50 +02:00
Jelmer Vernooij
9db207da07 selftest: Cope with strict. 2010-04-12 16:35:18 +02:00
Jelmer Vernooij
64bf8c400c selftest: Support passing --load-list to test runners. 2010-04-10 22:38:32 +02:00
Jelmer Vernooij
ffb2449a13 selftest: Support --load-list option. 2010-04-08 23:20:35 +02:00
Jelmer Vernooij
31094b0e8c smbtorture: Report number of available tests in a testsuite using subunit. 2010-03-31 02:57:47 +02:00
Jelmer Vernooij
6c299d28b5 selftest: Use standard subunit command for progress reporting. 2010-03-31 02:20:08 +02:00
Jelmer Vernooij
b2eb609d4d selftest: Use standard subunit commands for progress reporting. 2010-03-31 02:20:08 +02:00
Andrew Bartlett
8529b0afc1 selftest: Remove dns_host_file every time we start 2010-03-12 13:22:20 +11:00
Stefan Metzmacher
46b0cbe879 selftest: let the client also use the dns_host_file
metze
2010-03-11 13:31:39 +01:00
Andrew Bartlett
a8b2088a0e s4:selftest Add infrastructure for testing against an RPC proxy
This also changes the 'testenv' code to use a new environment 'all'
(we may wish to make other complex tests depend on this in future),
and exports more names in more namespaces.

Andrew Bartlett
2010-02-19 16:32:49 +11:00
Günther Deschner
c971c10a63 s3-selftest: use absolute path when setting SOCKET_WRAPPER_DIR.
Guenther
2010-01-19 14:14:30 +01:00
Andrew Tridgell
d0123e0a9a s4-selftest: when a command fails show both normal and expanded command
It is sometimes hard to tell which varient of something like
$SMB_CONF_PATH or $USERNAME is being used in a test. By giving both
the expanded command ($command with environment variables expanded)
and non-expanded command it is easier to reproduce bugs outside the
test environment.
2010-01-11 09:55:28 +11:00
Andrew Tridgell
1eebdfdbe7 s4-test: fixed make test without having done make install
client.conf didn't specify "setup directory"
2010-01-11 09:38:00 +11:00
Stefan Metzmacher
259c1d73bf selftest: make sure we don't buffer any output
metze
2009-11-17 09:00:46 +01:00
Andrew Tridgell
606ff46447 selftest: make python run unbuffered
This makes some output in make test easier to follow
2009-10-22 12:47:54 +11:00
Andrew Tridgell
8d0959b2b1 selftest: try to get the valgrind errors showing again in the build farm 2009-10-19 22:58:23 +11:00
Andrew Tridgell
729c4b3eee s4-selftest: fixed 'make testenv'
The 'TERM' variable is used for terminal type, so we can't use it for
what terminal to use.
2009-10-19 21:37:20 +11:00
Andrew Tridgell
2d7b457e26 fixed TESTS= in make test to allow multiple tests
Now you can do: make test TESTS="test1 test2" and it will run those
two tests, each matching tests using a case insensitive substring
match
2009-08-14 13:05:06 +10:00
Stefan Metzmacher
303c3b363b selftest: configure "ncalrpc dir" for the client
Some torture tests will need this soon.

metze
2009-08-11 14:58:00 +02:00
Stefan Metzmacher
76d893b76e selftest: fix typo lock => lockdir
metze
2009-08-11 14:58:00 +02: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
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
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
24f01e70aa selftest: Use filter-xfail for known failures 2009-06-11 19:59:58 +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
Jelmer Vernooij
ea907a7144 selftest: Add copyright headers 2009-03-25 15:40:39 +01:00
Stefan Metzmacher
4248a8bf99 selftest: add my copyright
metze
2009-02-10 11:47:00 +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
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
ff39e0f6dd selftest: set 'lock dir' in client.conf
metze
2009-01-28 12:01:20 +01:00
Stefan Metzmacher
6f6533aa81 selftest: add --exeext parameter
metze
2009-01-21 13:35:36 +01:00
Stefan Metzmacher
ac364b4bab selftest: bin/ is under $(builddir) instead of $(srcdir)
metze
2009-01-21 13:35:35 +01: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
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
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
182a0e3490 Move selftest code to top-level. 2008-09-18 19:51:03 +02:00