1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/source4/torture/local/smbtorture_fullname.c
Sachin Prabhu 32f05b05ac 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>
2020-07-07 10:30:40 +00:00

32 lines
938 B
C

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