Searched refs:tests (Results 1 - 24 of 24) sorted by relevance

/haiku/src/tests/kits/app/bhandler/
H A DHandlerTest.cpp17 TestSuite* tests = new TestSuite(); local
19 tests->addTest(TBHandlerTester::Suite());
20 tests->addTest(TIsWatchedTest::Suite());
21 tests->addTest(TLooperTest::Suite());
22 tests->addTest(TSetNextHandlerTest::Suite());
23 tests->addTest(TNextHandlerTest::Suite());
24 tests->addTest(TAddFilterTest::Suite());
25 tests->addTest(TRemoveFilterTest::Suite());
26 tests->addTest(TSetFilterListTest::Suite());
27 tests
[all...]
/haiku/src/tests/kits/support/barchivable/
H A Dmain.cpp31 TestSuite* tests = new TestSuite("BArchivable"); local
33 tests->addTest(TBArchivableTestCase::Suite());
34 tests->addTest(TValidateInstantiationTest::Suite());
35 tests->addTest(TInstantiateObjectTester::Suite());
36 tests->addTest(TFindInstantiationFuncTester::Suite());
38 return tests;
43 Test* tests = addonTestFunc(); local
46 tests->run(&Result);
49 delete tests;
/haiku/src/tests/kits/app/blooper/
H A DLooperTest.cpp20 TestSuite* tests = new TestSuite(); local
22 tests->addTest(TIsMessageWaitingTest::Suite());
23 tests->addTest(TRemoveHandlerTest::Suite());
24 tests->addTest(TIndexOfTest::Suite());
25 tests->addTest(TCountHandlersTest::Suite());
26 tests->addTest(THandlerAtTest::Suite());
27 tests->addTest(TAddHandlerTest::Suite());
28 tests->addTest(TPerformTest::Suite());
29 tests->addTest(TRunTest::Suite());
30 tests
[all...]
/haiku/src/tests/kits/app/bmessage/
H A DMessageTest.cpp28 TestSuite* tests = new TestSuite(); local
30 tests->addTest(TMessageConstructTest::Suite());
31 tests->addTest(TMessageDestructTest::Suite());
32 tests->addTest(TMessageOpAssignTest::Suite());
33 tests->addTest(TMessageEasyFindTest::Suite());
34 tests->addTest(TMessageBoolItemTest::Suite());
35 tests->addTest(TMessageInt8ItemTest::Suite());
36 tests->addTest(TMessageInt16ItemTest::Suite());
37 tests->addTest(TMessageInt32ItemTest::Suite());
38 tests
[all...]
/haiku/src/tests/system/libroot/posix/
H A Dtst-swscanf.c30 } tests[] = { variable in typeref:struct:__anon6011
54 for (n = 0; n < sizeof(tests) / sizeof(tests[0]); ++n) {
58 if (tests[n].only_C_locale && strcmp(loc, "C") != 0)
61 if (swscanf(tests[n].arg, tests[n].fmt, buf) != tests[n].retval) {
62 printf("swscanf (\"%S\", \"%S\", ...) failed\n", tests[n].arg,
63 tests[n].fmt);
65 } else if (tests[
[all...]
H A Dtst-swprintf.c11 } tests[] = { variable in typeref:struct:__anon6010
48 for (n = 0; n < sizeof(tests) / sizeof(tests[0]); ++n) {
49 ssize_t res = swprintf(buf, tests[n].n, L"%s", tests[n].str);
51 if (tests[n].exp < 0 && res >= 0) {
53 tests[n].n, tests[n].str);
55 } else if (tests[n].exp >= 0 && tests[
[all...]
/haiku/src/tests/kits/locale/
H A DCollatorTest.cpp38 const Test tests[] = { local
48 for (int32 i = 0; tests[i].first != NULL; i++) {
54 collator.GetSortKey(tests[i].first, &a);
55 collator.GetSortKey(tests[i].second, &b);
57 int difference = collator.Compare(tests[i].first, tests[i].second);
58 CPPUNIT_ASSERT_EQUAL(tests[i].sign[strength - 1], difference);
H A DStringFormatTest.cpp49 static const Test tests[] = { local
80 for (int i = 0; tests[i].pattern != NULL; i++) {
84 BLanguage language(tests[i].locale);
85 BStringFormat formatter(language, tests[i].pattern);
87 result = formatter.Format(output, tests[i].number);
89 CPPUNIT_ASSERT_EQUAL(BString(tests[i].expected), output);
101 static const Test tests[] = { local
110 for (int i = 0; tests[i].pattern != NULL; i++) {
116 BStringFormat formatter(tests[i].pattern);
H A DDateFormatTest.cpp45 const Test tests[] = { local
62 for (int i = 0; tests[i].language != NULL; i++)
66 BLanguage language(tests[i].language);
67 BFormattingConventions formatting(tests[i].formatting);
68 BTimeZone timeZone(tests[i].timeZone);
75 tests[i].fields);
81 CPPUNIT_ASSERT_EQUAL(tests[i].expected, buffer);
89 tests[i].fields);
94 CPPUNIT_ASSERT_EQUAL(tests[i].force24, buffer);
102 tests[
385 static const Test tests[] = { local
416 static const Test tests[] = { local
[all...]
/haiku/src/tests/system/kernel/unit/
H A DTestManager.h23 const char* const* tests, int testCount);
H A DTestManager.cpp63 output.Print("Available tests:\n");
70 const char* const* tests, int testCount)
74 context.Print("Running tests:\n");
76 if (testCount == 0 || (testCount == 1 && strcmp(tests[0], "all") == 0)) {
80 bool result = Run(context, tests[i]);
86 context.Print("run tests: %ld, failed tests: %ld\n",
69 RunTests(GlobalTestContext& globalContext, const char* const* tests, int testCount) argument
H A DTestSuite.cpp70 Test** tests = new(std::nothrow) Test*[fTestCount + 1];
71 if (tests == NULL) {
77 memcpy(tests, fTests, sizeof(Test*) * fTestCount);
81 fTests = tests;
/haiku/src/tests/kits/net/service/
H A DCookieTest.cpp33 // #pragma mark - Positive functionality tests
398 // #pragma mark - Error handling and extended tests
420 Test tests[] = { local
459 // NOTE: Opera tests 301-17 twice and misses this test.
508 for (unsigned int i = 0; i < sizeof(tests) / sizeof(Test); i++)
512 result = cookie.ParseCookieString(tests[i].cookieString, url);
514 tests[i].canParse, result == B_OK);
516 tests[i].sessionOnly, cookie.IsSessionCookie());
518 tests[i].expired, cookie.ShouldDeleteNow());
548 const Test tests[] local
631 const Test tests[] = { local
683 const Test tests[] = { local
734 Test tests[] = { local
[all...]
H A DUrlTest.cpp262 const RelativeUrl tests[] = { local
272 // foo:c would be more intuitive, and is what skew.org tests.
526 for (unsigned int index = 0; index < sizeof(tests) / sizeof(RelativeUrl);
531 BUrl baseUrl(tests[index].base);
534 message << tests[index].base;
536 message << tests[index].relative;
539 BString(tests[index].absolute),
540 BUrl(baseUrl, tests[index].relative).UrlString());
556 Test tests[] = { local
595 for (int i = 0; tests[
[all...]
/haiku/src/tools/cppunit/cppunit/
H A DXmlOutputter.cpp242 const TestResultCollector::Tests &tests = m_result->tests(); local
243 for ( int testNumber = 0; testNumber < (int)tests.size(); ++testNumber )
245 Test *test = tests[testNumber];
259 const TestResultCollector::Tests &tests = m_result->tests(); local
260 for ( int testNumber = 0; testNumber < (int)tests.size(); ++testNumber )
262 Test *test = tests[testNumber];
H A DTestResultCollector.cpp56 /// Gets the number of run tests.
102 TestResultCollector::tests() const function in class:CppUnit::TestResultCollector
/haiku/src/tests/servers/app/inverse_clipping/
H A Dmain.cpp190 static const test tests[] = { variable
249 int testsCount = B_COUNT_OF(tests);
251 layout.Add(new View("region", tests[i], rectClipper), 0, i);
252 layout.Add(new View("rotate", tests[i], rectClipper), 1, i);
254 layout.Add(new View("picture", tests[i], pictureClipper), 2, i);
255 layout.Add(new View("rotate", tests[i], pictureClipper), 3, i);
256 layout.Add(new View("shape", tests[i], shapeClipper), 4, i);
257 layout.Add(new View("rotate", tests[i], shapeClipper), 5, i);
/haiku/headers/tools/cppunit/cppunit/
H A DTestResultCollector.h63 virtual const Tests &tests() const;
/haiku/src/tests/system/kernel/
H A Dsyscall_restart_test.cpp81 } tests[] = { local
88 for (int i = 0; tests[i].name != NULL; i++) {
89 printf(" %-30s: ", tests[i].name);
92 if (Run(tests[i].mode))
674 Test* tests[] = { local
687 for (int i = 0; tests[i] != NULL; i++)
688 tests[i]->Run();
/haiku/src/tests/kits/storage/testapps/
H A DPathMonitorTest2.cpp812 tests.push_back(new Test##name);
823 create_tests(std::vector<Test*>& tests) argument
1318 std::vector<Test*> tests; local
1319 create_tests(tests);
1321 // filter the tests, if test names have been specified
1322 size_t testCount = tests.size();
1325 Test* test = tests[i];
1331 tests.erase(tests.begin() + i);
1347 printf("\nrunning tests wit
[all...]
/haiku/src/tools/cppunit/
H A DTestShell.cpp69 // Add its tests
140 // Load any dynamically loadable tests we can find
143 // See if the user requested a list of tests. If so,
150 // Add the proper tests to our suite (or exit if there
151 // are no tests installed).
155 // No installed tests whatsoever, so bail
156 cout << "ERROR: No installed tests to run!" << endl;
170 // Add all the tests from any specified suites to the list of
171 // tests to run (since we use a set, this eliminates the concern
181 const TestMap &tests local
[all...]
/haiku/src/tests/kits/storage/
H A DMimeSnifferTest.cpp43 Outputf("(no tests actually performed for R5 version)\n");
47 // tests:
976 // Miscellaneous tests designed to hit every remaining
1107 Outputf("(no tests actually performed for R5 version)\n");
1110 // General tests
1116 // Range tests
1124 // Mask, octal, and hex tests
1133 // Case insensitivity tests
1143 } tests[] = {
1352 }; // tests[]
[all...]
H A DMimeTypeTest.cpp125 // before running all the BMimeType tests
421 // Adapter(?) classes needed to reuse icon tests among {Get,Set}Icon() and {Get,Set}IconForType()
553 // local mime database which we'll use for certain Haiku tests
1524 IconTest(helper); // First run all the icon tests
1525 // Then do some IconForType() specific tests
1912 #if !TEST_R5 // NOTE: These tests crash for R5::LongDescription calls but not for R5::ShortDescription
2336 Outputf("(no tests actually performed for R5 version)\n");
2561 std::map< std::string, std::set<std::string> > fakeTypeAppMap; // Used to keep timing info for R5 and Haiku tests orthogonal
2772 // tests:
2961 // tests
2977 mime_type_test tests[] = { local
[all...]
/haiku/docs/develop/kits/storage/resources/
H A DResourcesFormat.tex597 \item{Resources alignment in ELF files: Several tests with linker object files

Completed in 119 milliseconds