|
4 | 4 | // RUN: cp -r %S/Inputs/only-skip-once/* %t
|
5 | 5 | // RUN: touch -t 201401240005 %t/*
|
6 | 6 |
|
7 |
| -// RUN: cd %t && %target-swiftc_driver -driver-show-job-lifecycle -output-file-map %t/output-file-map.json -incremental main.swift file1.swift file2.swift -j1 2>%t/stderr.txt | %FileCheck -check-prefix=CHECK-INITIAL %s |
| 7 | +// RUN: cd %t && %target-swiftc_driver -driver-show-job-lifecycle -output-file-map %t/output-file-map.json -incremental main.swift file1.swift file2.swift -j1 2>&1 | tee /tmp/x | %FileCheck -check-prefix=CHECK-INITIAL %s |
8 | 8 |
|
9 |
| -// CHECK-INITIAL: Job finished: {compile: main.o <= main.swift} |
10 |
| -// CHECK-INITIAL: Job finished: {compile: file1.o <= file1.swift} |
11 |
| -// CHECK-INITIAL: Job finished: {compile: file2.o <= file2.swift} |
12 |
| -// CHECK-INITIAL: Job finished: {link: main <= main.o file1.o file2.o} |
| 9 | +// CHECK-INITIAL: {{(Job finished: {compile: main.o <= main.swift}|Finished Compiling main.swift)}} |
| 10 | +// CHECK-INITIAL: {{(Job finished: {compile: file1.o <= file1.swift}|Finished Compiling file1.swift)}} |
| 11 | +// CHECK-INITIAL: {{(Job finished: {compile: file2.o <= file2.swift}|Finished Compiling file2.swift)}} |
| 12 | +// CHECK-INITIAL: {{(Job finished: {link: main <= main.o file1.o file2.o}|Finished Linking main)}} |
13 | 13 |
|
14 | 14 | // RUN: touch -t 201401240006 %t/file2.swift
|
15 |
| -// RUN: cd %t && %target-swiftc_driver -driver-show-job-lifecycle -output-file-map %t/output-file-map.json -incremental main.swift file1.swift file2.swift -j1 2>%t/stderr.txt | %FileCheck -check-prefix=CHECK-REBUILD %s |
| 15 | +// RUN: cd %t && %target-swiftc_driver -driver-show-job-lifecycle -output-file-map %t/output-file-map.json -incremental main.swift file1.swift file2.swift -j1 2>&1 |tee /tmp/y | %FileCheck -check-prefix=CHECK-REBUILD %s |
16 | 16 |
|
17 | 17 | // We should skip the main and file1 rebuilds here, but we should only note skipping them _once_
|
18 |
| -// CHECK-REBUILD: Job finished: {compile: file2.o <= file2.swift} |
19 |
| -// CHECK-REBUILD: Job skipped: {compile: main.o <= main.swift} |
20 |
| -// CHECK-REBUILD: Job skipped: {compile: file1.o <= file1.swift} |
21 |
| -// CHECK-REBUILD: Job finished: {link: main <= main.o file1.o file2.o} |
22 |
| -// CHECK-REBUILD-NOT: Job skipped: |
| 18 | +// CHECK-REBUILD-DAG: {{(Job finished: {compile: file2.o <= file2.swift}|Finished Compiling file2.swift)}} |
| 19 | +// CHECK-REBUILD-DAG: {{(Job skipped: {compile: main.o <= main.swift}|Skipped Compiling main.swift)}} |
| 20 | +// CHECK-REBUILD-DAG: {{(Job skipped: {compile: file1.o <= file1.swift}|Skipped Compiling file1.swift)}} |
| 21 | +// CHECK-REBUILD-DAG: {{(Job finished: {link: main <= main.o file1.o file2.o}|Finished Linking main)}} |
| 22 | +// CHECK-REBUILD-NOT: {{(Job skipped:|Skipped)}} |
0 commit comments