/openbmc/qemu/tests/qemu-iotests/ |
H A D | 296 | 27 test_img = os.path.join(iotests.test_dir, 'test.img') variable 128 'filename': test_img, 182 self.createImg(test_img, self.secrets[0]); 185 self.openImageQmp(self.vm1, "testdev", test_img, self.secrets[0]) 190 self.openImageQmp(self.vm2, "testdev", test_img, self.secrets[0]) 207 self.addKey(test_img, self.secrets[0], self.secrets[2]) 211 os.remove(test_img) 218 self.createImg(test_img, self.secrets[0]); 221 self.openImageQmp(self.vm1, "testdev", test_img, self.secrets[0], 225 self.openImageQmp(self.vm2, "testdev", test_img, self.secrets[0]) [all …]
|
H A D | 163 | 25 test_img = os.path.join(iotests.test_dir, 'test.img') variable 86 qemu_img('create', '-f', iotests.imgfmt, test_img, self.image_len) 93 test_img, self.image_len) 100 os.remove(test_img) 104 self.assertEqual(image_size(test_img), image_size(check_img), 106 self.image_check[iotests.imgfmt](self, test_img) 110 qemu_img('check', test_img) 113 qemu_img('resize', '-f', iotests.imgfmt, '--shrink', test_img, 116 qemu_io('-c', f"read -P 0x00 0 {self.shrink_size}", test_img) 124 test_img) [all …]
|
H A D | 295 | 27 test_img = os.path.join(iotests.test_dir, 'test.img') variable 113 'filename': test_img, 200 self.createImg(test_img, self.secrets[0]); 201 self.openImageQmp("testdev", test_img, self.secrets[0]) 214 self.openImageQmp("testdev", test_img, self.secrets[1]) 218 os.remove(test_img) 225 self.createImg(test_img, self.secrets[0]); 226 self.openImageQmp("testdev", test_img, self.secrets[0]) 242 os.remove(test_img) 246 self.createImg(test_img, self.secrets[0]); [all …]
|
H A D | 041 | 31 test_img = os.path.join(iotests.test_dir, 'test.img') variable 50 '-o', 'backing_file=%s' % backing_img, '-F', 'raw', test_img) 51 self.vm = iotests.VM().add_drive(test_img, "node-name=top,backing.node-name=base") 58 os.remove(test_img) 75 self.assertTrue(iotests.compare_images(test_img, target_img), 86 self.assert_qmp(result, 'return[0]/inserted/file', test_img) 96 self.assert_qmp(result, 'return[0]/inserted/file', test_img) 98 self.assertTrue(iotests.compare_images(test_img, target_img), 120 self.assertTrue(iotests.compare_images(test_img, target_img), 134 self.assertTrue(iotests.compare_images(test_img, target_img), [all …]
|
H A D | 132 | 27 test_img = os.path.join(iotests.test_dir, 'test.img') variable 35 qemu_img('create', '-f', iotests.imgfmt, test_img, str(TestSingleDrive.image_len)) 36 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x5d 0 2M', test_img) 38 self.vm = iotests.VM().add_drive(test_img, 'discard=unmap') 43 os.remove(test_img) 55 self.assertTrue(iotests.compare_images(test_img, target_img),
|
H A D | 152 | 26 test_img = os.path.join(iotests.test_dir, 'test.img') variable 31 qemu_img('create', '-f', iotests.imgfmt, test_img, '512') 32 self.vm = iotests.VM().add_drive(test_img) 37 os.remove(test_img) 48 self.assertEqual(iotests.image_size(test_img), iotests.image_size(target_img), 58 self.assertEqual(iotests.image_size(test_img), iotests.image_size(target_img),
|
H A D | 044 | 32 test_img = os.path.join(iotests.test_dir, 'test.img') variable 104 qemu_img('create', '-f', iotests.imgfmt, '-o', 'cluster_size=512', test_img, '16G') 105 self.preallocate(test_img) 110 os.remove(test_img) 114 qemu_io('-c', 'write 3800M 1M', test_img) 115 qemu_img_log('check' , test_img)
|
H A D | 304 | 29 test_img = file_path('test.qcow2') variable 36 qemu_img_create('-f', iotests.imgfmt, test_img, str(image_len)) 39 vm = iotests.VM().add_drive(test_img) 61 qemu_img_log('compare', test_img, target_img)
|
H A D | 065 | 30 test_img = os.path.join(iotests.test_dir, 'test.img') variable 39 test_img, '128K') 42 os.remove(test_img) 52 data = qemu_img_info(test_img)['format-specific'] 57 data = qemu_img('info', '--output=human', test_img).stdout.split('\n') 74 self.vm = iotests.VM().add_drive(test_img, self.qemu_options)
|
H A D | 056 | 30 test_img = os.path.join(iotests.test_dir, 'test.img') variable 59 '-o', 'backing_file=%s' % backing_img, '-F', 'raw', test_img) 60 qemu_io('-c', 'write -P0x41 0 512', test_img) 61 qemu_io('-c', 'write -P0xd5 1M 32k', test_img) 62 qemu_io('-c', 'write -P0xdc 32M 124k', test_img) 63 qemu_io('-c', 'write -P0xdc 67043328 64k', test_img) 64 self.vm = iotests.VM().add_drive(test_img) 69 os.remove(test_img) 85 self.assertTrue(iotests.compare_images(test_img, target_img), 131 self.test_img = img_create('test') [all …]
|
H A D | 055 | 29 test_img = os.path.join(iotests.test_dir, 'test.img') variable 36 qemu_img('create', '-f', iotests.imgfmt, test_img, str(image_len)) 37 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x11 0 64k', test_img) 38 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x00 64k 128k', test_img) 39 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x22 162k 32k', test_img) 40 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0xd5 1M 32k', test_img) 41 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0xdc 32M 124k', test_img) 42 qemu_io('-f', iotests.imgfmt, '-c', 'write -P0x33 67043328 64k', test_img) 45 os.remove(test_img) 53 self.vm.add_drive('blkdebug::' + test_img, 'node-name=source') [all …]
|
H A D | 040 | 34 test_img = os.path.join(iotests.test_dir, 'test.img') variable 86 '-F', iotests.imgfmt, test_img) 91 …self.vm = iotests.VM().add_drive(test_img, "node-name=top,backing.node-name=mid,backing.backing.no… 98 os.remove(test_img) 190 self.run_commit_test(test_img, backing_img, need_ready=True) 263 self.assert_qmp(result, 'return[0]/inserted/file', test_img) 267 self.assert_qmp(result, 'return[0]/inserted/image/filename', test_img) 287 test_img = os.path.join(iotests.test_dir, dir3, 'test.img') variable in TestRelativePaths 308 '-F', iotests.imgfmt, self.test_img) 312 '-F', iotests.imgfmt, self.test_img) [all …]
|
H A D | 030 | 30 test_img = os.path.join(iotests.test_dir, 'test.img') variable 42 '-F', iotests.imgfmt, test_img) 45 self.vm = iotests.VM().add_drive("blkdebug::" + test_img, 52 os.remove(test_img) 68 qemu_io('-f', iotests.imgfmt, '-c', 'map', test_img).stdout, 117 qemu_io('-f', iotests.imgfmt, '-c', 'map', test_img).stdout, 125 '-f', iotests.imgfmt, '-rU', '-c', 'map', test_img).stdout 136 qemu_io('-f', iotests.imgfmt, '-c', 'map', test_img).stdout, 151 qemu_io('-f', iotests.imgfmt, '-c', 'map', test_img).stdout, 601 '-F', 'raw', test_img, str(self.image_len)) [all …]
|
H A D | 147 | 35 test_img = os.path.join(iotests.test_dir, 'test.img') variable 82 qemu_img('create', '-f', iotests.imgfmt, test_img, '64k') 88 os.remove(test_img) 95 status, msg = qemu_nbd_early_pipe('-f', imgfmt, test_img, *args) 129 qemu_img('create', '-f', iotests.imgfmt, test_img, '64k') 134 'file=%s,' % test_img + 143 os.remove(test_img)
|
H A D | 129 | 26 test_img = os.path.join(iotests.test_dir, 'test.img') variable in TestStopWithBlockJob 33 iotests.qemu_img('create', '-f', iotests.imgfmt, self.test_img, 36 self.test_img) 51 for img in (self.test_img, self.target_img, self.base_img,
|
/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | migration-permissions | 27 test_img = os.path.join(iotests.test_dir, 'test.img') variable 33 qemu_img_create('-f', imgfmt, test_img, '1M') 65 os.remove(test_img) 76 qemu_io('-f', imgfmt, '-c', 'quit', test_img) 90 qemu_io('-f', imgfmt, '-c', 'quit', test_img)
|
H A D | block-status-cache | 29 test_img = os.path.join(iotests.test_dir, 'test.img') variable 38 qemu_img_create('-f', iotests.imgfmt, test_img, str(image_size)) 49 test_img) \ 57 os.remove(test_img)
|
H A D | reopen-file | 28 test_img = os.path.join(iotests.test_dir, 'test.img') variable 33 res = qemu_img_create('-f', imgfmt, test_img, str(image_size)) 46 'filename': test_img 58 os.remove(test_img)
|
H A D | export-incoming-iothread | 31 test_img = os.path.join(iotests.test_dir, 'test.img') variable 40 qemu_img_create('-f', iotests.imgfmt, test_img, str(image_size)) 55 os.remove(test_img)
|
/openbmc/qemu/docs/ |
H A D | image-fuzzer.txt | 74 runner.py -c '[["qemu-io", "$test_img", "-c", "write $off $len"]]' 78 - $test_img for a fuzzed img
|
/openbmc/qemu/docs/devel/testing/ |
H A D | main.rst | 872 tests/image-fuzzer/runner.py -c '[["qemu-img", "info", "$test_img"]]' /tmp/test qcow2
|