================
@@ -0,0 +1,17 @@
+// Test the --time/-t flag of ssaf-linker.
+
+// RUN: rm -rf %t
+// RUN: mkdir -p %t
+
+// RUN: ssaf-linker --time %S/Inputs/tu-1.json %S/Inputs/tu-2.json -o 
%t/lu-1+2.json 2>&1 \
+// RUN:           | FileCheck %s --match-full-lines
+// CHECK:      
===-------------------------------------------------------------------------===
+// CHECK-NEXT: {{[ ]+}}SSAF Linker
+// CHECK-NEXT: 
===-------------------------------------------------------------------------===
+// CHECK-NEXT:   Total Execution Time: {{[0-9.]+}} seconds ({{[0-9.]+}} wall 
clock)
----------------
jkorous-apple wrote:

FWIW since I don't see this as an essential feature of the linker I would think 
that testing that invocation with `--time` executes successfully is good 
enough. We are committing to a specific output format here.

We can revisit this later though.

https://github.com/llvm/llvm-project/pull/184713
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to