2 * QTest testcase for ivshmem
4 * Copyright (c) 2014 SUSE LINUX Products GmbH
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
15 #include "qemu/osdep.h"
17 static char dev_shm_path
[] = "/dev/shm/qtest.XXXXXX";
19 /* Tests only initialization so far. TODO: Replace with functional tests */
24 int main(int argc
, char **argv
)
30 g_test_init(&argc
, &argv
, NULL
);
31 qtest_add_func("/ivshmem/nop", nop
);
33 fd
= mkstemp(dev_shm_path
);
38 cmd
= g_strdup_printf("-device ivshmem,shm=%s,size=1M", &dev_shm_path
[9]);
39 s1
= qtest_start(cmd
);
40 s2
= qtest_start(cmd
);