1
0
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:
Sachin Prabhu 2020-06-25 18:02:28 +01:00 committed by Stefan Metzmacher
parent 8902eb82d9
commit 32f05b05ac
3 changed files with 34 additions and 1 deletions

View File

@ -81,6 +81,7 @@
torture_local_util_str_escape,
torture_local_tfork,
torture_local_mdspkt,
torture_local_smbtorture,
NULL
};

View 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;
}

View File

@ -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