summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-08-15 13:46:38 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-08-15 13:46:38 -0700
commitf4f926f2bd69865e538d8b5259e350674562d471 (patch)
treee2b9f31c4221f9e0dd971fee22e697054c78ff6f
parentb94390a6aa1edad7da389c96b11ae0d867fa9cd3 (diff)
eina: remove tests and benchmark for long dead mempool.
-rw-r--r--src/benchmarks/eina/eina_bench_mempool.c59
-rw-r--r--src/tests/eina/eina_test_mempool.c62
2 files changed, 0 insertions, 121 deletions
diff --git a/src/benchmarks/eina/eina_bench_mempool.c b/src/benchmarks/eina/eina_bench_mempool.c
index d7e2c62ade..783677484c 100644
--- a/src/benchmarks/eina/eina_bench_mempool.c
+++ b/src/benchmarks/eina/eina_bench_mempool.c
@@ -78,50 +78,6 @@ eina_mempool_pass_through(int request)
78} 78}
79#endif 79#endif
80 80
81#ifdef EINA_BUILD_FIXED_BITMAP
82static void
83eina_mempool_fixed_bitmap(int request)
84{
85 Eina_Mempool *mp;
86
87 mp = eina_mempool_add("fixed_bitmap", "test", NULL, sizeof (int));
88 _eina_mempool_bench(mp, request);
89 eina_mempool_del(mp);
90}
91#endif
92
93#ifdef EINA_BUILD_EMEMOA_FIXED
94static void
95eina_mempool_ememoa_fixed(int request)
96{
97 Eina_Mempool *mp;
98
99 mp = eina_mempool_add("ememoa_fixed", "test", NULL, sizeof (int), 8, 0);
100 _eina_mempool_bench(mp, request);
101 eina_mempool_del(mp);
102}
103#endif
104
105#ifdef EINA_BUILD_EMEMOA_UNKNOWN
106static void
107eina_mempool_ememoa_unknown(int request)
108{
109 Eina_Mempool *mp;
110
111 mp = eina_mempool_add("ememoa_unknown",
112 "test",
113 NULL,
114 0,
115 2,
116 sizeof (int),
117 8,
118 sizeof (int) * 2,
119 8);
120 _eina_mempool_bench(mp, request);
121 eina_mempool_del(mp);
122}
123#endif
124
125#ifdef EINA_BENCH_HAVE_GLIB 81#ifdef EINA_BENCH_HAVE_GLIB
126static void 82static void
127eina_mempool_glib(int request) 83eina_mempool_glib(int request)
@@ -165,21 +121,6 @@ eina_bench_mempool(Eina_Benchmark *bench)
165 EINA_BENCHMARK( 121 EINA_BENCHMARK(
166 eina_mempool_pass_through), 10, 10000, 10); 122 eina_mempool_pass_through), 10, 10000, 10);
167#endif 123#endif
168#ifdef EINA_BUILD_FIXED_BITMAP
169 eina_benchmark_register(bench, "fixed bitmap",
170 EINA_BENCHMARK(
171 eina_mempool_fixed_bitmap), 10, 10000, 10);
172#endif
173#ifdef EINA_BUILD_EMEMOA_FIXED
174 eina_benchmark_register(bench, "ememoa fixed",
175 EINA_BENCHMARK(
176 eina_mempool_ememoa_fixed), 10, 10000, 10);
177#endif
178#ifdef EINA_BUILD_EMEMOA_UNKNOWN
179 eina_benchmark_register(bench, "ememoa unknown",
180 EINA_BENCHMARK(
181 eina_mempool_ememoa_unknown), 10, 10000, 10);
182#endif
183#ifdef EINA_BENCH_HAVE_GLIB 124#ifdef EINA_BENCH_HAVE_GLIB
184 eina_benchmark_register(bench, "gslice", 125 eina_benchmark_register(bench, "gslice",
185 EINA_BENCHMARK( 126 EINA_BENCHMARK(
diff --git a/src/tests/eina/eina_test_mempool.c b/src/tests/eina/eina_test_mempool.c
index 4a265b6f8a..4b1d936a4f 100644
--- a/src/tests/eina/eina_test_mempool.c
+++ b/src/tests/eina/eina_test_mempool.c
@@ -127,59 +127,6 @@ START_TEST(eina_mempool_pass_through)
127END_TEST 127END_TEST
128#endif 128#endif
129 129
130#ifdef EINA_BUILD_FIXED_BITMAP
131START_TEST(eina_mempool_fixed_bitmap)
132{
133 Eina_Mempool *mp;
134
135 _mempool_init();
136
137 mp = eina_mempool_add("fixed_bitmap", "test", NULL, sizeof (int));
138 _eina_mempool_test(mp, EINA_FALSE, EINA_FALSE);
139
140 _mempool_shutdown();
141}
142END_TEST
143#endif
144
145#ifdef EINA_BUILD_EMEMOA_FIXED
146START_TEST(eina_mempool_ememoa_fixed)
147{
148 Eina_Mempool *mp;
149
150 _mempool_init();
151
152 mp = eina_mempool_add("ememoa_fixed", "test", NULL, sizeof (int), 8, 0);
153 _eina_mempool_test(mp, EINA_FALSE, EINA_TRUE);
154
155 _mempool_shutdown();
156}
157END_TEST
158#endif
159
160#ifdef EINA_BUILD_EMEMOA_UNKNOWN
161START_TEST(eina_mempool_ememoa_unknown)
162{
163 Eina_Mempool *mp;
164
165 _mempool_init();
166
167 mp = eina_mempool_add("ememoa_unknown",
168 "test",
169 NULL,
170 0,
171 2,
172 sizeof (int),
173 8,
174 sizeof (int) * 2,
175 8);
176 _eina_mempool_test(mp, EINA_TRUE, EINA_TRUE);
177
178 _mempool_shutdown();
179}
180END_TEST
181#endif
182
183void 130void
184eina_test_mempool(TCase *tc) 131eina_test_mempool(TCase *tc)
185{ 132{
@@ -189,13 +136,4 @@ eina_test_mempool(TCase *tc)
189#ifdef EINA_BUILD_PASS_THROUGH 136#ifdef EINA_BUILD_PASS_THROUGH
190 tcase_add_test(tc, eina_mempool_pass_through); 137 tcase_add_test(tc, eina_mempool_pass_through);
191#endif 138#endif
192#ifdef EINA_BUILD_FIXED_BITMAP
193 tcase_add_test(tc, eina_mempool_fixed_bitmap);
194#endif
195#ifdef EINA_BUILD_EMEMOA_FIXED
196 tcase_add_test(tc, eina_mempool_ememoa_fixed);
197#endif
198#ifdef EINA_BUILD_EMEMOA_UNKNOWN
199 tcase_add_test(tc, eina_mempool_ememoa_unknown);
200#endif
201} 139}