aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/eina/src/tests/eina_test_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/eina/src/tests/eina_test_main.c')
-rw-r--r--libraries/eina/src/tests/eina_test_main.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/libraries/eina/src/tests/eina_test_main.c b/libraries/eina/src/tests/eina_test_main.c
deleted file mode 100644
index 04364a1..0000000
--- a/libraries/eina/src/tests/eina_test_main.c
+++ /dev/null
@@ -1,62 +0,0 @@
1/* EINA - EFL data type library
2 * Copyright (C) 2008 Cedric Bail
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library;
16 * if not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifdef HAVE_CONFIG_H
20# include "config.h"
21#endif
22
23#include <stdio.h>
24
25#include "eina_suite.h"
26#include "Eina.h"
27
28 START_TEST(eina_simple)
29{
30 fail_if(eina_init() != 2); /* one init by test suite */
31 fail_if(eina_shutdown() != 1);
32}
33END_TEST
34
35START_TEST(eina_cpu)
36{
37 fail_if(eina_init() != 2); /* one init by test suite */
38
39 fail_if(eina_cpu_count() <= 0);
40
41 eina_cpu_features_get();
42
43 fail_if(eina_shutdown() != 1);
44}
45END_TEST
46
47START_TEST(eina_hamster)
48{
49 fail_if(eina_init() != 2); /* one init by test suite */
50
51 fail_if(eina_hamster_count() <= 0);
52
53 fail_if(eina_shutdown() != 1);
54}
55END_TEST
56
57void eina_test_main(TCase *tc)
58{
59 tcase_add_test(tc, eina_simple);
60 tcase_add_test(tc, eina_cpu);
61 tcase_add_test(tc, eina_hamster);
62}