|
| 1 | +// RUN: %target-swift-frontend -emit-module %s %S/Inputs/filelist-other.swift -module-name parseable_output_emit_module -empty-abi-descriptor -emit-abi-descriptor-path %t.abi.json -emit-module -emit-module-path %t.swiftmodule -serialize-diagnostics -serialize-diagnostics-path %t.dia -frontend-parseable-output 2>&1 | %FileCheck %s |
| 2 | + |
| 3 | +// CHECK: {{[1-9][0-9]*}} |
| 4 | +// CHECK-NEXT: { |
| 5 | +// CHECK-NEXT: "kind": "began", |
| 6 | +// CHECK-NEXT: "name": "emit-module", |
| 7 | +// CHECK-NEXT: "command": "{{.*[\\/]}}swift-frontend{{(\.exe)?}}{{.*}} {{.*}} -emit-module {{.*[\\/]}}parseable_output_emit_module.swift {{.*[\\/]}}filelist-other.swift -module-name parseable_output_emit_module -empty-abi-descriptor -emit-abi-descriptor-path {{.*[\\/]}}parseable_output_emit_module.swift.tmp.abi.json -emit-module -emit-module-path {{.*[\\/]}}parseable_output_emit_module.swift.tmp.swiftmodule -serialize-diagnostics -serialize-diagnostics-path {{.*[\\/]}}parseable_output_emit_module.swift.tmp.dia -frontend-parseable-output", |
| 8 | +// CHECK-NEXT: "command_executable": "{{.*[\\/]}}swift{{(-frontend|c)?(\.exe)?}}", |
| 9 | +// CHECK-NEXT: "command_arguments": [ |
| 10 | +// CHECK: "{{.*[\\/]}}parseable_output_emit_module.swift", |
| 11 | +// CHECK-NEXT: "{{.*[\\/]}}filelist-other.swift", |
| 12 | +// CHECK-NEXT: "-module-name", |
| 13 | +// CHECK-NEXT: "parseable_output_emit_module", |
| 14 | +// CHECK-NEXT: "-empty-abi-descriptor", |
| 15 | +// CHECK-NEXT: "-emit-abi-descriptor-path", |
| 16 | +// CHECK-NEXT: "{{.*[\\/]}}parseable_output_emit_module.swift.tmp.abi.json", |
| 17 | +// CHECK-NEXT: "-emit-module", |
| 18 | +// CHECK-NEXT: "-emit-module-path", |
| 19 | +// CHECK-NEXT: "{{.*[\\/]}}parseable_output_emit_module.swift.tmp.swiftmodule", |
| 20 | +// CHECK-NEXT: "-serialize-diagnostics", |
| 21 | +// CHECK-NEXT: "-serialize-diagnostics-path" |
| 22 | +// CHECK-NEXT: "{{.*[\\/]}}parseable_output_emit_module.swift.tmp.dia", |
| 23 | +// CHECK-NEXT: "-frontend-parseable-output" |
| 24 | +// CHECK-NEXT: ], |
| 25 | +// CHECK-NEXT: "inputs": [ |
| 26 | +// CHECK-NEXT: "{{.*[\\/]}}parseable_output_emit_module.swift" |
| 27 | +// CHECK: "outputs": [ |
| 28 | +// CHECK-NEXT: { |
| 29 | +// CHECK-NEXT: "type": "swiftmodule", |
| 30 | +// CHECK-NEXT: "path": "{{.*[\\/]}}parseable_output_emit_module.swift.tmp.swiftmodule" |
| 31 | +// CHECK-NEXT: }, |
| 32 | +// CHECK-NEXT: { |
| 33 | +// CHECK-NEXT: "type": "diagnostics", |
| 34 | +// CHECK-NEXT: "path": "{{.*[\\/]}}parseable_output_emit_module.swift.tmp.dia" |
| 35 | +// CHECK-NEXT: }, |
| 36 | +// CHECK-NEXT: { |
| 37 | +// CHECK-NEXT: "type": "abi-baseline-json", |
| 38 | +// CHECK-NEXT: "path": "{{.*[\\/]}}parseable_output_emit_module.swift.tmp.abi.json" |
| 39 | +// CHECK-NEXT: } |
| 40 | +// CHECK-NEXT: ], |
| 41 | +// CHECK-NEXT: "pid": [[PID:[0-9]*]] |
| 42 | +// CHECK-NEXT: "process": { |
| 43 | +// CHECK-NEXT: "real_pid": [[PID]] |
| 44 | +// CHECK-NEXT: } |
| 45 | +// CHECK-NEXT: } |
| 46 | + |
| 47 | +// CHECK-NEXT: {{[1-9][0-9]*}} |
| 48 | +// CHECK-NEXT: { |
| 49 | +// CHECK-NEXT: "kind": "finished", |
| 50 | +// CHECK-NEXT: "name": "emit-module", |
| 51 | +// CHECK-NEXT: "pid": [[PID]], |
| 52 | +// CHECK-NEXT: "process": { |
| 53 | +// CHECK-NEXT: "real_pid": [[PID]] |
| 54 | +// CHECK-NEXT: }, |
| 55 | +// CHECK-NEXT: "exit-status": 0 |
| 56 | +// CHECK-NEXT: } |
0 commit comments