summaryrefslogtreecommitdiff
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* unittests.lib_util_modules: test module probe with "skel", not "unix"Douglas Bagnall2018-08-231-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> (cherry picked from commit cb5f1f3b262467faba59b3b323e240d1351d5fc0)
* 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)
* r23791: found some more v2->v3 conversionsAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit b6cbac3db3b478d5c7991cee78c6695fc8d22681)
* r23785: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-1026-52/+26
| | | | (This used to be commit d0e89d246d8e5e64196d6c1d16d39a70579ca42f)
* r23780: Find and fix more GPL2 -> GPL3.Jeremy Allison2007-10-104-4/+4
| | | | | Jeremy. (This used to be commit c2f7ab1c175ecff0cf44d0bbc4763ba9f7d7803f)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-1026-26/+26
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r14317: Use source/bin as dir to link pam_winbind instead of source/nsswitch/Lars Müller2007-10-101-1/+1
| | | | | | | | | | The intention is to have the resulting binaries at one place. This is also usefull for upcoming changes to provide a test_pammodules rule. With these changes I even got aware of testsuite/nsswitch/pam_winbind_syms.exp But this only covers pam_winbind. (This used to be commit 9883957b74ddefb5293e4aef0cc2f53ee4d417ac)
* r6501: correct deprecated lvalue casts in testsuite/libsmbclientDerrell Lipman2007-10-104-7/+11
| | | | (This used to be commit 6d22c3c3434812d3a6ab7f216bec34cdb3b622a0)