summaryrefslogtreecommitdiffstats
path: root/selftest/selftest.pl
Commit message (Collapse)AuthorAgeFilesLines
* selftest: Set winbind separator = /Andrew Bartlett2014-06-041-0/+1
| | | | | | | | | | This avoids a pile of shell-script escape pain, and fixes some tests. Andrew Bartlett Change-Id: Ie1d0e32ab484a5b0ddbc4073831fe6de27e38e92 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: Preload socket_wrapper.Andreas Schneider2014-04-171-6/+11
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Disable loading ldb modules with RTLD_DEEPBIND.Andreas Schneider2014-04-171-0/+6
| | | | | | | | This is needed in order to allow the ldb_*ldap module to work with a preloaded socket wrapper. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Rename WINBINDD_SOCKET_DIR environment variable.Andreas Schneider2014-04-171-1/+1
| | | | | | | | It is very confusing if the env var uses the same name as the define in the source code. So prefix it with SELFTEST. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Write the nss_wrapper hosts file.Andreas Schneider2014-04-171-0/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Preload nss_wrapperAndreas Schneider2014-04-171-0/+11
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Enable uid_wrapper globally.Andreas Schneider2014-04-171-0/+3
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Pass uid_wrapper library to selftest and preload it.Andreas Schneider2014-04-171-1/+19
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: use MALLOC_CHECK_=3 to give a diagnostic on failureGregor Beck2013-12-111-1/+1
| | | | | | | | | | With MALLOC_CHECK_ set to 2 in case of a failure abort() is called silently which hopefully creates a core dump. MALLOC_CHECK_=3 additionally gives an error message on stderr in case. Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* selftest: Print error message when smbd does not have ADS supportChristof Schmitt2013-07-271-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | When smbd cannot be compiled with ADS support, setting up the s3member environment fails with: samba: using 'standard' process model Samba can't provide environment 's3member' at /test/samba/selftest/target/Samba.pm line 44. Can't use string ("UNKNOWN") as a HASH ref while "strict refs" in use at /test/samba/selftest/selftest.pl line 852. samba: EOF on stdin - terminating Add an explicit error message for the missing ADS support to make this easier to debug and also avoid the warning about the hash reference: samba: using 'standard' process model Samba can't provide environment 's3member' at /test/samba/selftest/target/Samba.pm line 44. Unable to setup environment s3member at /test/samba/selftest/selftest.pl line 851. smbd does not have ADS support samba: EOF on stdin - terminating Signed-off-by: Christof Schmitt <christof.schmitt@us.ibm.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Jul 27 08:31:14 CEST 2013 on sn-devel-104
* Export PROMOTED_DC related variableMatthieu Patou2013-05-141-0/+5
| | | | | | Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Tests: Fix the display of test vars in screen --testenvMatthieu Patou2013-01-221-7/+8
| | | | | | | | | | | | | | The form bash -c echo "important stuff blabla bla" && LD_LIBARY_PATH bash is not working in screen when it's working in xterm and the in_screen script already wrap all the command within a bash shell so there is no need to re-force bash as the echo will execute in a bash shell Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Jan 22 13:03:52 CET 2013 on sn-devel-104
* selftest: Add test for rfc2307 mapping handlingAndrew Bartlett2013-01-101-1/+4
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest.pl: Fix typo 'snprintf' -> 'sprintf'.Jelmer Vernooij2012-12-261-1/+1
| | | | | Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Wed Dec 26 22:35:12 CET 2012 on sn-devel-104
* selftest: Add --random-order option.Jelmer Vernooij2012-10-271-1/+9
|
* selftest: use an array when starting testenv with system()Andrew Bartlett2012-09-301-3/+11
| | | | | | | | | | By reduing the need for escapes and forcing the use of bash, this seems to allow 'make testenv' to start on FreeBSD Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sun Sep 30 02:30:40 CEST 2012 on sn-devel-104
* selftest: allow NSS_WRAPPER_* vars to be exported to the environmentAndrew Bartlett2012-06-271-1/+6
|
* selftest.pl: Remove unused --verbose option.Jelmer Vernooij2012-03-041-8/+0
|
* selftest: Remove unused vde functions.Jelmer Vernooij2012-03-041-25/+0
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Mar 4 07:54:51 CET 2012 on sn-devel-104
* selftest: Remove unused and broken target 'windows'.Jelmer Vernooij2012-03-041-6/+0
|
* selftest: Move manual page into a separate file.Jelmer Vernooij2012-03-021-101/+0
| | | | (Generated using pod2man from selftest.pl itself)
* selftest: Do not skip environments that fail to start upAndrew Bartlett2012-02-231-1/+1
| | | | | | | | | This is a regression in 70f4a96c68e91e407651e2487cc3c66a80262fa2. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Feb 23 10:55:20 CET 2012 on sn-devel-104
* selftest: Allow setup_env() to signal that an environment name is unknownAndrew Bartlett2012-02-131-1/+8
| | | | | | | This will allow us to skip samba4 environments that may be mentioned in the source3/selftest/tests.py file. Andrew Bartlett
* selftest: Remove unused support for --exeextAndrew Bartlett2012-02-011-11/+3
|
* selftest: Fix typo in socket wrapper test.Jelmer Vernooij2011-12-011-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Dec 1 00:30:00 CET 2011 on sn-devel-104
* selftest: Drop broken and unused Kvm target.Jelmer Vernooij2011-11-301-16/+5
|
* selftest: Don't acquire target when --list was specified.Jelmer Vernooij2011-11-301-25/+27
|
* selftest: Don't write subunit output in --list mode.Jelmer Vernooij2011-11-301-7/+13
|
* selftest: Remove the 'all' environment as it is just too slow to start upAndrew Bartlett2011-11-081-1/+1
| | | | | | | Instead we start the 'dc' environment, and other environments are available as: make testenv SELFTEST_TESTENV=fl2003dc Andrew Bartlett
* selftest: Remove --target option and the ability to run 'samba4 only' testsAndrew Bartlett2011-10-281-8/+4
| | | | | | | | | This simplifies the selftest system, and by default we always tested all of samba3 and samba4 in the waf build. This simply removes a rarely used option for testing only part of the system. The make test TESTS="^samba3" syntax remains unchanged, so no functionality is lost. Andrew Bartlett
* Revert "selftest: Avoid being run over by armies of the undead"Andrew Bartlett2011-10-201-2/+0
| | | | | | | | This reverts commit 2b47aface434000b29aa29f4ff6348cc147ae757 because it had a typo in $SIG{CHILD} (it needed to be $SIG{CHLD}), which when fixed simply broke the whole selftest system. Andrew Bartlett
* selftest: Avoid being run over by armies of the undeadAndrew Bartlett2011-07-291-0/+2
| | | | | | | | Ignore SIGCHILD to reap zombies Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* selftest: use "state directory" and "cache directory" optionsBjörn Baumbach2011-07-211-2/+2
| | | | | | | | | instead of "state dir" and "cache dir" Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jul 21 10:06:32 CEST 2011 on sn-devel-104
* s4-fault: changed to use %d for PID, instead of %PID%Andrew Tridgell2011-07-131-1/+1
| | | | | | this matches the s3 behaviour Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* selftest/Samba4: setup "state dir" and "cache dir"Stefan Metzmacher2011-07-121-0/+14
| | | | metze
* selftest: remove invalid use of the globbing operator <>Michael Adam2011-07-041-2/+2
|
* selftest: eliminate a perl warningMichael Adam2011-07-041-1/+1
| | | | In perl, %binary_mapping should be initialized as a hash, not a hash reference.
* selftest: Remove %PROG% argument from 'panic action'Andrew Bartlett2011-06-241-1/+1
| | | | | | | | The debugger or script will need to work out the binary from the PID, as %PROG% support was lost when the setup_fault() code was merged between Samba3 and Samba4. Andrew Bartlett
* selftest: create ncalrpcdir with 0755 permissionsStefan Metzmacher2011-05-231-2/+11
| | | | | | | | | We need to reset the umask in order to set to the desired permissions. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon May 23 13:26:33 CEST 2011 on sn-devel-104
* selftest: Restore the s3member environment by avoiding smbcaclsAndrew Bartlett2011-04-291-2/+8
| | | | | | | | | This removes the need for acls on the filesystem for simple domain member tests. ACL tests should be written at some point... Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
* selftest: we don't get valgrind errors any more with iconvAndrew Tridgell2011-04-271-5/+0
| | | | | | | | | | | this check was causing the CP850 warning in the combined build, as the s3 tests want CP850, but we don't have builtin support for that charset Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Apr 27 09:31:44 CEST 2011 on sn-devel-104
* selftest: Make bindir_path much less complexAndrew Bartlett2011-04-271-16/+3
| | | | | | There is no need to pass it as a function pointer, just put it in 'Samba.pm'. Andrew Bartlett
* selftest Consolidate server wall clock time limitsAndrew Bartlett2011-04-191-3/+12
| | | | | | | | | | This helps ensure that we don't have the Samba3 servers stop before the full make test is finished. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Apr 19 09:03:07 CEST 2011 on sn-devel-104
* selftest: move warning about invalid environments up to selftest.plAndrew Bartlett2011-04-191-1/+5
|
* selftest: Don't specify SELFTEST_TARGET as an env variableAndrew Bartlett2011-04-191-1/+0
| | | | | | | It is much more reliable to specify it as a direct parameter, and this is needed for the combined 'make test'. Andrew Bartlett
* selftest Test for socket_wrapper support in combined samba target as wellAndrew Bartlett2011-04-191-0/+3
|
* selftest Add combined 'Samba' target moduleAndrew Bartlett2011-04-191-1/+5
| | | | | | | | To work around environment variable handling, the initialisation of NSS_WRAPPER_WINBIND_SO_PATH is pushed in to Samba3.pm (the s3 autoconf build still overrides this) Andrew Bartlett
* selftest: put the target on the environmentAndrew Bartlett2011-04-191-5/+11
| | | | | | | This will allow us to have a 'switch' target type that creates environments from Samba3 or Samba4 as required. Andrew Bartlett
* selftest: Remove duplication between BUILDIR and BINDIRAndrew Bartlett2011-04-161-9/+6
| | | | | | Just have BINDIR, and have it default to ./bin Andrew Bartlett
* selftest: Remove unused BUILDDIR_ABS environment variableAndrew Bartlett2011-04-161-1/+0
|