Lines Matching +full:pxe +full:- +full:test

2  * PXE test cases.
12 * See the COPYING file in the top-level directory.
18 #include "boot-sector.h"
19 #include "ppc-util.h"
23 static char disk[] = "tests/pxe-test-disk-XXXXXX";
33 { "pc", "virtio-net-pci" },
35 { "q35", "virtio-net-pci", },
48 { "pseries", "spapr-vlan",
49 "-machine vsmt=8," PSERIES_DEFAULT_CAPABILITIES },
50 { "pseries", "virtio-net-pci",
51 "-machine vsmt=8," PSERIES_DEFAULT_CAPABILITIES },
57 "-machine vsmt=8," PSERIES_DEFAULT_CAPABILITIES },
62 { "s390-ccw-virtio", "virtio-net-ccw" },
66 static void test_pxe_one(const testdef_t *test, bool ipv6) in test_pxe_one() argument
70 const char *extra = test->extra; in test_pxe_one()
77 "-accel kvm -accel tcg -machine %s -nodefaults -boot order=n " in test_pxe_one()
78 "-netdev user,id=" NETNAME ",tftp=./,bootfile=%s,ipv4=%s,ipv6=%s " in test_pxe_one()
79 "-device %s,bootindex=1,netdev=" NETNAME " %s", in test_pxe_one()
80 test->machine, disk, ipv6 ? "off" : "on", ipv6 ? "on" : "off", in test_pxe_one()
81 test->model, extra); in test_pxe_one()
91 const testdef_t *test = data; in test_pxe_ipv4() local
93 test_pxe_one(test, false); in test_pxe_ipv4()
98 const testdef_t *test = data; in test_pxe_ipv6() local
100 test_pxe_one(test, true); in test_pxe_ipv6()
108 const testdef_t *test = &tests[i]; in test_batch() local
111 if (!qtest_has_device(test->model)) { in test_batch()
115 testname = g_strdup_printf("pxe/ipv4/%s/%s", in test_batch()
116 test->machine, test->model); in test_batch()
117 qtest_add_data_func(testname, test, test_pxe_ipv4); in test_batch()
121 testname = g_strdup_printf("pxe/ipv6/%s/%s", in test_batch()
122 test->machine, test->model); in test_batch()
123 qtest_add_data_func(testname, test, test_pxe_ipv6); in test_batch()