Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 1 | /* |
| 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 | #ifndef ARM_COMPUTE_TEST_FRAMEWORK |
| 25 | #define ARM_COMPUTE_TEST_FRAMEWORK |
| 26 | |
Moritz Pflanzer | d03b00a | 2017-07-17 13:50:12 +0100 | [diff] [blame] | 27 | #include "DatasetModes.h" |
Moritz Pflanzer | 2ac5040 | 2017-07-24 15:52:54 +0100 | [diff] [blame] | 28 | #include "Exceptions.h" |
Moritz Pflanzer | a4f711b | 2017-07-05 11:02:23 +0100 | [diff] [blame] | 29 | #include "Profiler.h" |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 30 | #include "TestCase.h" |
| 31 | #include "TestCaseFactory.h" |
Moritz Pflanzer | ec2de0f | 2017-07-27 14:43:46 +0100 | [diff] [blame] | 32 | #include "TestFilter.h" |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 33 | #include "TestResult.h" |
| 34 | #include "Utils.h" |
Moritz Pflanzer | a4f711b | 2017-07-05 11:02:23 +0100 | [diff] [blame] | 35 | #include "instruments/Instruments.h" |
Moritz Pflanzer | 80fffae | 2017-07-05 11:02:37 +0100 | [diff] [blame] | 36 | #include "printers/Printer.h" |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 37 | |
| 38 | #include <algorithm> |
| 39 | #include <chrono> |
| 40 | #include <map> |
| 41 | #include <memory> |
| 42 | #include <numeric> |
| 43 | #include <ostream> |
| 44 | #include <regex> |
| 45 | #include <set> |
| 46 | #include <sstream> |
| 47 | #include <string> |
| 48 | #include <tuple> |
| 49 | #include <vector> |
| 50 | |
| 51 | namespace arm_compute |
| 52 | { |
| 53 | namespace test |
| 54 | { |
| 55 | namespace framework |
| 56 | { |
Moritz Pflanzer | 542002c | 2017-07-26 16:03:58 +0100 | [diff] [blame] | 57 | /** Information about a test case. |
| 58 | * |
| 59 | * A test can be identified either via its id or via its name. Additionally |
| 60 | * each test is tagged with the data set mode in which it will be used and |
| 61 | * its status. |
| 62 | * |
| 63 | * @note The mapping between test id and test name is not guaranteed to be |
| 64 | * stable. It is subject to change as new test are added. |
| 65 | */ |
| 66 | struct TestInfo |
| 67 | { |
| 68 | int id; |
| 69 | std::string name; |
| 70 | DatasetMode mode; |
| 71 | TestCaseFactory::Status status; |
| 72 | }; |
| 73 | |
| 74 | inline bool operator<(const TestInfo &lhs, const TestInfo &rhs) |
| 75 | { |
| 76 | return lhs.id < rhs.id; |
| 77 | } |
| 78 | |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 79 | /** Main framework class. |
| 80 | * |
| 81 | * Keeps track of the global state, owns all test cases and collects results. |
| 82 | */ |
| 83 | class Framework final |
| 84 | { |
| 85 | public: |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 86 | /** Access to the singleton. |
| 87 | * |
| 88 | * @return Unique instance of the framework class. |
| 89 | */ |
| 90 | static Framework &get(); |
| 91 | |
Moritz Pflanzer | a4f711b | 2017-07-05 11:02:23 +0100 | [diff] [blame] | 92 | /** Supported instrument types for benchmarking. |
| 93 | * |
| 94 | * @return Set of all available instrument types. |
| 95 | */ |
| 96 | std::set<InstrumentType> available_instruments() const; |
| 97 | |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 98 | /** Init the framework. |
| 99 | * |
Moritz Pflanzer | ec2de0f | 2017-07-27 14:43:46 +0100 | [diff] [blame] | 100 | * @see TestFilter::TestFilter for the format of the string to filter ids. |
| 101 | * |
Moritz Pflanzer | a4f711b | 2017-07-05 11:02:23 +0100 | [diff] [blame] | 102 | * @param[in] instruments Instrument types that will be used for benchmarking. |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 103 | * @param[in] num_iterations Number of iterations per test. |
Moritz Pflanzer | d03b00a | 2017-07-17 13:50:12 +0100 | [diff] [blame] | 104 | * @param[in] mode Dataset mode. |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 105 | * @param[in] name_filter Regular expression to filter tests by name. Only matching tests will be executed. |
Moritz Pflanzer | ec2de0f | 2017-07-27 14:43:46 +0100 | [diff] [blame] | 106 | * @param[in] id_filter String to match selected test ids. Only matching tests will be executed. |
Moritz Pflanzer | 2ac5040 | 2017-07-24 15:52:54 +0100 | [diff] [blame] | 107 | * @param[in] log_level Verbosity of the output. |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 108 | */ |
Moritz Pflanzer | ec2de0f | 2017-07-27 14:43:46 +0100 | [diff] [blame] | 109 | void 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 Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 110 | |
| 111 | /** Add a new test suite. |
| 112 | * |
| 113 | * @warning Cannot be used at execution time. It can only be used for |
| 114 | * registering test cases. |
| 115 | * |
| 116 | * @param[in] name Name of the added test suite. |
| 117 | * |
| 118 | * @return Name of the current test suite. |
| 119 | */ |
| 120 | void push_suite(std::string name); |
| 121 | |
| 122 | /** Remove innermost test suite. |
| 123 | * |
| 124 | * @warning Cannot be used at execution time. It can only be used for |
| 125 | * registering test cases. |
| 126 | */ |
| 127 | void pop_suite(); |
| 128 | |
| 129 | /** Add a test case to the framework. |
| 130 | * |
| 131 | * @param[in] test_name Name of the new test case. |
Moritz Pflanzer | d03b00a | 2017-07-17 13:50:12 +0100 | [diff] [blame] | 132 | * @param[in] mode Mode in which to include the test. |
Moritz Pflanzer | bf234e0 | 2017-07-24 15:04:14 +0100 | [diff] [blame] | 133 | * @param[in] status Status of the test case. |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 134 | */ |
| 135 | template <typename T> |
Moritz Pflanzer | bf234e0 | 2017-07-24 15:04:14 +0100 | [diff] [blame] | 136 | void add_test_case(std::string test_name, DatasetMode mode, TestCaseFactory::Status status); |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 137 | |
| 138 | /** Add a data test case to the framework. |
| 139 | * |
| 140 | * @param[in] test_name Name of the new test case. |
Moritz Pflanzer | d03b00a | 2017-07-17 13:50:12 +0100 | [diff] [blame] | 141 | * @param[in] mode Mode in which to include the test. |
Moritz Pflanzer | bf234e0 | 2017-07-24 15:04:14 +0100 | [diff] [blame] | 142 | * @param[in] status Status of the test case. |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 143 | * @param[in] description Description of @p data. |
| 144 | * @param[in] data Data that will be used as input to the test. |
| 145 | */ |
| 146 | template <typename T, typename D> |
Moritz Pflanzer | bf234e0 | 2017-07-24 15:04:14 +0100 | [diff] [blame] | 147 | void add_data_test_case(std::string test_name, DatasetMode mode, TestCaseFactory::Status status, std::string description, D &&data); |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 148 | |
Moritz Pflanzer | c7d1503 | 2017-07-18 16:21:16 +0100 | [diff] [blame] | 149 | /** Add info string for the next expectation/assertion. |
| 150 | * |
| 151 | * @param[in] info Info string. |
| 152 | */ |
| 153 | void add_test_info(std::string info); |
| 154 | |
| 155 | /** Clear the collected test info. */ |
| 156 | void clear_test_info(); |
| 157 | |
| 158 | /** Check if any info has been registered. |
| 159 | * |
| 160 | * @return True if there is test info. |
| 161 | */ |
| 162 | bool has_test_info() const; |
| 163 | |
| 164 | /** Print test info. |
| 165 | * |
| 166 | * @param[out] os Output stream. |
| 167 | */ |
| 168 | void print_test_info(std::ostream &os) const; |
| 169 | |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 170 | /** Tell the framework that execution of a test starts. |
| 171 | * |
Moritz Pflanzer | 542002c | 2017-07-26 16:03:58 +0100 | [diff] [blame] | 172 | * @param[in] info Test info. |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 173 | */ |
Moritz Pflanzer | 542002c | 2017-07-26 16:03:58 +0100 | [diff] [blame] | 174 | void log_test_start(const TestInfo &info); |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 175 | |
| 176 | /** Tell the framework that a test case is skipped. |
| 177 | * |
Moritz Pflanzer | 542002c | 2017-07-26 16:03:58 +0100 | [diff] [blame] | 178 | * @param[in] info Test info. |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 179 | */ |
Moritz Pflanzer | 542002c | 2017-07-26 16:03:58 +0100 | [diff] [blame] | 180 | void log_test_skipped(const TestInfo &info); |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 181 | |
| 182 | /** Tell the framework that a test case finished. |
| 183 | * |
Moritz Pflanzer | 542002c | 2017-07-26 16:03:58 +0100 | [diff] [blame] | 184 | * @param[in] info Test info. |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 185 | */ |
Moritz Pflanzer | 542002c | 2017-07-26 16:03:58 +0100 | [diff] [blame] | 186 | void log_test_end(const TestInfo &info); |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 187 | |
| 188 | /** Tell the framework that the currently running test case failed a non-fatal expectation. |
| 189 | * |
Moritz Pflanzer | 24a8246 | 2017-08-04 11:34:44 +0100 | [diff] [blame] | 190 | * @param[in] error Description of the error. |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 191 | */ |
Moritz Pflanzer | 24a8246 | 2017-08-04 11:34:44 +0100 | [diff] [blame] | 192 | void log_failed_expectation(const TestError &error); |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 193 | |
steniu01 | 172c58d | 2017-08-31 13:49:08 +0100 | [diff] [blame] | 194 | /** Print the debug information that has already been logged |
| 195 | * |
| 196 | * @param[in] info Description of the log info. |
| 197 | */ |
| 198 | void log_info(const std::string &info); |
| 199 | |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 200 | /** Number of iterations per test case. |
| 201 | * |
| 202 | * @return Number of iterations per test case. |
| 203 | */ |
| 204 | int num_iterations() const; |
| 205 | |
| 206 | /** Set number of iterations per test case. |
| 207 | * |
| 208 | * @param[in] num_iterations Number of iterations per test case. |
| 209 | */ |
| 210 | void set_num_iterations(int num_iterations); |
| 211 | |
| 212 | /** Should errors be caught or thrown by the framework. |
| 213 | * |
| 214 | * @return True if errors are thrown. |
| 215 | */ |
| 216 | bool throw_errors() const; |
| 217 | |
| 218 | /** Set whether errors are caught or thrown by the framework. |
| 219 | * |
| 220 | * @param[in] throw_errors True if errors should be thrown. |
| 221 | */ |
| 222 | void set_throw_errors(bool throw_errors); |
| 223 | |
Moritz Pflanzer | fa81165 | 2017-07-26 17:00:37 +0100 | [diff] [blame] | 224 | /** Indicates if test execution is stopped after the first failed test. |
| 225 | * |
| 226 | * @return True if the execution is going to be aborted after the first failed test. |
| 227 | */ |
| 228 | bool stop_on_error() const; |
| 229 | |
| 230 | /** Set whether to abort execution after the first failed test. |
| 231 | * |
| 232 | * @param[in] stop_on_error True if execution is going to be aborted after first failed test. |
| 233 | */ |
| 234 | void set_stop_on_error(bool stop_on_error); |
| 235 | |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 236 | /** Run all enabled test cases. |
| 237 | * |
| 238 | * @return True if all test cases executed successful. |
| 239 | */ |
| 240 | bool run(); |
| 241 | |
| 242 | /** Set the result for an executed test case. |
| 243 | * |
Moritz Pflanzer | 542002c | 2017-07-26 16:03:58 +0100 | [diff] [blame] | 244 | * @param[in] info Test info. |
| 245 | * @param[in] result Execution result. |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 246 | */ |
Moritz Pflanzer | 542002c | 2017-07-26 16:03:58 +0100 | [diff] [blame] | 247 | void set_test_result(TestInfo info, TestResult result); |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 248 | |
Moritz Pflanzer | 80fffae | 2017-07-05 11:02:37 +0100 | [diff] [blame] | 249 | /** Use the specified printer to output test results from the last run. |
| 250 | * |
| 251 | * This method can be used if the test results need to be obtained using a |
| 252 | * different printer than the one managed by the framework. |
| 253 | * |
| 254 | * @param[in] printer Printer used to output results. |
| 255 | */ |
| 256 | void print_test_results(Printer &printer) const; |
| 257 | |
Moritz Pflanzer | a4f711b | 2017-07-05 11:02:23 +0100 | [diff] [blame] | 258 | /** Factory method to obtain a configured profiler. |
| 259 | * |
| 260 | * The profiler enables all instruments that have been passed to the @ref |
| 261 | * init method. |
| 262 | * |
| 263 | * @return Configured profiler to collect benchmark results. |
| 264 | */ |
| 265 | Profiler get_profiler() const; |
| 266 | |
Moritz Pflanzer | 80fffae | 2017-07-05 11:02:37 +0100 | [diff] [blame] | 267 | /** Set the printer used for the output of test results. |
| 268 | * |
| 269 | * @param[in] printer Pointer to a printer. |
| 270 | */ |
| 271 | void set_printer(Printer *printer); |
| 272 | |
Moritz Pflanzer | bf234e0 | 2017-07-24 15:04:14 +0100 | [diff] [blame] | 273 | /** List of @ref TestInfo's. |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 274 | * |
| 275 | * @return Vector with all test ids. |
| 276 | */ |
Moritz Pflanzer | 542002c | 2017-07-26 16:03:58 +0100 | [diff] [blame] | 277 | std::vector<TestInfo> test_infos() const; |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 278 | |
steniu01 | 172c58d | 2017-08-31 13:49:08 +0100 | [diff] [blame] | 279 | /** Get the current logging level |
| 280 | * |
| 281 | * @return The current logging level. |
| 282 | */ |
| 283 | LogLevel log_level() const; |
| 284 | |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 285 | private: |
Moritz Pflanzer | a4f711b | 2017-07-05 11:02:23 +0100 | [diff] [blame] | 286 | Framework(); |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 287 | ~Framework() = default; |
| 288 | |
| 289 | Framework(const Framework &) = delete; |
| 290 | Framework &operator=(const Framework &) = delete; |
| 291 | |
Moritz Pflanzer | 542002c | 2017-07-26 16:03:58 +0100 | [diff] [blame] | 292 | void run_test(const TestInfo &info, TestCaseFactory &test_factory); |
Moritz Pflanzer | bf234e0 | 2017-07-24 15:04:14 +0100 | [diff] [blame] | 293 | std::map<TestResult::Status, int> count_test_results() const; |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 294 | |
| 295 | /** Returns the current test suite name. |
| 296 | * |
| 297 | * @warning Cannot be used at execution time to get the test suite of the |
| 298 | * currently executed test case. It can only be used for registering test |
| 299 | * cases. |
| 300 | * |
| 301 | * @return Name of the current test suite. |
| 302 | */ |
| 303 | std::string current_suite_name() const; |
| 304 | |
| 305 | std::vector<std::string> _test_suite_name{}; |
| 306 | std::vector<std::unique_ptr<TestCaseFactory>> _test_factories{}; |
Moritz Pflanzer | 542002c | 2017-07-26 16:03:58 +0100 | [diff] [blame] | 307 | std::map<TestInfo, TestResult> _test_results{}; |
| 308 | int _num_iterations{ 1 }; |
| 309 | bool _throw_errors{ false }; |
Moritz Pflanzer | fa81165 | 2017-07-26 17:00:37 +0100 | [diff] [blame] | 310 | bool _stop_on_error{ false }; |
Moritz Pflanzer | 542002c | 2017-07-26 16:03:58 +0100 | [diff] [blame] | 311 | Printer *_printer{ nullptr }; |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 312 | |
Moritz Pflanzer | a4f711b | 2017-07-05 11:02:23 +0100 | [diff] [blame] | 313 | using create_function = std::unique_ptr<Instrument>(); |
| 314 | std::map<InstrumentType, create_function *> _available_instruments{}; |
| 315 | |
Moritz Pflanzer | 09e4f98 | 2017-08-30 12:47:06 +0100 | [diff] [blame] | 316 | std::set<InstrumentType> _instruments{ InstrumentType::NONE }; |
Moritz Pflanzer | ec2de0f | 2017-07-27 14:43:46 +0100 | [diff] [blame] | 317 | TestFilter _test_filter{}; |
Moritz Pflanzer | 2ac5040 | 2017-07-24 15:52:54 +0100 | [diff] [blame] | 318 | LogLevel _log_level{ LogLevel::ALL }; |
Moritz Pflanzer | c7d1503 | 2017-07-18 16:21:16 +0100 | [diff] [blame] | 319 | TestResult *_current_test_result{ nullptr }; |
| 320 | std::vector<std::string> _test_info{}; |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 321 | }; |
| 322 | |
| 323 | template <typename T> |
Moritz Pflanzer | bf234e0 | 2017-07-24 15:04:14 +0100 | [diff] [blame] | 324 | inline void Framework::add_test_case(std::string test_name, DatasetMode mode, TestCaseFactory::Status status) |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 325 | { |
Moritz Pflanzer | bf234e0 | 2017-07-24 15:04:14 +0100 | [diff] [blame] | 326 | _test_factories.emplace_back(support::cpp14::make_unique<SimpleTestCaseFactory<T>>(current_suite_name(), std::move(test_name), mode, status)); |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 327 | } |
| 328 | |
| 329 | template <typename T, typename D> |
Moritz Pflanzer | bf234e0 | 2017-07-24 15:04:14 +0100 | [diff] [blame] | 330 | inline void Framework::add_data_test_case(std::string test_name, DatasetMode mode, TestCaseFactory::Status status, std::string description, D &&data) |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 331 | { |
| 332 | // WORKAROUND for GCC 4.9 |
| 333 | // The function should get *it which is tuple but that seems to trigger a |
| 334 | // bug in the compiler. |
Moritz Pflanzer | bf234e0 | 2017-07-24 15:04:14 +0100 | [diff] [blame] | 335 | auto tmp = std::unique_ptr<DataTestCaseFactory<T, decltype(*std::declval<D>())>>(new DataTestCaseFactory<T, decltype(*std::declval<D>())>(current_suite_name(), std::move(test_name), mode, status, |
Moritz Pflanzer | fc95ed2 | 2017-07-05 11:07:07 +0100 | [diff] [blame] | 336 | std::move(description), *data)); |
| 337 | _test_factories.emplace_back(std::move(tmp)); |
| 338 | } |
| 339 | } // namespace framework |
| 340 | } // namespace test |
| 341 | } // namespace arm_compute |
| 342 | #endif /* ARM_COMPUTE_TEST_FRAMEWORK */ |