Lines Matching defs:tests
49 } tests[] = {
239 for (i = 0; i < __arraycount(tests); i++) {
241 cs.mac = tests[i].alg;
242 cs.mackeylen = tests[i].key_len;
243 cs.mackey = __UNCONST(&tests[i].key);
246 err(1, "CIOCGSESSION test %d", tests[i].num);
252 co.len = tests[i].len;
253 co.src = __UNCONST(&tests[i].data);
257 err(1, "CIOCCRYPT test %d", tests[i].num);
260 if (memcmp(co.mac, &tests[i].mac, sizeof(tests[i].mac)))
261 errx(1, "verification failed test %d", tests[i].num);
265 err(1, "CIOCFSESSION test %d", tests[i].num);