|
1 | | -# Copyright (c) 2023, INRIA |
| 1 | +# Copyright (c) 2023, Inria |
2 | 2 | # Copyright (c) 2023, University of Lille |
3 | 3 | # All rights reserved. |
4 | | - |
| 4 | +# |
5 | 5 | # Redistribution and use in source and binary forms, with or without |
6 | 6 | # modification, are permitted provided that the following conditions are met: |
7 | | - |
| 7 | +# |
8 | 8 | # * Redistributions of source code must retain the above copyright notice, this |
9 | 9 | # list of conditions and the following disclaimer. |
10 | | - |
| 10 | +# |
11 | 11 | # * Redistributions in binary form must reproduce the above copyright notice, |
12 | 12 | # this list of conditions and the following disclaimer in the documentation |
13 | 13 | # and/or other materials provided with the distribution. |
14 | | - |
| 14 | +# |
15 | 15 | # * Neither the name of the copyright holder nor the names of its |
16 | 16 | # contributors may be used to endorse or promote products derived from |
17 | 17 | # this software without specific prior written permission. |
18 | | - |
| 18 | +# |
19 | 19 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
20 | 20 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
21 | 21 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
|
26 | 26 | # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
27 | 27 | # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 | 28 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 | + |
29 | 30 | import os |
30 | 31 | import sys |
31 | 32 | from copy import deepcopy |
32 | 33 |
|
33 | 34 | import pytest |
| 35 | + |
34 | 36 | import tests.utils.cli as test_files_module |
35 | 37 | from powerapi.cli.binding_manager import PreProcessorBindingManager |
36 | | -from powerapi.cli.generator import PullerGenerator, PusherGenerator, COMPONENT_TYPE_KEY, LISTENER_ACTOR_KEY, PreProcessorGenerator |
| 38 | +from powerapi.cli.config_parser import SubgroupConfigParser, BaseConfigParser, store_true, RootConfigParser |
| 39 | +from powerapi.cli.generator import PullerGenerator, PusherGenerator, PreProcessorGenerator |
| 40 | +from powerapi.cli.parsing_manager import RootConfigParsingManager, SubgroupConfigParsingManager |
37 | 41 | from powerapi.dispatcher import DispatcherActor, RouteTable |
38 | 42 | from powerapi.filter import Filter |
39 | 43 | from tests.utils.cli.base_config_parser import load_configuration_from_json_file, generate_cli_configuration_from_json_file |
40 | | -from powerapi.cli.config_parser import SubgroupConfigParser, BaseConfigParser, store_true, RootConfigParser |
41 | | -from powerapi.cli.parsing_manager import RootConfigParsingManager, SubgroupConfigParsingManager |
42 | 44 |
|
43 | 45 |
|
44 | 46 | @pytest.fixture(name="invalid_csv_io_stream_config") |
|
0 commit comments