Lines Matching +full:fail +full:- +full:fast
4 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
31 unsigned size = endp - arg + 1;
34 result[size-1] = 0;
41 result[size-1] = 0;
51 - (NSString *)description {
53 if (shouldFail) [result appendString:@"fail"];
60 - (__strong char *)radar {
64 - (bool) compileUnlessExists:(bool)skip {
115 - (bool) compileWithExpectedFailure {
183 - (bool) run {
186 return true; // skip 64-bit tests
248 - (void)setFilename:(__strong char *)name {
251 - (void)setCompilerPath:(__strong char *)name {
255 - (void)forMostThings:(NSMutableArray *)lines options:(int)options {
274 - (void)forAllThings:(NSMutableArray *)lines options:(int)options {
285 - (NSArray *)allLines {
299 - (void)addLibrary:(const char *)dashLSomething {
308 - (TestFileExe *)lineForOptions:(int)options { // nil if no can do
327 strcat(path, DoClang ? "clang++" : "g++-4.2");
330 strcat(path, DoClang ? "clang" : "gcc-4.2");
335 [pa addPointer:"-ObjC++"];
338 [pa addPointer:"-ObjC"];
341 [pa addPointer:"-g"];
342 if (options & DoDashO) [pa addPointer:"-O"];
343 else if (options & DoDashO2) [pa addPointer:"-O2"];
344 else if (options & DoDashOs) [pa addPointer:"-Os"];
346 [pa addPointer:"-std=c99"];
347 [pa addPointer:"-fblocks"];
349 [pa addPointer:"-arch"];
357 [pa addPointer:"-fobjc-gc-only"];
360 [pa addPointer:"-fobjc-gc"];
364 [pa addPointer:"-c"];
367 [pa addPointer:"-framework"];
371 [pa addPointer:"-o"];
379 case DoRR: strcat(path, "-rr"); break;
380 case DoGC: strcat(path, "-gconly"); break;
381 case DoGCRR: strcat(path, "-gcrr"); break;
382 case DoRRGC: strcat(path, "-rrgc"); break;
386 if (options & DoDashO) strcat(path, "-O");
387 else if (options & DoDashO2) strcat(path, "-O2");
388 else if (options & DoDashOs) strcat(path, "-Os");
389 if (wantsC99) strcat(path, "-C99");
390 strcat(path, DoClang ? "-clang" : "-gcc");
391 strcat(path, "-bin");
425 - (void)parseLibraries:(const char *)line {
427 line = strstr(line, "-l");
432 if (strstr(endp, "-l")) {
444 if (strstr(line, "-C99")) {
449 if (strstr(line, "-l")) [item parseLibraries:line];
451 if (strstr(line, "FAIL")) item.supposedToNotCompile = true; // old
459 if (newline && ((newline-error) > 1)) {
470 if (newline && ((newline-error) > 1)) {
487 // filename: ... LOOKFOR [GC] [RR] [C++] [FAIL ...]
550 - (NSString *)description {
558 supposedToNotCompile ? " FAIL" : ""];
579 printf("Usage: %s [-fast] [-e] [-dyld librarypath] [gcc4.2dir] [-- | source1 ...]\n", whoami);
580 printf(" -fast don't recompile if binary younger than source\n");
581 printf(" -open only run tests that are thought to still be unresolved\n");
582 printf(" -clang use the clang and clang++ compilers\n");
583 printf(" -e compile all variations also with -Os, -O2, -O3\n");
584 …printf(" -dyld p override DYLD_LIBRARY_PATH and DYLD_FRAMEWORK_PATH to p when runni…
585 …printf(" <compilerpath> directory containing gcc-4.2 (or clang) that you wish to use to co…
586 printf(" -- assume stdin is a grep CON" "FIG across the test sources\n");
588 …printf("%s will compile and run individual test files under a variety of compilers, c, obj-c, c++,…
603 printf(" -C99 restricts the C versions of the test to -fstd=c99 -fblocks\n");
604 printf(" -O adds the -O optimization level\n");
605 printf(" -O2 adds the -O2 optimization level\n");
606 printf(" -Os adds the -Os optimization level\n");
610 printf(" rdar://whatever such that if they fail the rdar will get cited\n");
611 …printf("Files that are expected to fail to compile should provide, as their last token sequence,\n…
621 printf("running on %s-bit architecture\n", sizeof(long) == 4 ? "32" : "64");
631 if (!strcmp(argv[1], "-fast")) {
633 --argc;
636 else if (!strcmp(argv[1], "-dyld")) {
638 --argc;
642 --argc;
645 else if (!strcmp(argv[1], "-open")) {
647 --argc;
650 else if (!strcmp(argv[1], "-clang")) {
652 --argc;
655 else if (!strcmp(argv[1], "-e")) {
657 --argc;
660 else if (!strcmp(argv[1], "--")) {
662 --argc;
665 else if (!strcmp(argv[1], "-")) {
672 --argc;
690 --argc;
734 …printf("\n--- results ---\n\n%lu successes\n%lu unexpected compile failures\n%lu failure to fail t…
802 buffer[count-1] = 0; // zap newline