summaryrefslogtreecommitdiff
path: root/source4/torture/local/wscript_build
Commit message (Collapse)AuthorAgeFilesLines
* lib/comression: convert test_lzxpress_plain to cmockaDouglas Bagnall2022-12-011-1/+0
| | | | | | | | | | | | | | Mainly so I can go make bin/test_lzxpress_plain && bin/test_lzxpress_plain valgrind bin/test_lzxpress_plain rr bin/test_lzxpress_plain rr replay in a tight loop. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
* lib/compression: move lzxpress_plain test into tests/Douglas Bagnall2022-12-011-1/+2
| | | | | | | | We are going to add more tests for lib/compression, and they can't all be called "testsuite.c". Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
* s4:torture: Migrate smbtorture to new cmdline option parserAndreas Schneider2021-06-161-1/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* torture: Move sddl tests to pythonVolker Lendecke2021-04-191-1/+1
| | | | | | | | | This kind of test is better hosted in python than in C. More lines, but the ones in source4/libcli/security/tests/sddl.c were preeetty long... Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* auth:creds:tests: Migrate test to a cmocka unit testAndreas Schneider2020-11-031-1/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* s4:torture/local: Add new test to check smbtorture --fullnameSachin Prabhu2020-07-071-1/+2
| | | | | | | | | | | | Add new always pass test to test smbtorture --fullname. Since we test the printing of the fullname of the test, the test is placed at the bottom of several levels of test suites. test : local.smbtorture.level1.level2.level3.always_pass Signed-off-by: Sachin Prabhu <sprabhu@redhat.com> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* torture: start of a mdssvc packet (un)marshalling testsuiteRalph Boehme2019-08-081-0/+1
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* PY3: use pyembed_libname for library names (otherwise missing deps)Noel Power2018-09-161-1/+3
| | | | | Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* torture: Test tevent_req_profileVolker Lendecke2018-07-111-0/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* lib/util: add a test for tfork()Ralph Boehme2017-04-201-0/+1
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* lib/util: Add functions to escape log lines but not break all non-asciiGary Lockyer2017-03-291-1/+2
| | | | | | | | | We do not want to turn every non-ascii username into a pile of hex, so we instead focus on avoding newline insertion attacks and other low control chars Pair-programmed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* waf: disable-python - don't build torture bitsIan Stakenvicius2017-03-101-1/+2
| | | | | | | | | | samba-net being disabled causes a chain of dependency or proto.h-based missing code issues that require a number of modules or subsystems to be disabled in samba4/torture. Signed-off-by: Ian Stakenvicius <axs@gentoo.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* torture: Add tests for trim_string()Martin Schwenke2016-06-201-0/+1
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Ralph Boehme <slow@samba.org>
* util/binsearch: macro for greater than or equal searchDouglas Bagnall2016-03-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes you want to find the place where an item would be in a sorted list, whether or not it is actually there. The BINARY_ARRAY_SEARCH_GTE macro takes an extra 'next' pointer argument over the other binsearch macros. This will end up pointing to the next element in the case where there is not an exact match, or NULL when there is. That is, searching the list { 2, 3, 4, 4, 9} with a standard integer compare should give the following results: search term *result *next 1 - 2 3 3 - 4 4 [1] - 7 - 9 9 9 - 10 - - [2] Notes [1] There are two fours, but you will always get the first one. [2] The both NULL case means the search term is beyond the last list item. You can safely use the same pointer for both 'result' and 'next', if you don't care to distinguish between the 'greater-than' and 'equals' cases. There is a torture test for this. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* lib/util: Add strv_util.[ch] containing new function strv_split()Martin Schwenke2016-03-011-0/+1
| | | | | | | | | strv_split() adds to a strv by splitting a string on separators. Tests included. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Volker Lendecke <vl@samba.org>
* lib/util: Add tests for strvMartin Schwenke2016-02-261-0/+1
| | | | | | | | | | These are blackbox tests against most of the API. It would be possible to write tests that check the internals of the strv are as expected but that probably doesn't add much value. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Jeremy Allison <jra@samba.org>
* lib: Remove unused parmlist codeVolker Lendecke2015-08-211-1/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* torture: add local FSRVP server state testsDavid Disseldorp2015-03-311-2/+3
| | | | | | | | Test the storage and retrieval of FSRVP server state, with varying shadow-copy set, shadow copy and share map hierarchies. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4-torture: re-add nss-wrapper torture testsuite.Günther Deschner2015-03-021-1/+2
| | | | | | | | | | | | | | (The testsuite got removed with 5bb410f85312196bb24e62a6a0b8350576433dc6). Although nss_wrapper now also has an upstream testsuite, it is still important to run the older torture testsuite within Samba so we have some testing on nss_winbind correctnes and consistency. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4-torture: Remove socket_wrapper testsuite.Andreas Schneider2014-04-171-4/+0
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4-torture: Remove nss_wrapper testsuite.Andreas Schneider2014-04-171-4/+0
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* torture: add local verification trailer parsing testDavid Disseldorp2014-04-091-1/+2
| | | | | | | | Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Apr 9 03:44:15 CEST 2014 on sn-devel-104
* auth: move credentials layer to the top levelAndrew Bartlett2011-10-111-1/+1
| | | | | | | | This will allow gensec_start.c to move to the top level. This does not change what code uses the cli_credentials code, but allows the gensec code to be more broadly. Andrew Bartlett
* lib/util/charset Add tests for convert_string_talloc_handle()Andrew Bartlett2011-03-301-0/+1
| | | | | | | Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Mar 30 13:02:47 CEST 2011 on sn-devel-104
* lib/util: add tests for anonymous_shared_allocate/free()Stefan Metzmacher2011-01-201-1/+16
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jan 20 06:25:03 CET 2011 on sn-devel-104
* torture: Only add in tests for socket_wrapper/nss_wrapper when they have ↵Jelmer Vernooij2010-11-121-2/+14
| | | | been enabled.
* samdb: Lowercase library name.Jelmer Vernooij2010-11-071-1/+1
|
* replace: create a private replace-test libraryAndrew Tridgell2010-10-301-2/+2
| | | | used by replace_testuite and smbtorture
* torture_local: Add missing dependency on socket_wrapper.Jelmer Vernooij2010-10-261-1/+1
|
* torture/local: Depend on NSS_WRAPPER, even if it wasn't enabled.Jelmer Vernooij2010-10-241-1/+1
| | | | | | | torture_local tests nss_wrapper. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 24 01:02:00 UTC 2010 on sn-devel-104
* s4: Rename NSS_WRAPPER to nss_wrapper.Jelmer Vernooij2010-10-231-1/+1
| | | | | | | Only link to nss_wrapper when it is enabled. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Oct 23 23:05:44 UTC 2010 on sn-devel-104
* Lowercase socket_wrapper name.Jelmer Vernooij2010-10-211-1/+1
| | | | | | | Avoid linking against socket_wrapper outside of developer mode. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Oct 21 20:26:11 UTC 2010 on sn-devel-104
* s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2010-04-061-0/+2
| | | | them
* s4-waf: remove the need for some of the lib aliasesAndrew Tridgell2010-04-061-1/+1
|
* build: waf quicktest nearly worksAndrew Tridgell2010-04-061-2/+2
| | | | | Rewrote wafsamba using a new dependency handling system, and started adding the waf test code
* build: commit all the waf build files in the treeAndrew Tridgell2010-04-061-0/+8