274c0dc69f582af996b43694873d4a7975d4a200
[platform/core/uifw/dali-core.git] / build / tizen / dali-core / linker-test.cpp
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #include "dali/public-api/dali-core.h"
19
20 #include <cstdio>
21 #include <stdarg.h>
22
23 // Link with TET Test application, need to redefine TET functions
24 void tet_infoline(const char* str)
25 {
26   puts(str);
27 }
28
29 void tet_printf(const char* str, ...)
30 {
31   va_list args;
32   va_start(args, str);
33   vprintf(str, args);
34   va_end(args);
35 }
36
37
38 #include "test-application.h"
39
40 /*****************************************************************************
41  * Test to see if dali is linking correctly.
42  * Only really tests that the internal function/method definitions exist and
43  * links to functions/methods in other libraries linked by Dali-Core.
44  * If a definition of the Public or Integration API does not exist, then it
45  * will not be checked here.
46  * Also ensures TET Test Application is kept up-to-date.
47  */
48
49 int main(int argc, char **argv)
50 {
51 #ifndef _ARCH_ARM_
52   Dali::TestApplication application;
53 #endif
54   return 0;
55 }