1 /* This file is part of test-runner (see template.c)
3 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Author: Kazimierz Krosman <k.krosman@samsung.com>
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
23 #define TC_NAME "libdbuspolicy-tests"
24 #define TEST_PATH "/usr/lib/dbus-tests/test-suites/libdbuspolicy-tests/"
25 #define CYNARA_PATH TEST_PATH "cynara_prepare.sh"
26 #define MAX_TC_NUM 1024
27 #define MAX_BUFFER (64*1024)
28 #define MAX_COMMENT 1024
42 char comment[MAX_COMMENT];
43 char result[MAX_COMMENT];
44 char name[MAX_COMMENT];
49 const char* description;
55 /* can be filled by asking binary */
56 struct test_case* test_cases;
59 char** (*prepare_args)(const struct binary* b, const char* test_name);
60 void (*parse)(const struct binary* b, const char* test_name, char* buffer, int state_change, int state_option);
65 char* get_test_id(char *dest, size_t dest_len, const struct binary* b, const char* test_name);
66 void add_test_result(const char* test_id, const char* result, const char* comment, int res);
69 #endif /* TEST_RUNNER_H */