Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 73) sorted by relevance

123

/xnu-11215/tests/
H A Dkqueue_file_tests.c723 test_t test; in run_note_delete_tests() local
825 test_t test; in run_note_write_tests() local
1040 test_t test; in run_note_extend_tests() local
1150 test_t test; in run_note_attrib_tests() local
1316 test_t test; in run_note_link_tests() local
1471 test_t test; in run_note_rename_tests() local
1553 test_t test; in run_note_revoke_tests() local
1570 test_t test; in run_evfilt_read_tests() local
1672 test_t test; in run_evfilt_write_tests() local
1701 test_t test; in run_poll_tests() local
[all …]
H A Dskywalk_tests.c316 skywalk_test_driver_run(&skt_##test, argc, (skt_##test).skt_argv,\
326 #define EXPAND_TO_T_DECL(tdecl_name, test, desc) \ argument
328 EXPAND_TO_T_DECL_COMMON(test, desc)
334 #define X(test, desc, ...) EXPAND_TO_T_DECL(test, test, desc) argument
342 #define X(test, desc, ...) EXPAND_TO_T_DECL(pll_##test, test, desc) argument
350 #define X(test, desc, ...) EXPAND_TO_T_DECL(utun_##test, test, desc) argument
359 T_DECL_REF(memfail_##test, test, desc, \
370 T_DECL_REF(pll_memfail_##test, pll_##test, desc, \
381 T_DECL_REF(utun_memfail_##test, utun_##test, desc, \
403 T_DECL(shutdown_##test, desc, \
[all …]
H A Dmemorystatus_assertion_helpers.c44 …pected_limit_mb, uint64_t expected_user_data, boolean_t expected_assertion_state, const char *test) in check_properties() argument
58 if (test != NULL) { in check_properties()
59 T_LOG("check_properties: %s", test); in check_properties()
74 T_LOG("%s test failed: %s\n", test, PROP_CHECK_ERROR_STRING); in check_properties()
91 T_FAIL("check_properties: %s", test); in check_properties()
93 T_PASS("check_properties: %s ok", test); in check_properties()
H A Dtest_sysctl_kern_procargs_25397314.m247 NSString *testArgument1 = @"test argument 1";
249 NSString *testArgument2 = @"test argument 2";
295 T_ASSERT_TRUE(containsTestArgument1, "Found test argument 1");
296 T_ASSERT_TRUE(containsTestArgument2, "Found test argument 2");
297 T_ASSERT_TRUE(containsTestEnvironmentVariable, "Found test environment variable");
300 T_LOG("Skipping test on DEVELOPMENT || DEBUG kernel");
324 T_ASSERT_TRUE(containsTestArgument1, "Found test argument 1");
325 T_ASSERT_TRUE(containsTestArgument2, "Found test argument 2");
326 T_ASSERT_FALSE(containsTestEnvironmentVariable, "No test environment variable");
/xnu-11215/tools/lldbmacros/tests/lldbtest/
H A Dunittest.py96 def addError(self, test, err): argument
109 def stopTest(self, test) -> None: argument
111 return super().stopTest(test)
202 def run(self, test): argument
208 test(result)
253 def addError(self, test, err): argument
268 def addSkip(self, test, reason): argument
274 def addFailure(self, test, err): argument
284 def addSuccess(self, test): argument
318 def run(self, test): argument
[all …]
/xnu-11215/tools/tests/perf_index/PerfIndex_COPS_Module/
H A DPITest.m81 NSLog(@"Failed to load test %@", [self testName]);
143 PITest* test = (PITest*)[(__bridge NSArray*)arg objectAtIndex:1];
145 long long work_size = test->length / test->numThreads;
146 int work_remainder = test->length % test->numThreads;
152 pthread_mutex_lock(&test->readyThreadCountLock);
153 test->readyThreadCount++;
155 if(test->readyThreadCount == test->numThreads)
156 pthread_cond_signal(&test->threadsReadyCvar);
157 pthread_cond_wait(&test->startCvar, &test->readyThreadCountLock);
158 pthread_mutex_unlock(&test->readyThreadCountLock);
[all …]
/xnu-11215/tools/tests/perf_index/
H A Dperf_index.c31 test_t test; variable
80 load_test(char* path, test_t* test) in load_test() argument
92 test->setup = (int (*)(int, long long, int, void **))p; in load_test()
101 test->cleanup = (int (*)(int, long long))p; in load_test()
104 test->error_str_ptr = (char**)p; in load_test()
180 load_test(test_path, &test); in main()
191 if (test.setup) { in main()
215 if (**test.error_str_ptr) { in main()
216 printf("Test failed: %s\n", *test.error_str_ptr); in main()
221 if (test.cleanup) { in main()
[all …]
H A DREADME4 where type is one of the test types explained below, threads is the number of
6 args are arguments to pass to the test. Currently only the iperf test requires
14 number of seconds it took to standard out as a decimal number. Some of the test
17 quite drastically between test type, so you may need to play around with the
/xnu-11215/osfmk/tests/
H A DREADME.md18 * watch for nanokdp serial output with tags like "```[KTEST] <test> logs```"
20 ## How do I configure to run just test #8?
22test through boot-args. For example if you want to run your test #8 (say you are tweaking it to do…
24 -> kernPOST_config=1_3,5_9999 # skip test#4. Will run tests 1,2,3 and 5,6 and onwards.
30 ## How do I add a new test?
37 * To add a test function just declare a function with prototype as
44 XNUPOST_TEST_CONFIG_BASIC(my_sample_tests), // simple test
45 XNUPOST_TEST_CONFIG_TEST_PANIC(panic_test) // test that is expected to panic
78 * T_EXPECT will just report failure of that test case, but will continue to run further test code.
82 Bats has a new test type **kernel_POST** that runs Lean test environment tests. You can run the fol…
[all …]
/xnu-11215/doc/debugging/
H A Dmacro_testing.md3 How to work with bundled unit test framework.
8 Unit-test architecture supports two kinds of tests:
10 - Standalone unit test \
12 - LLDB based unit test \
19 access debugger/process/target from such test or invoke LLDB commands. This
20 way a test can exercise full stack including SBAPI and expression handlers.
38 * `-v` enables verbose output from unit test framework
45 rather than building completely new framework. A test should still rely on
49 A test developer has three options how to handle mocking in a test:
71 Auto generating mock specification from kernel under test allows checking that
[all …]
/xnu-11215/tools/
H A Dformat_vm_parameter_validation.py130 def print_legend(test): argument
133 for result in test.results:
249 def replace_error_code_return(test, line): argument
522 for test in tests:
525 print('test ' + test.testname)
527 print(format_indent + 'config ' + test.config)
528 all_configurations.add(test.config)
530 if len(test.results) == 0:
533 print_legend(test)
534 print_results_nD(test.results, test.testname)
[all …]
/xnu-11215/tests/counter/
H A Dbenchmark.lua82 for _, test in ipairs(tests) do
83 local args = {test.path, benchmark.opt.variant, benchmark.opt.num_writes, test.num_cores,
99 threads = test.num_cores,
/xnu-11215/doc/vm/
H A Dsanitize.md265 - `osfmk/tests/vm_parameter_validation_kern.c` (test
294 A test `harness` or `runner` is the loop that runs a VM function with
337 ## How to: add a new test
379 name must be unique within a single test.
381 Step 5: for each test, decide what setup is necessary for the test or for
382 each trial in the test. Choose an existing test running or write a new
383 runner with that setup and those trials. The test runner loops through
385 required setup for the test or for each trial, and calls the function
396 Step 7: call all of your new tests from the top-level test functions
404 files; each test name must be unique.
[all …]
/xnu-11215/tests/skywalk/
H A Dskywalk_mptests.c100 #define X(test, desc, ...) \ argument
101 T_DECL(test, desc, T_META_NAMESPACE("xnu.skywalk_mptests")) \
109 skywalk_mptest_driver_run(&skt_##test, ignorefail); \
/xnu-11215/tools/tests/superpages/
H A Dtestsp.c93 int i, sig, test; in check_r() local
99 test = 0; in check_r()
101 test += (data)[i]; in check_r()
105 *res = test; in check_r()
742 test_t test[] = { variable
758 #define TESTS ((int)(sizeof(test)/sizeof(*test)))
766 printf("Test #%d \"%s\"...", i + 1, test[i].description); in testit()
767 ret = test[i].fn(); in testit()
/xnu-11215/libkern/os/
H A Dlog.c1172 #define LOG_STAT_CMP(cmp, b, a, e, stat, msg, test) \ argument
1176 cmp(n##stat, n##expected, (msg), (test), n##expected); \
1178 #define LOG_STAT_EQ(b, a, e, stat, msg, test) \ argument
1179 LOG_STAT_CMP(T_EXPECT_EQ_UINT, b, a, e, stat, msg, test)
1180 #define LOG_STAT_GE(b, a, e, stat, msg, test) \ argument
1181 LOG_STAT_CMP(T_EXPECT_GE_UINT, b, a, e, stat, msg, test)
1250 const char *test) in log_stats_check_errors() argument
1260 const char *test) in log_stats_check() argument
1268 LOG_STAT_GE(before, after, expected, total, "%s: Expected %lu logs total", test); in log_stats_check()
1271 log_stats_check_errors(before, after, expected, test); in log_stats_check()
[all …]
/xnu-11215/osfmk/i386/
H A Drtclock_asm_native.h68 test %esi,%esi /* info updating? */ ; \
86 test %esi,%esi /* info updating? */ ; \
/xnu-11215/tools/tests/MPMMTest/
H A DREADME4 simply run make. A 32- and 64-bit version of each test will be generated by
5 default. Each test can be run without options:
/xnu-11215/libkern/zlib/
H A DREADME17 To compile all files and run the test program, follow the instructions given at
18 the top of Makefile. In short "make test; make install" should work for most
19 machines. For Unix: "./configure; make test; make install". For MSDOS, use one
65 -O, one libpng test fails. The test works in 32 bit mode (with the -n32
75 other compilers. Use "make test" to check your compiler.
82 installed before testing (do "make install" before "make test"), since the
/xnu-11215/tests/vm/
H A Dtest_vm_no_pager.m84 /* Abort the test if total_corpse_count is at TOTAL_CORPSES_ALLOWED */
289 T_SKIP("Too many processes already crashing, can't test corpses. Aborting test.");
301 /* Run the helper with the chosen test number */
315 T_DECL(vm_no_pager_force_unmount, "test correct detection and propagation of reason for not having …
324 T_DECL(vm_no_pager_ungraft, "test correct detection and propagation of reason for not having a page…
/xnu-11215/osfmk/arm64/
H A Dplatform_tests.c1123 struct munger_test *test = &munger_tests[i]; in mt_test_mungers() local
1126 T_LOG("Testing %s", test->mt_name); in mt_test_mungers()
1129 test->mt_func(data); in mt_test_mungers()
1131 for (j = 0; j < test->mt_nout; j++) { in mt_test_mungers()
1132 if (data[j] != test->mt_expected[j]) { in mt_test_mungers()
1138 T_PASS(test->mt_name); in mt_test_mungers()
1715 arm64_panic_lockdown_test_case_s *test, in panic_lockdown_expect_test() argument
1721 arm64_panic_lockdown_active_test = test; in panic_lockdown_expect_test()
1729 fault_pc = (uintptr_t)test->func; in panic_lockdown_expect_test()
1745 (void)test->func(test->arg); in panic_lockdown_expect_test()
[all …]
/xnu-11215/iokit/Tests/
H A DTests.cpp1315 OSSharedPtr<OSValueObject<T> > test = OSValueObject<T>::create(); in OSDefineValueObjectForDependentType() local
1316 assert(test); in OSDefineValueObjectForDependentType()
1317 if (test) { in OSDefineValueObjectForDependentType()
1318 assert(test->getRef() == 0); in OSDefineValueObjectForDependentType()
1319 assert(test->isEqualTo(0)); in OSDefineValueObjectForDependentType()
1320 assert(test->getBytesNoCopy()); in OSDefineValueObjectForDependentType()
1321 assert(test->getBytesNoCopy() == test->getMutableBytesNoCopy()); in OSDefineValueObjectForDependentType()
1322 assert(test->getLength() == sizeof(T)); in OSDefineValueObjectForDependentType()
1329 OSSharedPtr<OSValueObject<T> > test = OSValueObject<T>::create(); in OSDefineValueObjectForDependentType() local
1330 assert(test); in OSDefineValueObjectForDependentType()
[all …]
H A DTestIOMemoryDescriptor.cpp850 uint32_t test; in IOMemoryDescriptorTest()
852 for (test = 0; test < 3; test++) { in IOMemoryDescriptorTest()
853 kprintf("---[%d] address 0x%qx-0x%qx, 0x%qx-0x%qx\n", test, in IOMemoryDescriptorTest()
854 ranges[test][0].address, ranges[test][0].length, in IOMemoryDescriptorTest()
855 ranges[test][1].address, ranges[test][1].length); in IOMemoryDescriptorTest()
857 …md = IOMemoryDescriptor::withAddressRanges((IOAddressRange*)&ranges[test][0], rangesCount[test], k… in IOMemoryDescriptorTest()
/xnu-11215/osfmk/arm/commpage/
H A Dcommpage.c754 uint64_t test = src | mask; \
755 if (test != src) { \
756 __builtin_arm_wsr64(#name, test); \
757 test = __builtin_arm_rsr64(#name); \
758 if (test != src) { \
762 mask & test; \
/xnu-11215/libkern/kxld/
H A Dkxld_symtab.c270 KXLDSymPredicateTest test, boolean_t negate) in kxld_symtab_iterator_init() argument
274 check(test); in kxld_symtab_iterator_init()
278 iter->test = test; in kxld_symtab_iterator_init()
548 count += iter->test(kxld_array_get_item(&iter->symtab->syms, idx)); in kxld_symtab_iterator_get_num_remaining()
718 cmp = iter->test(tmp); in kxld_symtab_iterator_get_next()

123