blob: 315f8ebea7661c531cc2025594ea9beb0aa2fe6f [file] [log] [blame]
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +01001/*
2 * Copyright (c) 2017 ARM Limited.
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to
8 * deal in the Software without restriction, including without limitation the
9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 * sell copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in all
14 * copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 * SOFTWARE.
23 */
24#include "Framework.h"
25
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +010026#include "support/ToolchainSupport.h"
27
Moritz Pflanzer47752c92017-07-18 13:38:47 +010028#ifdef ARM_COMPUTE_CL
29#include "arm_compute/core/CL/OpenCL.h"
Anthony Barbierbf959222017-07-19 17:01:42 +010030#include "arm_compute/runtime/CL/CLScheduler.h"
Moritz Pflanzer47752c92017-07-18 13:38:47 +010031#endif /* ARM_COMPUTE_CL */
32
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +010033#include <chrono>
34#include <iostream>
35#include <sstream>
36#include <type_traits>
37
38namespace arm_compute
39{
40namespace test
41{
42namespace framework
43{
Moritz Pflanzera4f711b2017-07-05 11:02:23 +010044Framework::Framework()
45{
46 _available_instruments.emplace(InstrumentType::WALL_CLOCK_TIMER, Instrument::make_instrument<WallClockTimer>);
47#ifdef PMU_ENABLED
48 _available_instruments.emplace(InstrumentType::PMU_CYCLE_COUNTER, Instrument::make_instrument<CycleCounter>);
49 _available_instruments.emplace(InstrumentType::PMU_INSTRUCTION_COUNTER, Instrument::make_instrument<InstructionCounter>);
50#endif /* PMU_ENABLED */
51}
52
53std::set<InstrumentType> Framework::available_instruments() const
54{
55 std::set<InstrumentType> types;
56
57 for(const auto &instrument : _available_instruments)
58 {
59 types.emplace(instrument.first);
60 }
61
62 return types;
63}
64
Moritz Pflanzerbf234e02017-07-24 15:04:14 +010065std::map<TestResult::Status, int> Framework::count_test_results() const
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +010066{
Moritz Pflanzerbf234e02017-07-24 15:04:14 +010067 std::map<TestResult::Status, int> counts;
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +010068
69 for(const auto &test : _test_results)
70 {
Moritz Pflanzerbf234e02017-07-24 15:04:14 +010071 ++counts[test.second.status];
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +010072 }
73
Moritz Pflanzerbf234e02017-07-24 15:04:14 +010074 return counts;
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +010075}
76
77Framework &Framework::get()
78{
79 static Framework instance;
80 return instance;
81}
82
Moritz Pflanzerec2de0f2017-07-27 14:43:46 +010083void Framework::init(const std::vector<InstrumentType> &instruments, int num_iterations, DatasetMode mode, const std::string &name_filter, const std::string &id_filter, LogLevel log_level)
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +010084{
Moritz Pflanzerec2de0f2017-07-27 14:43:46 +010085 _test_filter = TestFilter(mode, name_filter, id_filter);
86 _num_iterations = num_iterations;
87 _log_level = log_level;
Moritz Pflanzera4f711b2017-07-05 11:02:23 +010088
89 _instruments = InstrumentType::NONE;
90
91 for(const auto &instrument : instruments)
92 {
93 _instruments |= instrument;
94 }
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +010095}
96
97std::string Framework::current_suite_name() const
98{
99 return join(_test_suite_name.cbegin(), _test_suite_name.cend(), "/");
100}
101
102void Framework::push_suite(std::string name)
103{
104 _test_suite_name.emplace_back(std::move(name));
105}
106
107void Framework::pop_suite()
108{
109 _test_suite_name.pop_back();
110}
111
Moritz Pflanzerc7d15032017-07-18 16:21:16 +0100112void Framework::add_test_info(std::string info)
113{
114 _test_info.emplace_back(std::move(info));
115}
116
117void Framework::clear_test_info()
118{
119 _test_info.clear();
120}
121
122bool Framework::has_test_info() const
123{
124 return !_test_info.empty();
125}
126
127void Framework::print_test_info(std::ostream &os) const
128{
Moritz Pflanzer8df3faf2017-07-28 13:57:53 +0100129 if(!_test_info.empty())
Moritz Pflanzerc7d15032017-07-18 16:21:16 +0100130 {
Moritz Pflanzer8df3faf2017-07-28 13:57:53 +0100131 os << "CONTEXT:\n";
132
133 for(const auto &str : _test_info)
134 {
135 os << " " << str << "\n";
136 }
Moritz Pflanzerc7d15032017-07-18 16:21:16 +0100137 }
138}
139
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100140void Framework::log_test_start(const TestInfo &info)
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100141{
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100142 if(_printer != nullptr && _log_level >= LogLevel::TESTS)
Moritz Pflanzer80fffae2017-07-05 11:02:37 +0100143 {
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100144 _printer->print_test_header(info);
Moritz Pflanzer80fffae2017-07-05 11:02:37 +0100145 }
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100146}
147
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100148void Framework::log_test_skipped(const TestInfo &info)
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100149{
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100150 static_cast<void>(info);
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100151}
152
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100153void Framework::log_test_end(const TestInfo &info)
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100154{
Moritz Pflanzer80fffae2017-07-05 11:02:37 +0100155 if(_printer != nullptr)
156 {
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100157 if(_log_level >= LogLevel::MEASUREMENTS)
158 {
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100159 _printer->print_measurements(_test_results.at(info).measurements);
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100160 }
161
162 if(_log_level >= LogLevel::TESTS)
163 {
164 _printer->print_test_footer();
165 }
Moritz Pflanzer80fffae2017-07-05 11:02:37 +0100166 }
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100167}
168
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100169void Framework::log_failed_expectation(const TestError &error)
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100170{
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100171 if(_log_level >= error.level() && _printer != nullptr)
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100172 {
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100173 _printer->print_error(error);
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100174 }
Moritz Pflanzere1103a82017-07-18 12:20:45 +0100175
176 if(_current_test_result != nullptr)
177 {
178 _current_test_result->status = TestResult::Status::FAILED;
179 }
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100180}
181
182int Framework::num_iterations() const
183{
184 return _num_iterations;
185}
186
187void Framework::set_num_iterations(int num_iterations)
188{
189 _num_iterations = num_iterations;
190}
191
192void Framework::set_throw_errors(bool throw_errors)
193{
194 _throw_errors = throw_errors;
195}
196
197bool Framework::throw_errors() const
198{
199 return _throw_errors;
200}
201
Moritz Pflanzerfa811652017-07-26 17:00:37 +0100202void Framework::set_stop_on_error(bool stop_on_error)
203{
204 _stop_on_error = stop_on_error;
205}
206
207bool Framework::stop_on_error() const
208{
209 return _stop_on_error;
210}
211
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100212void Framework::run_test(const TestInfo &info, TestCaseFactory &test_factory)
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100213{
Moritz Pflanzerbf234e02017-07-24 15:04:14 +0100214 if(test_factory.status() == TestCaseFactory::Status::DISABLED)
215 {
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100216 log_test_skipped(info);
217 set_test_result(info, TestResult(TestResult::Status::DISABLED));
Moritz Pflanzerbf234e02017-07-24 15:04:14 +0100218 return;
219 }
220
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100221 log_test_start(info);
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100222
Moritz Pflanzera4f711b2017-07-05 11:02:23 +0100223 Profiler profiler = get_profiler();
Moritz Pflanzere33eb642017-07-31 14:48:45 +0100224 TestResult result(TestResult::Status::NOT_RUN);
Moritz Pflanzere1103a82017-07-18 12:20:45 +0100225
226 _current_test_result = &result;
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100227
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100228 if(_log_level >= LogLevel::ERRORS && _printer != nullptr)
229 {
230 _printer->print_errors_header();
231 }
232
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100233 try
234 {
235 std::unique_ptr<TestCase> test_case = test_factory.make();
236
237 try
238 {
239 test_case->do_setup();
240
241 for(int i = 0; i < _num_iterations; ++i)
242 {
Moritz Pflanzera4f711b2017-07-05 11:02:23 +0100243 profiler.start();
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100244 test_case->do_run();
Anthony Barbierbf959222017-07-19 17:01:42 +0100245#ifdef ARM_COMPUTE_CL
246 if(opencl_is_available())
247 {
248 CLScheduler::get().sync();
249 }
250#endif /* ARM_COMPUTE_CL */
Moritz Pflanzera4f711b2017-07-05 11:02:23 +0100251 profiler.stop();
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100252 }
253
254 test_case->do_teardown();
Moritz Pflanzere33eb642017-07-31 14:48:45 +0100255
256 // Change status to success if no error has happend
257 if(result.status == TestResult::Status::NOT_RUN)
258 {
259 result.status = TestResult::Status::SUCCESS;
260 }
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100261 }
262 catch(const TestError &error)
263 {
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100264 if(_log_level >= error.level() && _printer != nullptr)
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100265 {
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100266 _printer->print_error(error);
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100267 }
268
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100269 result.status = TestResult::Status::FAILED;
270
271 if(_throw_errors)
272 {
273 throw;
274 }
275 }
Moritz Pflanzer47752c92017-07-18 13:38:47 +0100276#ifdef ARM_COMPUTE_CL
277 catch(const ::cl::Error &error)
278 {
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100279 if(_log_level >= LogLevel::ERRORS && _printer != nullptr)
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100280 {
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100281 std::stringstream stream;
282 stream << "Error code: " << error.err();
283 _printer->print_error(TestError(error.what(), LogLevel::ERRORS, stream.str()));
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100284 }
285
Moritz Pflanzer47752c92017-07-18 13:38:47 +0100286 result.status = TestResult::Status::FAILED;
287
288 if(_throw_errors)
289 {
290 throw;
291 }
292 }
293#endif /* ARM_COMPUTE_CL */
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100294 catch(const std::exception &error)
295 {
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100296 if(_log_level >= LogLevel::ERRORS && _printer != nullptr)
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100297 {
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100298 _printer->print_error(error);
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100299 }
300
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100301 result.status = TestResult::Status::CRASHED;
302
303 if(_throw_errors)
304 {
305 throw;
306 }
307 }
308 catch(...)
309 {
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100310 if(_log_level >= LogLevel::ERRORS && _printer != nullptr)
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100311 {
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100312 _printer->print_error(TestError("Received unknown exception"));
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100313 }
314
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100315 result.status = TestResult::Status::CRASHED;
316
317 if(_throw_errors)
318 {
319 throw;
320 }
321 }
322 }
323 catch(const std::exception &error)
324 {
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100325 if(_log_level >= LogLevel::ERRORS && _printer != nullptr)
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100326 {
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100327 _printer->print_error(error);
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100328 }
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100329
Moritz Pflanzere33eb642017-07-31 14:48:45 +0100330 result.status = TestResult::Status::CRASHED;
331
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100332 if(_throw_errors)
333 {
334 throw;
335 }
336 }
337 catch(...)
338 {
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100339 if(_log_level >= LogLevel::ERRORS && _printer != nullptr)
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100340 {
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100341 _printer->print_error(TestError("Received unknown exception"));
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100342 }
343
Moritz Pflanzere1103a82017-07-18 12:20:45 +0100344 result.status = TestResult::Status::CRASHED;
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100345
346 if(_throw_errors)
347 {
348 throw;
349 }
350 }
351
Moritz Pflanzer24a82462017-08-04 11:34:44 +0100352 if(_log_level >= LogLevel::ERRORS && _printer != nullptr)
353 {
354 _printer->print_errors_footer();
355 }
356
Moritz Pflanzere1103a82017-07-18 12:20:45 +0100357 _current_test_result = nullptr;
358
Moritz Pflanzerfa811652017-07-26 17:00:37 +0100359 if(result.status == TestResult::Status::FAILED)
Moritz Pflanzerbf234e02017-07-24 15:04:14 +0100360 {
Moritz Pflanzerfa811652017-07-26 17:00:37 +0100361 if(info.status == TestCaseFactory::Status::EXPECTED_FAILURE)
362 {
363 result.status = TestResult::Status::EXPECTED_FAILURE;
364 }
Moritz Pflanzere33eb642017-07-31 14:48:45 +0100365 }
366
367 if(result.status == TestResult::Status::FAILED || result.status == TestResult::Status::CRASHED)
368 {
369 if(_stop_on_error)
Moritz Pflanzerfa811652017-07-26 17:00:37 +0100370 {
371 throw std::runtime_error("Abort on first error.");
372 }
Moritz Pflanzerbf234e02017-07-24 15:04:14 +0100373 }
374
Moritz Pflanzera4f711b2017-07-05 11:02:23 +0100375 result.measurements = profiler.measurements();
376
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100377 set_test_result(info, result);
378 log_test_end(info);
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100379}
380
381bool Framework::run()
382{
383 // Clear old test results
384 _test_results.clear();
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100385
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100386 if(_printer != nullptr && _log_level >= LogLevel::TESTS)
Moritz Pflanzer80fffae2017-07-05 11:02:37 +0100387 {
388 _printer->print_run_header();
389 }
390
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100391 const std::chrono::time_point<std::chrono::high_resolution_clock> start = std::chrono::high_resolution_clock::now();
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100392
393 int id = 0;
394
395 for(auto &test_factory : _test_factories)
396 {
397 const std::string test_case_name = test_factory->name();
Moritz Pflanzerbf234e02017-07-24 15:04:14 +0100398 const TestInfo test_info{ id, test_case_name, test_factory->mode(), test_factory->status() };
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100399
Moritz Pflanzerec2de0f2017-07-27 14:43:46 +0100400 if(_test_filter.is_selected(test_info))
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100401 {
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100402 run_test(test_info, *test_factory);
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100403 }
404
405 ++id;
406 }
407
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100408 const std::chrono::time_point<std::chrono::high_resolution_clock> end = std::chrono::high_resolution_clock::now();
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100409
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100410 if(_printer != nullptr && _log_level >= LogLevel::TESTS)
Moritz Pflanzer80fffae2017-07-05 11:02:37 +0100411 {
412 _printer->print_run_footer();
413 }
414
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100415 auto runtime = std::chrono::duration_cast<std::chrono::seconds>(end - start);
416 std::map<TestResult::Status, int> results = count_test_results();
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100417
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100418 if(_log_level > LogLevel::NONE)
419 {
Moritz Pflanzer8df3faf2017-07-28 13:57:53 +0100420 std::cout << "Executed " << _test_results.size() << " test(s) ("
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100421 << results[TestResult::Status::SUCCESS] << " passed, "
422 << results[TestResult::Status::EXPECTED_FAILURE] << " expected failures, "
423 << results[TestResult::Status::FAILED] << " failed, "
424 << results[TestResult::Status::CRASHED] << " crashed, "
425 << results[TestResult::Status::DISABLED] << " disabled) in " << runtime.count() << " second(s)\n";
Moritz Pflanzer2ac50402017-07-24 15:52:54 +0100426 }
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100427
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100428 int num_successful_tests = results[TestResult::Status::SUCCESS] + results[TestResult::Status::EXPECTED_FAILURE];
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100429
Moritz Pflanzerbf234e02017-07-24 15:04:14 +0100430 return (static_cast<unsigned int>(num_successful_tests) == _test_results.size());
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100431}
432
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100433void Framework::set_test_result(TestInfo info, TestResult result)
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100434{
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100435 _test_results.emplace(std::move(info), std::move(result));
Moritz Pflanzera4f711b2017-07-05 11:02:23 +0100436}
437
Moritz Pflanzer80fffae2017-07-05 11:02:37 +0100438void Framework::print_test_results(Printer &printer) const
439{
440 printer.print_run_header();
441
442 for(const auto &test : _test_results)
443 {
444 printer.print_test_header(test.first);
445 printer.print_measurements(test.second.measurements);
446 printer.print_test_footer();
447 }
448
449 printer.print_run_footer();
450}
451
Moritz Pflanzera4f711b2017-07-05 11:02:23 +0100452Profiler Framework::get_profiler() const
453{
454 Profiler profiler;
455
456 for(const auto &instrument : _available_instruments)
457 {
458 if((instrument.first & _instruments) != InstrumentType::NONE)
459 {
460 profiler.add(instrument.second());
461 }
462 }
463
464 return profiler;
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100465}
466
Moritz Pflanzer80fffae2017-07-05 11:02:37 +0100467void Framework::set_printer(Printer *printer)
468{
469 _printer = printer;
470}
471
Moritz Pflanzer542002c2017-07-26 16:03:58 +0100472std::vector<TestInfo> Framework::test_infos() const
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100473{
Moritz Pflanzerbf234e02017-07-24 15:04:14 +0100474 std::vector<TestInfo> ids;
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100475
476 int id = 0;
477
478 for(const auto &factory : _test_factories)
479 {
Moritz Pflanzerbf234e02017-07-24 15:04:14 +0100480 TestInfo test_info{ id, factory->name(), factory->mode(), factory->status() };
481
Moritz Pflanzerec2de0f2017-07-27 14:43:46 +0100482 if(_test_filter.is_selected(test_info))
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100483 {
Moritz Pflanzerbf234e02017-07-24 15:04:14 +0100484 ids.emplace_back(std::move(test_info));
Moritz Pflanzerfc95ed22017-07-05 11:07:07 +0100485 }
486
487 ++id;
488 }
489
490 return ids;
491}
492} // namespace framework
493} // namespace test
494} // namespace arm_compute