summaryrefslogtreecommitdiffstats
path: root/source4/torture/local/smbtorture_fullname.c
blob: 875b3cff0e6c6e21f76746cf5a91ededd1532a32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
}