diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/eina/src/tests/eina_test_main.c | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/eina/src/tests/eina_test_main.c')
-rw-r--r-- | libraries/eina/src/tests/eina_test_main.c | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/libraries/eina/src/tests/eina_test_main.c b/libraries/eina/src/tests/eina_test_main.c new file mode 100644 index 0000000..04364a1 --- /dev/null +++ b/libraries/eina/src/tests/eina_test_main.c | |||
@@ -0,0 +1,62 @@ | |||
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 | } | ||
33 | END_TEST | ||
34 | |||
35 | START_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 | } | ||
45 | END_TEST | ||
46 | |||
47 | START_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 | } | ||
55 | END_TEST | ||
56 | |||
57 | void 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 | } | ||