1FMF(1) User Commands FMF(1)
2
3
4
6 fmf - Flexible Metadata Format
7
9 The fmf Python module and command line tool implement a flexible format
10 for defining metadata in plain text files which can be stored close to
11 the source code and structured in a hierarchical way with support for
12 inheritance.
13
14 Although the proposal initially originated from user stories centered
15 around test execution, the format is general and thus can be used in
16 broader scenarios, e.g. test coverage mapping.
17
18 Using this approach it's also possible to combine both test execution
19 metadata and test coverage information. Thanks to elasticity and hier‐
20 archy it provides ability to organize data into well-sized text docu‐
21 ments while preventing duplication.
22
24 Command line usage is straightforward:
25
26 fmf command [options]
27
28 There are following commands available:
29
30 fmf ls List identifiers of available objects
31 fmf show Show metadata of available objects
32 fmf init Initialize a new metadata tree
33
35 List names of all objects stored in the metadata tree:
36
37 fmf ls
38
39 Show all test metadata (with 'test' attribute defined):
40
41 fmf show --key test
42
43 Show metadata for all tree nodes (not only leaves):
44
45 fmf show --key test --whole
46
47 List all attributes for the /recursion tests:
48
49 fmf show --key test --name /recursion
50
51 Show all covered requirements:
52
53 fmf show --key requirement --key coverage
54
55 Search for all tests with the Tier1 tag defined and show a brief sum‐
56 mary of what was found:
57
58 fmf show --key test --filter tags:Tier1 --verbose
59
60 Initialize a new metadata tree in the current directory:
61
62 fmf init
63
64 Check help message of individual commands for the full list of avail‐
65 able options.
66
68 Here is the list of the most frequently used options.
69
70 Select
71 Limit which metadata should be listed.
72
73 --key=KEYS
74 Key content definition (required attributes)
75
76 --name=NAMES
77 List objects with name matching regular expression
78
79 --filter=FLTRS
80 Apply advanced filter when selecting objects
81
82 --whole
83 Consider the whole tree (leaves only by default)
84
85 For filtering regular expressions can be used as well. See pydoc
86 fmf.filter for advanced filtering options.
87
88 Format
89 Choose the best format for showing the metadata.
90
91 --format=FMT
92 Custom output format using the {} expansion
93
94 --value=VALUES
95 Values for the custom formatting string
96
97 See online documentation for details about custom format.
98
99 Utils
100 Various utility options.
101
102 --path PATHS
103 Path to the metadata tree (default: current directory)
104
105 --verbose
106 Print additional information standard error output
107
108 --debug
109 Turn on debugging output, do not catch exceptions
110
111 Check help message of individual commands for the full list of avail‐
112 able options.
113
115 The fmf package is available in Fedora and EPEL:
116
117 dnf install fmf
118
119 Install the latest version from the Copr repository:
120
121 dnf copr enable psss/fmf
122 dnf install fmf
123
124 or use PIP (sudo required if not in a virtualenv):
125
126 pip install fmf
127
128 See documentation for more details about installation options.
129
131 Git: https://github.com/psss/fmf
132
133 Docs: http://fmf.readthedocs.io/
134
135 Issues: https://github.com/psss/fmf/issues
136
137 Releases: https://github.com/psss/fmf/releases
138
139 Copr: http://copr.fedoraproject.org/coprs/psss/fmf
140
141 PIP: https://pypi.python.org/pypi/fmf
142
143 Travis: https://travis-ci.org/psss/fmf
144
145 Coveralls: https://coveralls.io/github/psss/fmf
146
148 Petr Šplíchal, Jakub Krysl, Jan Ščotka, Alois Mahdal and Cleber Rosa.
149
151 Copyright (c) 2018 Red Hat, Inc.
152
153 This program is free software; you can redistribute it and/or modify it
154 under the terms of the GNU General Public License as published by the
155 Free Software Foundation; either version 2 of the License, or (at your
156 option) any later version.
157
158
159
160
161 January 2018 FMF(1)