Lines Matching +full:test +full:- +full:path
8 * Marc-André Lureau <marcandre.lureau@redhat.com>
12 * See the COPYING file in the top-level directory.
18 #include "io/channel-socket.h"
19 #include "libqtest-single.h"
21 #include "tpm-emu.h"
22 #include "tpm-util.h"
23 #include "tpm-tis-util.h"
26 * As the Sysbus tpm-tis-device is instantiated on the ARM virt
34 char *tmp_path = g_dir_make_tmp("qemu-tpm-tis-device-test.XXXXXX", NULL); in main()
36 TPMTestState test; in main() local
43 test.addr = g_new0(SocketAddress, 1); in main()
44 test.addr->type = SOCKET_ADDRESS_TYPE_UNIX; in main()
45 test.addr->u.q_unix.path = g_build_filename(tmp_path, "sock", NULL); in main()
46 g_mutex_init(&test.data_mutex); in main()
47 g_cond_init(&test.data_cond); in main()
48 test.data_cond_signal = false; in main()
49 test.tpm_version = TPM_VERSION_2_0; in main()
51 thread = g_thread_new(NULL, tpm_emu_ctrl_thread, &test); in main()
52 tpm_emu_test_wait_cond(&test); in main()
55 "-machine virt,gic-version=max -accel tcg " in main()
56 "-chardev socket,id=chr,path=%s " in main()
57 "-tpmdev emulator,id=dev,chardev=chr " in main()
58 "-device tpm-tis-device,tpmdev=dev", in main()
59 test.addr->u.q_unix.path); in main()
62 qtest_add_data_func("/tpm-tis/test_check_localities", &test, in main()
65 qtest_add_data_func("/tpm-tis/test_check_access_reg", &test, in main()
68 qtest_add_data_func("/tpm-tis/test_check_access_reg_seize", &test, in main()
71 qtest_add_data_func("/tpm-tis/test_check_access_reg_release", &test, in main()
74 qtest_add_data_func("/tpm-tis/test_check_transmit", &test, in main()
82 g_unlink(test.addr->u.q_unix.path); in main()
83 qapi_free_SocketAddress(test.addr); in main()