Home
last modified time | relevance | path

Searched refs:tmpdir (Results 1 – 15 of 15) sorted by relevance

/qemu/tests/qtest/
H A Dnetdev-socket.c39 static gchar *tmpdir; variable
198 path = g_strconcat(tmpdir, "/stream_unix_reconnect", NULL); in test_stream_unix_reconnect()
278 path = g_strconcat(tmpdir, "/stream_unix", NULL); in test_stream_unix()
309 path = g_strconcat(tmpdir, "/stream_unix_abstract", NULL); in test_stream_unix_abstract()
426 path0 = g_strconcat(tmpdir, "/dgram_unix0", NULL); in test_dgram_unix()
427 path1 = g_strconcat(tmpdir, "/dgram_unix1", NULL); in test_dgram_unix()
507 tmpdir = g_dir_make_tmp("netdev-socket.XXXXXX", &err); in main()
508 if (tmpdir == NULL) { in main()
544 g_rmdir(tmpdir); in main()
545 g_free(tmpdir); in main()
H A Dqmp-test.c166 char *tmpdir; variable
172 tmpdir = g_dir_make_tmp("qmp-test-XXXXXX", &err); in setup_blocking_cmd()
175 fifo_name = g_strdup_printf("%s/fifo", tmpdir); in setup_blocking_cmd()
184 rmdir(tmpdir); in cleanup_blocking_cmd()
185 g_free(tmpdir); in cleanup_blocking_cmd()
H A Divshmem-test.c21 static char *tmpdir; variable
449 if (tmpdir) { in cleanup()
450 g_rmdir(tmpdir); in cleanup()
451 tmpdir = NULL; in cleanup()
502 tmpdir = dir; in main()
503 tmpserver = g_strconcat(tmpdir, "/server", NULL); in main()
/qemu/scripts/
H A Dextract-vsssdk-headers27 tmpdir=$(mktemp -d)
32 msiextract -C $tmpdir vsssdk.msi
33 mv "$tmpdir/Program Files/Microsoft/VSSSDK72/inc" inc
H A Dupdate-linux-headers.sh29 tmpdir=$(mktemp -d)
30 hdrdir="$tmpdir/headers"
31 blddir="$tmpdir/build"
273 rm -rf "$tmpdir"
/qemu/tests/qtest/fuzz/
H A Dgeneric_fuzz_configs.h23 g_autofree char *tmpdir = g_dir_make_tmp("qemu-fuzz.XXXXXX", NULL); in generic_fuzzer_virtio_9p_args() local
24 g_assert_nonnull(tmpdir); in generic_fuzzer_virtio_9p_args()
29 "writeout=immediate,fmode=0600,dmode=0700", tmpdir); in generic_fuzzer_virtio_9p_args()
/qemu/tests/unit/
H A Dtest-io-channel-command.c37 g_autofree gchar *tmpdir = g_dir_make_tmp("qemu-test-io-channel.XXXXXX", NULL); in test_io_channel_command_fifo() local
38 g_autofree gchar *fifo = g_build_filename(tmpdir, TEST_FIFO, NULL); in test_io_channel_command_fifo()
67 err = g_rmdir(tmpdir); in test_io_channel_command_fifo()
H A Dtest-replication.c565 const char *tmpdir = g_get_tmp_dir(); in main() local
566 p_local_disk = g_strdup_printf("%s/p_local_disk.XXXXXX", tmpdir); in main()
567 s_local_disk = g_strdup_printf("%s/s_local_disk.XXXXXX", tmpdir); in main()
568 s_active_disk = g_strdup_printf("%s/s_active_disk.XXXXXX", tmpdir); in main()
569 s_hidden_disk = g_strdup_printf("%s/s_hidden_disk.XXXXXX", tmpdir); in main()
/qemu/docs/
H A Dmeson.build28 run_command('mkdir', ['-p', tmpdir / 'sphinx'], check: true)
29 run_command('touch', [tmpdir / 'sphinx/index.rst'], check: true)
32 '-b', 'html', tmpdir / 'sphinx',
33 tmpdir / 'sphinx/out'], check: false)
/qemu/tests/tcg/multiarch/linux/
H A Dlinux-test.c89 char *tmpdir = mkdtemp(template); in test_file() local
91 assert(tmpdir); in test_file()
96 chk_error(chdir(tmpdir)); in test_file()
162 chk_error(stat(tmpdir, &st)); in test_file()
184 dir = opendir(tmpdir); in test_file()
206 chk_error(rmdir(tmpdir)); in test_file()
/qemu/util/
H A Dmemfd.c119 const char *tmpdir = g_get_tmp_dir(); in qemu_memfd_alloc() local
122 fname = g_strdup_printf("%s/memfd-XXXXXX", tmpdir); in qemu_memfd_alloc()
/qemu/python/tests/
H A Dprotocol.py434 with TemporaryDirectory(suffix='.qmp') as tmpdir:
435 sock = os.path.join(tmpdir, type(self.proto).__name__ + ".sock")
590 with TemporaryDirectory(suffix='.qmp') as tmpdir:
591 sock = os.path.join(tmpdir, type(self.proto).__name__ + ".sock")
/qemu/tests/
H A Ddbus-vmstate-daemon.sh29 <listen>unix:tmpdir=$DBUS_VMSTATE_TEST_TMPDIR</listen>
/qemu/
H A Dblock.c852 const char *tmpdir; in create_tmp_file() local
855 tmpdir = g_get_tmp_dir(); in create_tmp_file()
864 if (!g_strcmp0(tmpdir, "/tmp")) { in create_tmp_file()
865 tmpdir = "/var/tmp"; in create_tmp_file()
869 filename = g_strdup_printf("%s/vl.XXXXXX", tmpdir); in create_tmp_file()
/qemu/linux-user/
H A Dsyscall.c8382 const char *tmpdir; in do_guest_openat() local
8392 tmpdir = getenv("TMPDIR"); in do_guest_openat()
8393 if (!tmpdir) in do_guest_openat()
8394 tmpdir = "/tmp"; in do_guest_openat()
8395 snprintf(filename, sizeof(filename), "%s/qemu-open.XXXXXX", tmpdir); in do_guest_openat()