summaryrefslogtreecommitdiff
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* s3:rpc_server: Retrieve dcesrv_context from parent context to open NPSamuel Cabrero2020-03-201-22/+51
| | | | | | | | | Get the dcesrv_context from parent context and use it to search the endpoint serving the named pipe. Once we have the endpoint pass it to the make_internal_rpc_pipe_socketpair function. Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* build: Remove workaround for missing os.path.relpath in Python < 2.6Andrew Bartlett2019-11-131-2/+1
| | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: David Mulder <dmulder@suse.com> Reviewed-by: Andreas Schneider <asn@samba.org>
* unittest: workaround dependency problem in test_lib_util_modulesRalph Boehme2019-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | waf somehow screws the dependencies and the module ends up with a bunch of missing RPC related symbols once an RPC service has special dependencies like the mdssvc RPC service. $ bin/test_lib_util_modules test: test_samba_module_probe success: test_samba_module_probe test: test_samba_module_probe_dummy Error loading module '/home/samba/src/bin/modules/rpc/test_dummy_module.so': /home/samba/src/bin/modules/rpc/test_dummy_module.so: undefined symbol: rpc_service_mode failure: test_samba_module_probe_dummy [ NT_STATUS_IS_OK(status) ../../testsuite/unittests/test_lib_util_modules.c:39: error: Failure! ] test: test_samba_module_probe_slash success: test_samba_module_probe_slash This is currently not noticed as mdssvc is not enabled in selftest, but that is going to change with a subsequent commit. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:rpc_server: Return NTSTATUS in is_known_pipename functionSamuel Cabrero2019-07-221-6/+6
| | | | | | Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* testsuite: Remove build_farm testsuitesTim Beale2019-03-1263-617/+1
| | | | | | | | | | | | This test code is not run (and has not been run for about a decade). Let's remove it - it's there in the git history if we ever want to try to repurpose it again. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Mar 12 02:56:05 UTC 2019 on sn-devel-144
* testsuite/headers/wscript_build: update to handle waf 2.0.4Alexander Bokovoy2018-09-051-1/+1
| | | | | Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* unittests.lib_util_modules: test module probe with "skel", not "unix"Douglas Bagnall2018-02-221-1/+1
| | | | | | | The unix module is not available as a module on some systems. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* source3: remove sock_execGary Lockyer2017-11-201-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Remove the sock_exec code which is no longer needed and additionally has been used by exploit code. This was originally test support code, the tests relying on the sock_exec code have been removed. Past exploits have used sock_exec as a proxy for system() matching a talloc destructor prototype. See for example: Exploit for Samba vulnerabilty (CVE-2015-0240) at https://gist.github.com/worawit/051e881fc94fe4a49295 and the Red Hat post at https://access.redhat.com/blogs/766093/posts/1976553 Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Nov 20 07:20:13 CET 2017 on sn-devel-144
* unittests: Fix missing include of signal.hLumir Balhar2017-10-181-0/+1
| | | | | | | | | Signed-off-by: Lumir Balhar <lbalhar@redhat.com> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Oct 18 14:24:39 CEST 2017 on sn-devel-144
* testsuite: Fix the 32-bit test buildVolker Lendecke2017-09-211-6/+6
| | | | | | | | | | | | samba_init_module returns 32-bit. For some reason on my 32-bit lxc "return 0" was converted to something but NT_STATUS_OK, making initialization fail. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Sep 21 02:49:32 CEST 2017 on sn-devel-144
* unittests: Do not install the test_dummy rpc moduleAndreas Schneider2017-07-051-1/+2
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12879 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Jul 5 22:21:06 CEST 2017 on sn-devel-144
* unittests: Add missing stdint.h includeAndreas Schneider2017-07-051-0/+1
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12878 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* unittest: Add testsuite for smb_probe_module()Andreas Schneider2017-06-062-0/+84
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12780 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* unittest: Add testsuite for is_known_pipename()Andreas Schneider2017-06-063-0/+113
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12780 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* third_party: Add cmocka 1.1.1Andreas Schneider2017-04-101-9/+5
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Apr 10 11:38:13 CEST 2017 on sn-devel-144
* waf: disable-python - don't include python.h in test_headers.cIan Stakenvicius2017-03-101-1/+3
| | | | | | | | | Signed-off-by: Ian Stakenvicius <axs@gentoo.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Mar 10 11:24:13 CET 2017 on sn-devel-144
* waf: Do not install the unit test binary for krb5sambaAndreas Schneider2017-02-131-1/+2
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12552 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Feb 13 14:17:39 CET 2017 on sn-devel-144
* testsuite: Add cmocka unit test for smb_krb5_kt_open()Andreas Schneider2016-12-162-0/+160
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Dec 16 05:43:12 CET 2016 on sn-devel-144
* Simplify handling of dependencies on external libraries in test_headers.Jelmer Vernooij2016-01-131-11/+2
| | | | Signed-off-by: Jelmer Vernooij <jelmer@jelmer.uk>
* testsuite/headers: remove unused checks for ntdb.hStefan Metzmacher2015-07-211-4/+0
| | | | | | | ntdb is already removed. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Karolin Seeger <kseeger@samba.org>
* autobuild: Remove ntdb targetVolker Lendecke2015-03-171-0/+4
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* Remove ntdb from scriptsVolker Lendecke2015-03-171-4/+0
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* third_party/popt: Initial support for popt.Ira Cooper2014-08-091-1/+1
| | | | | | | ctdb, ldb, and samba are supported builds for third_party popt. Signed-off-by: Ira Cooper <ira@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* testsuit: Fix fprintf format.Andreas Schneider2013-11-151-1/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls.Jeremy Allison2012-06-282-4/+4
| | | | | | Will allow thread-specific credentials to be added by modifying the central definitions. Deliberately left the setXX[ug]id() call in popt as this is not used in Samba.
* ntdb: put it back into the build.Rusty Russell2012-06-191-0/+5
| | | | | | | This doesn't do anything with it yet, just wires it back into the build. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* testsuite/libsmbclient: Remove unused and expensive-to-link testsuiteAndrew Bartlett2012-05-02148-11525/+0
| | | | | | | | | | | | | | | This testsuite never got off the ground, and unlike the other libsmbclient tests, it is not integrated into make test, has no driver script we could integrate. As it has been in this state for 10 years, and adding it to the compile did not find any link-time issues (particularly in comparison to the link-time cost for so many individual binaries), I am now removing them. The libsmbclient examples are seperate to this, and remain in examples/libsmbclient. Andrew Bartlett
* testsuite: Replace deprecated bzero with memsetAmitay Isaacs2012-02-29143-347/+347
| | | | | | | | | This fixes build issues on solaris reported in bug #8767. https://bugzilla.samba.org/show_bug.cgi?id=8767 Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Feb 29 10:39:10 CET 2012 on sn-devel-104
* testsuite: Remove unused and unlikely to be revived DejaGNU testsAndrew Bartlett2011-12-1213-907/+0
|
* s3-libsmbclient: make some functions static in testsuite code.Günther Deschner2011-10-25143-159/+159
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Oct 25 17:57:25 CEST 2011 on sn-devel-104
* build: compile (but do not install) all the libsmbclient testsAndrew Bartlett2011-10-201-0/+39
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Oct 20 13:49:39 CEST 2011 on sn-devel-104
* tdb_compat: use tdb_open_compat.Rusty Russell2011-06-201-2/+2
| | | | | | | | | This is a helper for the common case of opening a tdb with a logging function, but it doesn't do all the work, since TDB1 and TDB2's log functions are different types. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3: Remove the smbtorture3 OPLOCK3 testVolker Lendecke2011-05-222-3/+1
| | | | | This is the last user of cli_receive_smb. Oplocks are nowadays tested in smbtorture4, this mainly has historic value
* headers: cope with non-system popt in test_headersAndrew Tridgell2011-03-161-1/+4
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Mar 16 09:09:40 CET 2011 on sn-devel-104
* headers: include Python.h first to avoid warningsAndrew Tridgell2011-03-161-1/+1
|
* build: fixed cflags for test_headerAndrew Tridgell2011-03-151-0/+7
| | | | when using system libraries, we need the right cflags
* build: added automated testing of our public headersAndrew Tridgell2011-03-152-0/+77
| | | | | we generate test_headers.h, which includes all of our public headers, and check it compiles
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-212-6/+6
| | | | | | | | | | This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* testsuite/libsmbclient use source3 in the path of the C and LFLAGSLars Müller2010-01-281-2/+2
|
* Link testsuite/libsmbclient against required libtdb and libwbclientLars Müller2010-01-281-1/+1
|
* s3: add a test to test libsmbclientBo Yang2009-08-082-2/+98
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* testsuite/nsswitch/get{gr,pw}ent_r.c(dump_{gr,pw}ent): fixed wrong condition.Slava Semushin2009-06-062-2/+2
| | | | | | | When fopen() fails it return NULL, so condition where return value less than zero never evaluated to truth. Found by cppcheck.
* Memory leaks and other fixes found by Coveritytodd stecher2009-01-211-2/+5
|
* vlp: Move closer to the code tested.Kai Blin2008-10-193-480/+0
|
* vlp: fix an implicit cast compile warning.Michael Adam2008-04-101-1/+2
| | | | | Michael (This used to be commit bf46f614c497110dcc3fc79f610fcc7a8784dbb2)
* vlp: Build vlp (virtual line printer) against current git on makeKai Blin2007-12-111-21/+26
| | | | | everything. (This used to be commit 212ab58a3a7f03bb97c6ad3430e2776f9faba7c9)
* r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell2007-10-103-6/+3
| | | | (This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
* r23800: LGPL is now called GNU Lesser General Public LicenseAndrew Tridgell2007-10-101-2/+2
| | | | | not GNU Library General Public License (This used to be commit 727a6cf2cba8da6b40610409b264e86e6908eb0c)
* r23798: updated old Temple Place FSF addresses to new URLAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit c676a971142d7176fd5dbf21405fca14515a0a76)
* r23797: started fixing old FSF addresses. Fixed pcap2nbench COPYING fileAndrew Tridgell2007-10-101-3/+2
| | | | (This used to be commit e87bb12093dc78eb539fac0a171379a8cb5cd416)