diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2012-09-16 14:25:29 +0000 |
---|---|---|
committer | Vincent Torri <vincent.torri@gmail.com> | 2012-09-16 14:25:29 +0000 |
commit | c83143c8896752e139c82259e22c56715c313e7b (patch) | |
tree | a99aba40d0b91d19a46b15c1090cd8b399e347f9 /src | |
parent | 528a9831c82be6c1275ee8172c2ed5c1191ea23d (diff) |
merge: mostly fix tests and benchmark
need to fix the city stuff in tests and the benchmark
with the e17 data (need help with make rules :)
SVN revision: 76712
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 12 | ||||
-rw-r--r-- | src/benchmarks/Makefile.am | 11 | ||||
-rw-r--r-- | src/benchmarks/eina/Makefile.am | 53 | ||||
-rw-r--r-- | src/tests/Makefile.am | 3 | ||||
-rw-r--r-- | src/tests/eina/Makefile.am | 167 |
5 files changed, 128 insertions, 118 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index d53263a5cb..24ceadb561 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -1,3 +1,13 @@ | |||
1 | MAINTAINERCLEANFILES = Makefile.in | 1 | MAINTAINERCLEANFILES = Makefile.in |
2 | 2 | ||
3 | SUBDIRS = lib include modules bin scripts | 3 | SUBDIRS = lib include modules bin scripts benchmarks tests |
4 | |||
5 | .PHONY: benchmark benchmark-e17 | ||
6 | |||
7 | benchmark: | ||
8 | @make -C lib | ||
9 | @$(MAKE) -C benchmarks benchmark | ||
10 | |||
11 | benchmark-e17: | ||
12 | @make -C lib | ||
13 | @$(MAKE) -C benchmarks benchmark-e17 | ||
diff --git a/src/benchmarks/Makefile.am b/src/benchmarks/Makefile.am new file mode 100644 index 0000000000..1bf18c0e94 --- /dev/null +++ b/src/benchmarks/Makefile.am | |||
@@ -0,0 +1,11 @@ | |||
1 | MAINTAINERCLEANFILES = Makefile.in | ||
2 | |||
3 | SUBDIRS = eina | ||
4 | |||
5 | .PHONY: benchmark benchmark-e17 | ||
6 | |||
7 | benchmark: | ||
8 | @$(MAKE) -C eina benchmark | ||
9 | |||
10 | benchmark-e17: | ||
11 | @$(MAKE) -C eina benchmark-e17 | ||
diff --git a/src/benchmarks/eina/Makefile.am b/src/benchmarks/eina/Makefile.am new file mode 100644 index 0000000000..248ddfeda6 --- /dev/null +++ b/src/benchmarks/eina/Makefile.am | |||
@@ -0,0 +1,53 @@ | |||
1 | MAINTAINERCLEANFILES = Makefile.in | ||
2 | |||
3 | AM_CPPFLAGS = \ | ||
4 | -I$(top_srcdir)/src/include/eina \ | ||
5 | -I$(top_builddir)/src/include/eina \ | ||
6 | -DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \ | ||
7 | -DCITYHASH_BENCH \ | ||
8 | @EINA_CFLAGS@ \ | ||
9 | @GLIB_CFLAGS@ | ||
10 | |||
11 | EXTRA_PROGRAMS = eina_bench | ||
12 | |||
13 | benchmark: eina_bench libcity.la | ||
14 | |||
15 | #benchmark-e17: eina_bench | ||
16 | # AM_CPPFLAGS += -DEINA_ENABLE_BENCH_E17 | ||
17 | |||
18 | eina_bench_SOURCES = \ | ||
19 | eina_bench.c \ | ||
20 | eina_bench_sort.c \ | ||
21 | eina_bench_hash.c \ | ||
22 | eina_bench_stringshare.c \ | ||
23 | eina_bench_convert.c \ | ||
24 | eina_bench_mempool.c \ | ||
25 | eina_bench_stringshare_e17.c \ | ||
26 | eina_bench_array.c \ | ||
27 | eina_bench_rectangle_pool.c \ | ||
28 | ecore_list.c \ | ||
29 | ecore_strings.c \ | ||
30 | ecore_hash.c \ | ||
31 | ecore_sheap.c \ | ||
32 | evas_hash.c \ | ||
33 | evas_list.c \ | ||
34 | evas_mempool.c \ | ||
35 | evas_object_list.c \ | ||
36 | evas_stringshare.c \ | ||
37 | eina_bench_quad.c \ | ||
38 | eina_bench.h \ | ||
39 | eina_suite.h \ | ||
40 | Ecore_Data.h \ | ||
41 | Evas_Data.h \ | ||
42 | evas_mempool.h | ||
43 | |||
44 | EXTRA_LTLIBRARIES = libcity.la | ||
45 | libcity_la_SOURCES = city.cc | ||
46 | |||
47 | nodist_EXTRA_eina_bench_SOURCES = dummy.cc | ||
48 | eina_bench_LDADD = @GLIB_LIBS@ $(top_builddir)/src/lib/eina/libeina.la libcity.la @EINA_LIBS@ | ||
49 | |||
50 | EXTRA_DIST = strlog | ||
51 | |||
52 | clean-local: | ||
53 | rm -rf *.gcno ..\#..\#src\#*.gcov *.gcda | ||
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am new file mode 100644 index 0000000000..b8f642fb72 --- /dev/null +++ b/src/tests/Makefile.am | |||
@@ -0,0 +1,3 @@ | |||
1 | MAINTAINERCLEANFILES = Makefile.in | ||
2 | |||
3 | SUBDIRS = eina | ||
diff --git a/src/tests/eina/Makefile.am b/src/tests/eina/Makefile.am index f6810e22c7..c87862214a 100644 --- a/src/tests/eina/Makefile.am +++ b/src/tests/eina/Makefile.am | |||
@@ -1,142 +1,75 @@ | |||
1 | MAINTAINERCLEANFILES = Makefile.in | 1 | MAINTAINERCLEANFILES = Makefile.in |
2 | 2 | ||
3 | benchdir = $(bindir) | 3 | AM_CPPFLAGS = \ |
4 | 4 | -I$(top_srcdir)/src/include/eina \ | |
5 | AM_CPPFLAGS = \ | 5 | -I$(top_builddir)/src/include/eina \ |
6 | -I$(top_srcdir)/src/lib \ | 6 | -DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \ |
7 | -I$(top_srcdir)/src/include \ | 7 | @CHECK_CFLAGS@ \ |
8 | -I$(top_builddir)/src/include \ | 8 | @EINA_CFLAGS@ |
9 | -I$(top_builddir)/src/lib \ | ||
10 | -DPACKAGE_BIN_DIR=\"$(bindir)\" \ | ||
11 | -DPACKAGE_LIB_DIR=\"$(libdir)\" \ | ||
12 | -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \ | ||
13 | -DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)\" \ | ||
14 | @CHECK_CFLAGS@ \ | ||
15 | @EINA_CFLAGS@ \ | ||
16 | @GLIB_CFLAGS@ | ||
17 | |||
18 | if EINA_HAVE_GLIB | ||
19 | |||
20 | AM_CPPFLAGS += -DEINA_BENCH_HAVE_GLIB | ||
21 | |||
22 | endif | ||
23 | |||
24 | if EINA_ENABLE_BENCHMARK_E17 | ||
25 | |||
26 | AM_CPPFLAGS += -DEINA_ENABLE_BENCH_E17 | ||
27 | |||
28 | endif | ||
29 | 9 | ||
30 | if EFL_ENABLE_TESTS | 10 | if EFL_ENABLE_TESTS |
31 | 11 | ||
32 | check_PROGRAMS = eina_suite cxx_compile_test | 12 | check_PROGRAMS = eina_suite cxx_compile_test |
33 | 13 | ||
34 | eina_suite_SOURCES = \ | 14 | eina_suite_SOURCES = \ |
35 | eina_suite.c \ | 15 | eina_suite.c \ |
36 | eina_test_fp.c \ | 16 | eina_test_fp.c \ |
37 | eina_test_stringshare.c \ | 17 | eina_test_stringshare.c \ |
38 | eina_test_ustringshare.c\ | 18 | eina_test_ustringshare.c \ |
39 | eina_test_ustr.c \ | 19 | eina_test_ustr.c \ |
40 | eina_test_binshare.c \ | 20 | eina_test_binshare.c \ |
41 | eina_test_binbuf.c \ | 21 | eina_test_binbuf.c \ |
42 | eina_test_inarray.c \ | 22 | eina_test_inarray.c \ |
43 | eina_test_array.c \ | 23 | eina_test_array.c \ |
44 | eina_test_clist.c \ | 24 | eina_test_clist.c \ |
45 | eina_test_error.c \ | 25 | eina_test_error.c \ |
46 | eina_test_sched.c \ | 26 | eina_test_sched.c \ |
47 | eina_test_log.c \ | 27 | eina_test_log.c \ |
48 | eina_test_magic.c \ | 28 | eina_test_magic.c \ |
49 | eina_test_inlist.c \ | 29 | eina_test_inlist.c \ |
50 | eina_test_main.c \ | 30 | eina_test_main.c \ |
51 | eina_test_counter.c \ | 31 | eina_test_counter.c \ |
52 | eina_test_lalloc.c \ | 32 | eina_test_lalloc.c \ |
53 | eina_test_hash.c \ | 33 | eina_test_hash.c \ |
54 | eina_test_iterator.c \ | 34 | eina_test_iterator.c \ |
55 | eina_test_accessor.c \ | 35 | eina_test_accessor.c \ |
56 | eina_test_module.c \ | 36 | eina_test_module.c \ |
57 | eina_test_convert.c \ | 37 | eina_test_convert.c \ |
58 | eina_test_rbtree.c \ | 38 | eina_test_rbtree.c \ |
59 | eina_test_file.c \ | 39 | eina_test_file.c \ |
60 | eina_test_benchmark.c \ | 40 | eina_test_benchmark.c \ |
61 | eina_test_mempool.c \ | 41 | eina_test_mempool.c \ |
62 | eina_test_rectangle.c \ | 42 | eina_test_rectangle.c \ |
63 | eina_test_list.c \ | 43 | eina_test_list.c \ |
64 | eina_test_matrixsparse.c \ | 44 | eina_test_matrixsparse.c \ |
65 | eina_test_tiler.c \ | 45 | eina_test_tiler.c \ |
66 | eina_test_strbuf.c \ | 46 | eina_test_strbuf.c \ |
67 | eina_test_str.c \ | 47 | eina_test_str.c \ |
68 | eina_test_quadtree.c \ | 48 | eina_test_quadtree.c \ |
69 | eina_test_simple_xml_parser.c \ | 49 | eina_test_simple_xml_parser.c \ |
70 | eina_test_value.c | 50 | eina_test_value.c |
71 | # eina_test_model.c | 51 | # eina_test_model.c |
72 | 52 | ||
73 | eina_suite_LDADD = @CHECK_LIBS@ $(top_builddir)/src/lib/libeina.la @EINA_LIBS@ -lm | 53 | eina_suite_LDADD = @CHECK_LIBS@ $(top_builddir)/src/lib/eina/libeina.la @EINA_LIBS@ -lm |
74 | 54 | ||
75 | cxx_compile_test_SOURCES = cxx_compile_test.cxx | 55 | cxx_compile_test_SOURCES = cxx_compile_test.cxx |
76 | cxx_compile_test_LDADD = $(top_builddir)/src/lib/libeina.la @EINA_LIBS@ | 56 | cxx_compile_test_LDADD = $(top_builddir)/src/lib/eina/libeina.la @EINA_LIBS@ |
57 | |||
58 | EXTRA_LTLIBRARIES = module_dummy.la | ||
77 | 59 | ||
78 | module_dummydir = $(libdir)/eina/test | 60 | check-local: module_dummy.la |
79 | module_dummy_LTLIBRARIES = module_dummy.la | ||
80 | 61 | ||
81 | module_dummy_la_SOURCES = \ | 62 | module_dummy_la_SOURCES = eina_test_module_dummy.c |
82 | eina_test_module_dummy.c | ||
83 | 63 | ||
84 | module_dummy_la_CPPFLAGS = \ | 64 | module_dummy_la_CPPFLAGS = \ |
85 | -I$(top_srcdir)/src/lib \ | 65 | -I$(top_srcdir)/src/include/eina \ |
86 | -I$(top_srcdir)/src/include \ | 66 | -I$(top_builddir)/src/include/eina \ |
87 | -I$(top_builddir)/src/include \ | ||
88 | -I$(top_builddir)/src/lib \ | ||
89 | @EFL_EINA_BUILD@ | 67 | @EFL_EINA_BUILD@ |
90 | module_dummy_la_LIBADD = $(top_builddir)/src/lib/libeina.la @EINA_LIBS@ -lm | 68 | module_dummy_la_LIBADD = $(top_builddir)/src/lib/eina/libeina.la @EINA_LIBS@ -lm |
91 | module_dummy_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | 69 | module_dummy_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version |
92 | module_dummy_la_LIBTOOLFLAGS = --tag=disable-static | 70 | module_dummy_la_LIBTOOLFLAGS = --tag=disable-static |
93 | 71 | ||
94 | endif | 72 | endif |
95 | 73 | ||
96 | if EFL_ENABLE_BENCHMARK | ||
97 | |||
98 | bench_PROGRAMS = eina_bench | ||
99 | |||
100 | eina_bench_SOURCES = \ | ||
101 | eina_bench.c \ | ||
102 | eina_bench_sort.c \ | ||
103 | eina_bench_hash.c \ | ||
104 | eina_bench_stringshare.c \ | ||
105 | eina_bench_convert.c \ | ||
106 | eina_bench_mempool.c \ | ||
107 | eina_bench_stringshare_e17.c \ | ||
108 | eina_bench_array.c \ | ||
109 | eina_bench_rectangle_pool.c \ | ||
110 | ecore_list.c \ | ||
111 | ecore_strings.c \ | ||
112 | ecore_hash.c \ | ||
113 | ecore_sheap.c \ | ||
114 | evas_hash.c \ | ||
115 | evas_list.c \ | ||
116 | evas_mempool.c \ | ||
117 | evas_object_list.c \ | ||
118 | evas_stringshare.c \ | ||
119 | eina_bench_quad.c \ | ||
120 | eina_bench.h \ | ||
121 | eina_suite.h \ | ||
122 | Ecore_Data.h \ | ||
123 | Evas_Data.h \ | ||
124 | evas_mempool.h | ||
125 | |||
126 | if CITYHASH_BENCH | ||
127 | noinst_LTLIBRARIES = libcity.la | ||
128 | libcity_la_SOURCES = city.cc | ||
129 | |||
130 | nodist_EXTRA_eina_bench_SOURCES = dummy.cc | ||
131 | eina_bench_LDADD = @GLIB_LIBS@ $(top_builddir)/src/lib/libeina.la libcity.la @EINA_LIBS@ | ||
132 | else | ||
133 | eina_bench_LDADD = @GLIB_LIBS@ $(top_builddir)/src/lib/libeina.la @EINA_LIBS@ | ||
134 | |||
135 | endif | ||
136 | |||
137 | endif | ||
138 | |||
139 | EXTRA_DIST = strlog | ||
140 | |||
141 | clean-local: | 74 | clean-local: |
142 | rm -rf *.gcno ..\#..\#src\#*.gcov *.gcda | 75 | rm -rf *.gcno ..\#..\#src\#*.gcov *.gcda |