Lines Matching full:all
62 /* Reset all flags and settings for the binding */ in reset_test_iface_state()
202 /* Take all ifaces up */ in ZTEST()
222 /* Verify that all ifaces have the expected call counts and types */ in ZTEST()
244 /* Verify that all ifaces have the expected call counts and types */ in ZTEST()
266 /* Verify that all ifaces have the expected call counts and types */ in ZTEST()
289 /* Verify that all ifaces have the expected call counts and types */ in ZTEST()
312 /* Verify that all ifaces have the expected call counts and types */ in ZTEST()
335 /* Verify that all ifaces have the expected call counts and types */ in ZTEST()
464 * Verify that invalid bound ifaces are treated as though they are not bound at all.
776 /* Firstly, clear all flags (some are automatically enabled before each test) */ in ZTEST()
1149 /* Verify that all_if_up brings all ifaces up, but only if they are not ignored or
1157 /* Take all ifaces up (do not skip ignored) */ in ZTEST()
1161 /* Verify all ifaces are up */ in ZTEST()
1162 zassert_true(net_if_is_admin_up(ifa1), "All ifaces should be admin-up."); in ZTEST()
1163 zassert_true(net_if_is_admin_up(ifa2), "All ifaces should be admin-up."); in ZTEST()
1164 zassert_true(net_if_is_admin_up(ifb), "All ifaces should be admin-up."); in ZTEST()
1165 zassert_true(net_if_is_admin_up(ifni), "All ifaces should be admin-up."); in ZTEST()
1166 zassert_true(net_if_is_admin_up(ifnull), "All ifaces should be admin-up."); in ZTEST()
1167 zassert_true(net_if_is_admin_up(ifnone), "All ifaces should be admin-up."); in ZTEST()
1170 /* Manually take all ifaces down */ in ZTEST()
1171 zassert_equal(net_if_down(ifa1), 0, "net_if_down should succeed for all ifaces."); in ZTEST()
1172 zassert_equal(net_if_down(ifa2), 0, "net_if_down should succeed for all ifaces."); in ZTEST()
1173 zassert_equal(net_if_down(ifb), 0, "net_if_down should succeed for all ifaces."); in ZTEST()
1174 zassert_equal(net_if_down(ifni), 0, "net_if_down should succeed for all ifaces."); in ZTEST()
1175 zassert_equal(net_if_down(ifnull), 0, "net_if_down should succeed for all ifaces."); in ZTEST()
1176 zassert_equal(net_if_down(ifnone), 0, "net_if_down should succeed for all ifaces."); in ZTEST()
1179 /* Take all ifaces up (skip ignored) */ in ZTEST()
1183 /* Verify all except ignored are up */ in ZTEST()
1184 zassert_true(net_if_is_admin_up(ifa2), "All non-ignored ifaces should be admin-up."); in ZTEST()
1185 zassert_true(net_if_is_admin_up(ifb), "All non-ignored ifaces should be admin-up."); in ZTEST()
1186 zassert_true(net_if_is_admin_up(ifni), "All non-ignored ifaces should be admin-up."); in ZTEST()
1187 zassert_true(net_if_is_admin_up(ifnull), "All non-ignored ifaces should be admin-up."); in ZTEST()
1188 zassert_true(net_if_is_admin_up(ifnone), "All non-ignored ifaces should be admin-up."); in ZTEST()
1193 /* Verify that all_if_connect brings all ifaces up, and connects all bound ifaces, but only those
1194 * that are not ignored, or all of them if skip_ignored is false
1202 /* Connect all ifaces (do not skip ignored) */ in ZTEST()
1206 /* Verify all ifaces are up */ in ZTEST()
1207 zassert_true(net_if_is_admin_up(ifa1), "All ifaces should be admin-up."); in ZTEST()
1208 zassert_true(net_if_is_admin_up(ifa2), "All ifaces should be admin-up."); in ZTEST()
1209 zassert_true(net_if_is_admin_up(ifb), "All ifaces should be admin-up."); in ZTEST()
1210 zassert_true(net_if_is_admin_up(ifni), "All ifaces should be admin-up."); in ZTEST()
1211 zassert_true(net_if_is_admin_up(ifnull), "All ifaces should be admin-up."); in ZTEST()
1212 zassert_true(net_if_is_admin_up(ifnone), "All ifaces should be admin-up."); in ZTEST()
1215 zassert_true(net_if_is_up(ifa1), "All bound ifaces should be connected."); in ZTEST()
1216 zassert_true(net_if_is_up(ifa2), "All bound ifaces should be connected."); in ZTEST()
1217 zassert_true(net_if_is_up(ifb), "All bound ifaces should be connected."); in ZTEST()
1218 zassert_true(net_if_is_up(ifni), "All bound ifaces should be connected."); in ZTEST()
1220 /* Manually take all ifaces down */ in ZTEST()
1226 zassert_equal(net_if_down(ifa1), 0, "net_if_down should succeed for all ifaces."); in ZTEST()
1227 zassert_equal(net_if_down(ifa2), 0, "net_if_down should succeed for all ifaces."); in ZTEST()
1228 zassert_equal(net_if_down(ifb), 0, "net_if_down should succeed for all ifaces."); in ZTEST()
1229 zassert_equal(net_if_down(ifni), 0, "net_if_down should succeed for all ifaces."); in ZTEST()
1230 zassert_equal(net_if_down(ifnull), 0, "net_if_down should succeed for all ifaces."); in ZTEST()
1231 zassert_equal(net_if_down(ifnone), 0, "net_if_down should succeed for all ifaces."); in ZTEST()
1234 /* Connect all ifaces (skip ignored) */ in ZTEST()
1238 /* Verify all except ignored are up */ in ZTEST()
1239 zassert_true(net_if_is_admin_up(ifa2), "All non-ignored ifaces should be admin-up."); in ZTEST()
1240 zassert_true(net_if_is_admin_up(ifb), "All non-ignored ifaces should be admin-up."); in ZTEST()
1241 zassert_true(net_if_is_admin_up(ifni), "All non-ignored ifaces should be admin-up."); in ZTEST()
1242 zassert_true(net_if_is_admin_up(ifnull), "All non-ignored ifaces should be admin-up."); in ZTEST()
1244 zassert_false(net_if_is_admin_up(ifa1), "All ignored ifaces should be admin-down."); in ZTEST()
1245 zassert_false(net_if_is_admin_up(ifnone), "All ignored ifaces should be admin-down."); in ZTEST()
1248 zassert_true(net_if_is_up(ifa2), "All non-ignored bound ifaces should be connected."); in ZTEST()
1249 zassert_true(net_if_is_up(ifb), "All non-ignored bound ifaces should be connected."); in ZTEST()
1250 zassert_true(net_if_is_up(ifni), "All non-ignored bound ifaces should be connected."); in ZTEST()
1255 /* Verify that all_if_down takes all ifaces down, but only if they are not ignored,
1263 /* Manually take all ifaces up */ in ZTEST()
1264 zassert_equal(net_if_up(ifa1), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1265 zassert_equal(net_if_up(ifa2), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1266 zassert_equal(net_if_up(ifb), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1267 zassert_equal(net_if_up(ifni), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1268 zassert_equal(net_if_up(ifnull), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1269 zassert_equal(net_if_up(ifnone), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1272 /* Take all ifaces down (do not skip ignored) */ in ZTEST()
1276 /* Verify all ifaces are down */ in ZTEST()
1277 zassert_false(net_if_is_admin_up(ifa1), "All ifaces should be admin-down."); in ZTEST()
1278 zassert_false(net_if_is_admin_up(ifa2), "All ifaces should be admin-down."); in ZTEST()
1279 zassert_false(net_if_is_admin_up(ifb), "All ifaces should be admin-down."); in ZTEST()
1280 zassert_false(net_if_is_admin_up(ifni), "All ifaces should be admin-down."); in ZTEST()
1281 zassert_false(net_if_is_admin_up(ifnull), "All ifaces should be admin-down."); in ZTEST()
1282 zassert_false(net_if_is_admin_up(ifnone), "All ifaces should be admin-down."); in ZTEST()
1284 /* Manually take all ifaces up */ in ZTEST()
1285 zassert_equal(net_if_up(ifa1), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1286 zassert_equal(net_if_up(ifa2), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1287 zassert_equal(net_if_up(ifb), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1288 zassert_equal(net_if_up(ifni), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1289 zassert_equal(net_if_up(ifnull), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1290 zassert_equal(net_if_up(ifnone), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1293 /* Take all ifaces down (skip ignored) */ in ZTEST()
1297 /* Verify that all except the ignored iface is down */ in ZTEST()
1298 zassert_false(net_if_is_admin_up(ifa2), "All non-ignored ifaces should be admin-down."); in ZTEST()
1299 zassert_false(net_if_is_admin_up(ifb), "All non-ignored ifaces should be admin-down."); in ZTEST()
1300 zassert_false(net_if_is_admin_up(ifni), "All non-ignored ifaces should be admin-down."); in ZTEST()
1301 zassert_false(net_if_is_admin_up(ifnull), "All non-ignored ifaces should be admin-down."); in ZTEST()
1302 zassert_false(net_if_is_admin_up(ifnone), "All non-ignored ifaces should be admin-down."); in ZTEST()
1307 /* Verify that all_if_disconnect disconnects all bound ifaces, but only if they are not ignored,
1315 /* Manually take all ifaces up */ in ZTEST()
1316 zassert_equal(net_if_up(ifa1), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1317 zassert_equal(net_if_up(ifa2), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1318 zassert_equal(net_if_up(ifb), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1319 zassert_equal(net_if_up(ifni), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1320 zassert_equal(net_if_up(ifnull), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1321 zassert_equal(net_if_up(ifnone), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1324 /* Manually connect all bound ifaces */ in ZTEST()
1331 /* Disconnect all ifaces (do not skip ignored) */ in ZTEST()
1336 /* Verify that all bound ifaces are disconnected */ in ZTEST()
1337 zassert_false(net_if_is_up(ifa1), "All bound ifaces should be disconnected."); in ZTEST()
1338 zassert_false(net_if_is_up(ifa2), "All bound ifaces should be disconnected."); in ZTEST()
1339 zassert_false(net_if_is_up(ifb), "All bound ifaces should be disconnected."); in ZTEST()
1340 zassert_false(net_if_is_up(ifni), "All bound ifaces should be disconnected."); in ZTEST()
1342 /* Verify that all ifaces are still up, even if disconnected */ in ZTEST()
1343 zassert_true(net_if_is_admin_up(ifa1), "All ifaces should be admin-up."); in ZTEST()
1344 zassert_true(net_if_is_admin_up(ifa2), "All ifaces should be admin-up."); in ZTEST()
1345 zassert_true(net_if_is_admin_up(ifb), "All ifaces should be admin-up."); in ZTEST()
1346 zassert_true(net_if_is_admin_up(ifni), "All ifaces should be admin-up."); in ZTEST()
1347 zassert_true(net_if_is_admin_up(ifnull), "All ifaces should be admin-up."); in ZTEST()
1348 zassert_true(net_if_is_admin_up(ifnone), "All ifaces should be admin-up."); in ZTEST()
1357 /* Disconnect all ifaces (skip ignored) */ in ZTEST()
1362 /* Verify that all bound ifaces are disconnected, except the ignored iface */ in ZTEST()
1363 zassert_false(net_if_is_up(ifa2), "All non-ignored bound ifaces should be disconnected."); in ZTEST()
1364 zassert_false(net_if_is_up(ifb), "All non-ignored bound ifaces should be disconnected."); in ZTEST()
1365 zassert_false(net_if_is_up(ifni), "All non-ignored bound ifaces should be disconnected."); in ZTEST()
1374 /* Take all ifaces up twice in a row */ in ZTEST()
1386 /* Verify all ifaces are up */ in ZTEST()
1387 zassert_true(net_if_is_admin_up(ifa1), "All ifaces should be admin-up."); in ZTEST()
1388 zassert_true(net_if_is_admin_up(ifa2), "All ifaces should be admin-up."); in ZTEST()
1389 zassert_true(net_if_is_admin_up(ifb), "All ifaces should be admin-up."); in ZTEST()
1390 zassert_true(net_if_is_admin_up(ifni), "All ifaces should be admin-up."); in ZTEST()
1391 zassert_true(net_if_is_admin_up(ifnull), "All ifaces should be admin-up."); in ZTEST()
1392 zassert_true(net_if_is_admin_up(ifnone), "All ifaces should be admin-up."); in ZTEST()
1398 /* Manually take all ifaces up */ in ZTEST()
1399 zassert_equal(net_if_up(ifa1), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1400 zassert_equal(net_if_up(ifa2), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1401 zassert_equal(net_if_up(ifb), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1402 zassert_equal(net_if_up(ifni), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1403 zassert_equal(net_if_up(ifnull), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1404 zassert_equal(net_if_up(ifnone), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1407 /* Take all ifaces down twice in a row */ in ZTEST()
1419 /* Verify all ifaces are down */ in ZTEST()
1420 zassert_false(net_if_is_admin_up(ifa1), "All ifaces should be admin-down."); in ZTEST()
1421 zassert_false(net_if_is_admin_up(ifa2), "All ifaces should be admin-down."); in ZTEST()
1422 zassert_false(net_if_is_admin_up(ifb), "All ifaces should be admin-down."); in ZTEST()
1423 zassert_false(net_if_is_admin_up(ifni), "All ifaces should be admin-down."); in ZTEST()
1424 zassert_false(net_if_is_admin_up(ifnull), "All ifaces should be admin-down."); in ZTEST()
1425 zassert_false(net_if_is_admin_up(ifnone), "All ifaces should be admin-down."); in ZTEST()
1431 /* Connect all ifaces twice in a row */ in ZTEST()
1443 /* Verify all ifaces are up */ in ZTEST()
1444 zassert_true(net_if_is_admin_up(ifa1), "All ifaces should be admin-up."); in ZTEST()
1445 zassert_true(net_if_is_admin_up(ifa2), "All ifaces should be admin-up."); in ZTEST()
1446 zassert_true(net_if_is_admin_up(ifb), "All ifaces should be admin-up."); in ZTEST()
1447 zassert_true(net_if_is_admin_up(ifni), "All ifaces should be admin-up."); in ZTEST()
1448 zassert_true(net_if_is_admin_up(ifnull), "All ifaces should be admin-up."); in ZTEST()
1449 zassert_true(net_if_is_admin_up(ifnone), "All ifaces should be admin-up."); in ZTEST()
1451 /* Verify all bound ifaces are connected */ in ZTEST()
1457 /* Manually take all ifaces up */ in ZTEST()
1458 zassert_equal(net_if_up(ifa1), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1459 zassert_equal(net_if_up(ifa2), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1460 zassert_equal(net_if_up(ifb), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1461 zassert_equal(net_if_up(ifni), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1462 zassert_equal(net_if_up(ifnull), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1463 zassert_equal(net_if_up(ifnone), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1466 /* Manually connect all bound ifaces */ in ZTEST()
1473 /* Connect all ifaces twice in a row */ in ZTEST()
1485 /* Verify all bound ifaces are disconnected */ in ZTEST()
1486 zassert_false(net_if_is_up(ifa1), "All bound ifaces should be disconnected."); in ZTEST()
1487 zassert_false(net_if_is_up(ifa2), "All bound ifaces should be disconnected."); in ZTEST()
1488 zassert_false(net_if_is_up(ifb), "All bound ifaces should be disconnected."); in ZTEST()
1489 zassert_false(net_if_is_up(ifni), "All bound ifaces should be disconnected."); in ZTEST()
1491 /* Verify all ifaces are up */ in ZTEST()
1492 zassert_true(net_if_is_admin_up(ifa1), "All ifaces should be admin-up."); in ZTEST()
1493 zassert_true(net_if_is_admin_up(ifa2), "All ifaces should be admin-up."); in ZTEST()
1494 zassert_true(net_if_is_admin_up(ifb), "All ifaces should be admin-up."); in ZTEST()
1495 zassert_true(net_if_is_admin_up(ifni), "All ifaces should be admin-up."); in ZTEST()
1496 zassert_true(net_if_is_admin_up(ifnull), "All ifaces should be admin-up."); in ZTEST()
1497 zassert_true(net_if_is_admin_up(ifnone), "All ifaces should be admin-up."); in ZTEST()
1505 * However, since all bulk convenience functions share a single implementation, testing
1506 * connect and disconnect is sufficient to gain acceptable coverage of this behavior for all of
1523 /* Verify that all ifaces went admin-up */ in ZTEST()
1524 zassert_true(net_if_is_admin_up(ifa1), "All ifaces should be admin-up."); in ZTEST()
1525 zassert_true(net_if_is_admin_up(ifa2), "All ifaces should be admin-up."); in ZTEST()
1526 zassert_true(net_if_is_admin_up(ifb), "All ifaces should be admin-up."); in ZTEST()
1527 zassert_true(net_if_is_admin_up(ifni), "All ifaces should be admin-up."); in ZTEST()
1528 zassert_true(net_if_is_admin_up(ifnull), "All ifaces should be admin-up."); in ZTEST()
1529 zassert_true(net_if_is_admin_up(ifnone), "All ifaces should be admin-up."); in ZTEST()
1531 /* Verify that all the non-error ifaces are connected */ in ZTEST()
1532 zassert_true(net_if_is_up(ifa2), "All non-failing ifaces should be connected."); in ZTEST()
1533 zassert_true(net_if_is_up(ifb), "All non-failing ifaces should be connected."); in ZTEST()
1534 zassert_true(net_if_is_up(ifni), "All non-failing ifaces should be connected."); in ZTEST()
1545 /* Manually take all ifaces up */ in ZTEST()
1546 zassert_equal(net_if_up(ifa1), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1547 zassert_equal(net_if_up(ifa2), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1548 zassert_equal(net_if_up(ifb), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1549 zassert_equal(net_if_up(ifni), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1550 zassert_equal(net_if_up(ifnull), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1551 zassert_equal(net_if_up(ifnone), 0, "net_if_up should succeed for all ifaces."); in ZTEST()
1554 /* Manually connect all bound ifaces */ in ZTEST()
1568 /* Verify that all ifaces are still admin-up */ in ZTEST()
1569 zassert_true(net_if_is_admin_up(ifa1), "All ifaces should be admin-up."); in ZTEST()
1570 zassert_true(net_if_is_admin_up(ifa2), "All ifaces should be admin-up."); in ZTEST()
1571 zassert_true(net_if_is_admin_up(ifb), "All ifaces should be admin-up."); in ZTEST()
1572 zassert_true(net_if_is_admin_up(ifni), "All ifaces should be admin-up."); in ZTEST()
1573 zassert_true(net_if_is_admin_up(ifnull), "All ifaces should be admin-up."); in ZTEST()
1574 zassert_true(net_if_is_admin_up(ifnone), "All ifaces should be admin-up."); in ZTEST()
1576 /* Verify that all the non-error ifaces are disconnected */ in ZTEST()
1577 zassert_false(net_if_is_up(ifa2), "All non-failing ifaces should be disconnected."); in ZTEST()
1578 zassert_false(net_if_is_up(ifb), "All non-failing ifaces should be disconnected."); in ZTEST()
1579 zassert_false(net_if_is_up(ifni), "All non-failing ifaces should be disconnected."); in ZTEST()