tests: add test for list-plugins CLI command
[babeltrace.git] / tests / data / cli / list-plugins / bt_plugin_list_plugins.py
1 #
2 # Copyright (C) 2019 EfficiOS Inc.
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; only version 2
7 # of the License.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 #
18
19 import bt2
20
21
22 @bt2.plugin_component_class
23 class ThisIsASource(
24 bt2._UserSourceComponent, message_iterator_class=bt2._UserMessageIterator
25 ):
26 pass
27
28
29 @bt2.plugin_component_class
30 class ThisIsAFilter(
31 bt2._UserFilterComponent, message_iterator_class=bt2._UserMessageIterator
32 ):
33 pass
34
35
36 @bt2.plugin_component_class
37 class ThisIsASink(bt2._UserSinkComponent):
38 def _user_consume(self):
39 pass
40
41
42 bt2.register_plugin(
43 __name__,
44 "this-is-a-plugin",
45 version=(1, 2, 3, 'bob'),
46 description='A plugin',
47 author='Jorge Mario Bergoglio',
48 license='The license',
49 )
This page took 0.029462 seconds and 4 git commands to generate.