mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This test is pretty brittle on such a short file. If a member of the timer output is zero, that member is omitted from the output. With how short the file is, various fields come back zero occasionally. On the Linux CI bot, there was a run with no "System Time", while I was seeing it failing locally due to other missing time fields.
16 lines
799 B
Swift
16 lines
799 B
Swift
// RUN: %target-build-swift -typecheck -driver-time-compilation %s 2>&1 | %FileCheck %s
|
|
// RUN: %target-build-swift -typecheck -driver-time-compilation %s %S/../Inputs/empty.swift 2>&1 | %FileCheck -check-prefix CHECK-MULTIPLE %s
|
|
|
|
// REQUIRES: rdar82895550
|
|
|
|
// CHECK: Driver Compilation Time
|
|
// CHECK: Total Execution Time: {{[0-9]+}}.{{[0-9]+}} seconds ({{[0-9]+}}.{{[0-9]+}} wall clock)
|
|
// CHECK: ---User Time---
|
|
// CHECK-SAME: --System Time--
|
|
// CHECK-SAME: --User+System--
|
|
// CHECK-SAME: ---Wall Time---
|
|
// CHECK-SAME: ---Instr---
|
|
// CHECK-SAME: --- Name ---
|
|
// CHECK-MULTIPLE: {compile: {{.*}}empty.swift}
|
|
// CHECK: {{[0-9]+}}.{{[0-9]+}} (100.0%) {{[0-9]+}}.{{[0-9]+}} (100.0%) {{[0-9]+}}.{{[0-9]+}} (100.0%) {{[0-9]+}}.{{[0-9]+}} (100.0%) {{.*}} {compile: {{.*}}driver-time-compilation.swift}
|