mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
s4:torture/local: Add new test to check smbtorture --fullname
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>
This commit is contained in:
parent
8902eb82d9
commit
32f05b05ac
@ -81,6 +81,7 @@
|
||||
torture_local_util_str_escape,
|
||||
torture_local_tfork,
|
||||
torture_local_mdspkt,
|
||||
torture_local_smbtorture,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
31
source4/torture/local/smbtorture_fullname.c
Normal file
31
source4/torture/local/smbtorture_fullname.c
Normal file
@ -0,0 +1,31 @@
|
||||
#include "includes.h"
|
||||
#include "torture/smbtorture.h"
|
||||
#include "torture/local/proto.h"
|
||||
|
||||
static bool test_smbtorture_always_pass(struct torture_context *tctx)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
struct torture_suite *torture_local_smbtorture(TALLOC_CTX *ctx)
|
||||
{
|
||||
struct torture_suite *suite = torture_suite_create(ctx, "smbtorture");
|
||||
struct torture_suite *suite_level1 = torture_suite_create(ctx,
|
||||
"level1");
|
||||
struct torture_suite *suite_level2 = torture_suite_create(ctx,
|
||||
"level2");
|
||||
struct torture_suite *suite_level3 = torture_suite_create(ctx,
|
||||
"level3");
|
||||
|
||||
torture_suite_add_suite(suite_level2, suite_level3);
|
||||
torture_suite_add_suite(suite_level1, suite_level2);
|
||||
torture_suite_add_suite(suite, suite_level1);
|
||||
|
||||
torture_suite_add_simple_test(suite_level3, "always_pass",
|
||||
test_smbtorture_always_pass);
|
||||
|
||||
suite->description = talloc_strdup(suite,
|
||||
"smbtorture multilevel always pass test.");
|
||||
|
||||
return suite;
|
||||
}
|
@ -28,7 +28,8 @@ TORTURE_LOCAL_SOURCE = '''../../../lib/util/charset/tests/iconv.c
|
||||
verif_trailer.c
|
||||
nss_tests.c
|
||||
mdspkt.c
|
||||
fsrvp_state.c'''
|
||||
fsrvp_state.c
|
||||
smbtorture_fullname.c'''
|
||||
|
||||
TORTURE_LOCAL_DEPS = 'RPC_NDR_ECHO TDR LIBCLI_SMB MESSAGING iconv POPT_CREDENTIALS TORTURE_AUTH TORTURE_UTIL TORTURE_NDR TORTURE_LIBCRYPTO share torture_registry %s ldb samdb replace-test RPC_FSS_STATE util_str_escape' % provision
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user