Lines Matching full:the
7 * modify it under the terms of the GNU Lesser General Public
8 * License version 2.1 as published by the Free Software Foundation.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * You should have received a copy of the GNU Lesser General Public
41 * and then executes the QMP protocol asking for the list of devices
44 * for each of these items, it looks up the corresponding qgraph node,
45 * setting it as available. The list currently returns all devices that
94 /* compares the current command line with the in restart_qemu_or_continue()
95 * one previously executed: if they are the same, in restart_qemu_or_continue()
98 * the new command line in restart_qemu_or_continue()
105 } else { /* if cmd line is the same, reset the guest */ in restart_qemu_or_continue()
117 /* The argument to run_one_test, which is the test function that is registered
118 * with GTest, is a vector of strings. The first item is the initial command
119 * line (before it is modified by the test's "before" function), the remaining
120 * items are node names forming the path to the test node.
136 * walks the path invoking all constructors and
137 * passing the corresponding parameter in order to
138 * continue the objects allocation.
139 * Once the test is reached, its function is executed.
141 * Since the machine and QEDGE_CONSUMED_BY nodes allocate
142 * memory in the constructor, g_test_queue_destroy is used so
143 * that after execution they can be safely free'd. The test's
147 * char *, where arg[0] is a pointer to the command line
149 * the test, and the remaining elements represent the actual objects
152 * The order of execution is the following:
153 * 1) @before test function as defined in the given QOSGraphTestOptions
156 * start the hardware (*_device_enable functions)
203 * path_str will be only used to build the test name, and won't need the
206 * path_vec is used to allocate all constructors of the path nodes.
209 * Position 0 is special, initially contains just the <machine> name of
210 * the node, (ex for "x86_64/pc" it will be "pc"), used to build the test
211 * path (see below). After it will contain the command line used to start
214 * Note that the machine node name must be with format <arch>/<machine>
215 * (ex "x86_64/pc"), because it will identify the node "x86_64/pc"
218 * initially contains the <machine> at position 0 ("pc"),
219 * and the node name at position 1 (<arch>/<machine>)
220 * ("x86_64/pc"), followed by the rest of the nodes.
227 /* etype set to QEDGE_CONSUMED_BY so that machine can add to the command line */ in walk_path()
289 * The path must not have the <arch>, qtest_add_data_func adds it. in walk_path()
294 * and add the command line at position 0. in walk_path()
317 * main(): heart of the qgraph framework.
319 * - Initializes the glib test framework
320 * - Creates the graph by invoking the various _init constructors
321 * - Starts QEMU to mark the available devices
322 * - Walks the graph, and each path is added to
323 * the glib test framework (walk_path)
324 * - Runs the tests, calling allocate_object() and allocating the