Dali 3D User Interface Engine
test-harness.h
Go to the documentation of this file.
1 #ifndef TEST_HARNESS_H
2 #define TEST_HARNESS_H
3 
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 
20 #include <stdio.h>
21 #include <testcase.h>
22 
23 namespace TestHarness
24 {
25 
27 {
35 };
36 
37 const int MAX_NUM_CHILDREN(16);
38 
39 struct TestCase
40 {
41  int testCase;
42  const char* testCaseName;
43 
45  : testCase(0),
46  testCaseName(NULL)
47  {
48  }
49 
50  TestCase(int tc, const char* name)
51  : testCase(tc),
52  testCaseName(name)
53  {
54  }
55  TestCase(const TestCase& rhs)
56  : testCase(rhs.testCase),
58  {
59  }
61  {
62  testCase = rhs.testCase;
63  testCaseName = rhs.testCaseName;
64  return *this;
65 
66  }
67 };
68 
73 int RunTestCase( struct testcase_s& testCase );
74 
82 int RunAllInParallel(const char* processName, testcase tc_array[], bool reRunFailed);
83 
90 int RunAll( const char* processName, testcase tc_array[] );
91 
98 int FindAndRunTestCase(::testcase tc_array[], const char* testCaseName);
99 
104 void Usage(const char* program);
105 
106 } // namespace TestHarness
107 
108 #endif
Dali Docs Home
Read more about Dali