ktest.c (08855964b9970604433f7b19dcd71cf5af5e5f14) ktest.c (f8a201b4935ce7732a63d4f62eff29c672705356)
1/*
2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
5 * 1.0 of the CDDL.
6 *
7 * A full copy of the text of the CDDL should have accompanied this
8 * source. A copy of the CDDL is also available via the Internet at

--- 1318 unchanged lines hidden (view full) ---

1327ktest_verify_run_list(nvlist_t *tests, list_t *run_list)
1328{
1329 ktest_check_fqt_entries(tests, run_list);
1330}
1331
1332static boolean_t
1333ktest_run_cmd(int argc, char *argv[], int ktdev)
1334{
1/*
2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
5 * 1.0 of the CDDL.
6 *
7 * A full copy of the text of the CDDL should have accompanied this
8 * source. A copy of the CDDL is also available via the Internet at

--- 1318 unchanged lines hidden (view full) ---

1327ktest_verify_run_list(nvlist_t *tests, list_t *run_list)
1328{
1329 ktest_check_fqt_entries(tests, run_list);
1330}
1331
1332static boolean_t
1333ktest_run_cmd(int argc, char *argv[], int ktdev)
1334{
1335 char c;
1335 int c;
1336 nvlist_t *tests = NULL;
1337 list_t run_list;
1338 char *input_path = NULL;
1339 boolean_t parsable = B_FALSE;
1340 boolean_t fields_set = B_FALSE;
1341 boolean_t print_stats = B_TRUE;
1342 char *fields = KTEST_RUN_CMD_DEF_FIELDS;
1343 uint_t oflags = 0;

--- 90 unchanged lines hidden (view full) ---

1434 list_destroy(&run_list);
1435 nvlist_free(tests);
1436 return (all_pass);
1437}
1438
1439static boolean_t
1440ktest_run_file_cmd(int argc, char *argv[], int ktdev)
1441{
1336 nvlist_t *tests = NULL;
1337 list_t run_list;
1338 char *input_path = NULL;
1339 boolean_t parsable = B_FALSE;
1340 boolean_t fields_set = B_FALSE;
1341 boolean_t print_stats = B_TRUE;
1342 char *fields = KTEST_RUN_CMD_DEF_FIELDS;
1343 uint_t oflags = 0;

--- 90 unchanged lines hidden (view full) ---

1434 list_destroy(&run_list);
1435 nvlist_free(tests);
1436 return (all_pass);
1437}
1438
1439static boolean_t
1440ktest_run_file_cmd(int argc, char *argv[], int ktdev)
1441{
1442 char c;
1442 int c;
1443 nvlist_t *tests = NULL;
1444 list_t run_list;
1445 char *run_file = NULL;
1446 boolean_t use_stdin = B_FALSE;
1447 boolean_t parsable = B_FALSE;
1448 boolean_t fields_set = B_FALSE;
1449 boolean_t print_stats = B_TRUE;
1450 char *fields = KTEST_RUN_CMD_DEF_FIELDS;

--- 61 unchanged lines hidden (view full) ---

1512 list_destroy(&run_list);
1513 nvlist_free(tests);
1514 return (all_pass);
1515}
1516
1517static void
1518ktest_list_cmd(int argc, char *argv[], int dev)
1519{
1443 nvlist_t *tests = NULL;
1444 list_t run_list;
1445 char *run_file = NULL;
1446 boolean_t use_stdin = B_FALSE;
1447 boolean_t parsable = B_FALSE;
1448 boolean_t fields_set = B_FALSE;
1449 boolean_t print_stats = B_TRUE;
1450 char *fields = KTEST_RUN_CMD_DEF_FIELDS;

--- 61 unchanged lines hidden (view full) ---

1512 list_destroy(&run_list);
1513 nvlist_free(tests);
1514 return (all_pass);
1515}
1516
1517static void
1518ktest_list_cmd(int argc, char *argv[], int dev)
1519{
1520 char c;
1520 int c;
1521 list_t triples;
1522 nvlist_t *tests = NULL;
1523 boolean_t parsable = B_FALSE;
1524 boolean_t fields_set = B_FALSE;
1525 char *fields = KTEST_LIST_CMD_DEF_FIELDS;
1526 uint_t oflags = 0;
1527 ofmt_handle_t ofmt = NULL;
1528 ofmt_status_t oferr;

--- 122 unchanged lines hidden ---
1521 list_t triples;
1522 nvlist_t *tests = NULL;
1523 boolean_t parsable = B_FALSE;
1524 boolean_t fields_set = B_FALSE;
1525 char *fields = KTEST_LIST_CMD_DEF_FIELDS;
1526 uint_t oflags = 0;
1527 ofmt_handle_t ofmt = NULL;
1528 ofmt_status_t oferr;

--- 122 unchanged lines hidden ---