blob: 888d2ece14781b556fc168cba679ae8758b5af04 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/*
* Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef TS_TEST_RUNNER_TEST_RESULT
#define TS_TEST_RUNNER_TEST_RESULT
#include <stdint.h>
/**
* Test result summary structure
*/
struct __attribute__ ((__packed__)) ts_test_runner_result_summary
{
uint32_t num_tests;
uint32_t num_passed;
uint32_t num_failed;
};
/**
* Variable length parameter tag for a test result object.
* Multiple test results may be returned for a test run.
*/
enum
{
/* A test result record describes the result of a
* particular test.
*/
TS_TEST_RUNNER_TEST_RESULT_TAG = 1
};
/* Test run state values */
enum
{
TS_TEST_RUNNER_TEST_RESULT_RUN_STATE_NOT_RUN = 1,
TS_TEST_RUNNER_TEST_RESULT_RUN_STATE_PASSED = 2,
TS_TEST_RUNNER_TEST_RESULT_RUN_STATE_FAILED = 3
};
/* Test result fixed sized structure */
struct __attribute__ ((__packed__)) ts_test_runner_test_result
{
uint32_t run_state;
uint32_t fail_line;
};
/* Variable length output parameter tags */
enum
{
/* The name of the test */
TS_TEST_RUNNER_TEST_RESULT_TAG_NAME = 1,
/* The group the test belongs to */
TS_TEST_RUNNER_TEST_RESULT_TAG_GROUP = 2
};
#endif /* TS_TEST_RUNNER_TEST_RESULT */
|