Lines Matching +full:remove +full:- +full:item
40 "'--config' and '--command' options are not supported.", file=sys.stderr)
96 return -term_signal
117 The test log will include application (e.g. 'qemu-img') logs besides info
125 Path to qemu-img and qemu-io will be retrieved from 'QEMU_IMG' and
136 self.current_dir = os.path.join(work_dir, 'test-' + test_id)
138 os.environ.get('QEMU_IMG', 'qemu-img').strip().split(' ')
139 self.qemu_io = os.environ.get('QEMU_IO', 'qemu-io').strip().split(' ')
140 self.commands = [['qemu-img', 'check', '-f', 'qcow2', '$test_img'],
141 ['qemu-img', 'info', '-f', 'qcow2', '$test_img'],
142 ['qemu-io', '$test_img', '-c', 'read $off $len'],
143 ['qemu-io', '$test_img', '-c', 'write $off $len'],
144 ['qemu-io', '$test_img', '-c',
146 ['qemu-io', '$test_img', '-c',
148 ['qemu-io', '$test_img', '-c', 'flush'],
149 ['qemu-io', '$test_img', '-c',
151 ['qemu-io', '$test_img', '-c',
155 ['qemu-img', 'convert', '-f', 'qcow2', '-O', fmt,
176 by 'qemu-img create'.
178 # All formats supported by the 'qemu-img create' command.
184 cmd = self.qemu_img + ['create', '-f', backing_file_fmt,
215 for item in commands:
222 if item[0] == 'qemu-img':
224 elif item[0] == 'qemu-io':
228 % item[0], sys.stderr, self.log, self.parent_log)
231 for v in item[1:]:
235 .replace('$len', str(end - start)))
256 % (test_summary, str_signal(-retcode)),
266 os.remove('copy.img')
286 runner.py -c '[["qemu-img", "info", "$test_img"]]' /tmp/test qcow2
289 -h, --help display this help and exit
290 -d, --duration=NUMBER finish tests after NUMBER of seconds
291 -c, --command=JSON run tests for all commands specified in
293 -s, --seed=STRING seed for a test image generation,
295 --config=JSON take fuzzer configuration from the JSON
297 -k, --keep_passed don't remove folders of passed tests
298 -v, --verbose log information about passed tests
302 '--command' accepts a JSON array of commands. Each command presents
304 e.g. ["qemu-io", "$test_img", "-c", "write $off $len"].
306 Supported application aliases: 'qemu-img' and 'qemu-io'.
314 Paths to 'qemu-img' and 'qemu-io' are retrevied from 'QEMU_IMG' and
317 '--config' accepts a JSON array of fields to be fuzzed, e.g.
326 If '--config' argument is specified, fields not listed in
352 return (duration is None) or (current_time - start_time < duration)
359 print("Error: %s\n\nTry 'runner.py --help' for more information" % e, file=sys.stderr)
369 if opt in ('-h', '--help'):
372 elif opt in ('-c', '--command'):
379 elif opt in ('-k', '--keep_passed'):
381 elif opt in ('-v', '--verbose'):
383 elif opt in ('-s', '--seed'):
385 elif opt in ('-d', '--duration'):
387 elif opt == '--config':
396 print("Expected two parameters\nTry 'runner.py --help'" \
407 # Remove a script extension from image generator module if any
418 resource.setrlimit(resource.RLIMIT_CORE, (-1, -1))