[libcxx-commits] [libcxx] [llvm] [openmp] [lit] Add a flag to disable lit time tests (PR #98270)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jul 13 09:04:42 PDT 2024
================
@@ -0,0 +1,18 @@
+## Check that --skip-test-time-recording skips .lit_test_times.txt recording.
+
+# RUN: %{lit-no-order-opt} --skip-test-time-recording %{inputs}/time-tests
+# RUN: not ls %{inputs}/time-tests/.lit_test_times.txt > %t.out 2>&1
+# RUN: FileCheck --check-prefix=CHECK-NOFILE < %t.out %s
+
+## Check that --time-tests generates a printed histogram
+
+# RUN: %{lit-no-order-opt} --time-tests %{inputs}/time-tests > %t.out
+# RUN: FileCheck < %t.out %s
+# RUN: rm %{inputs}/time-tests/.lit_test_times.txt
+
+# CHECK-NOFILE: cannot access 'Inputs/time-tests/.lit_test_times.txt': No such file or directory
----------------
jprotze wrote:
I'm not sure, which command is supposed to output this line (rm/filecheck/the file redirect?). If this system output is localized, the check will fail if locale is not set to something like LANG=EN_us
https://github.com/llvm/llvm-project/pull/98270
More information about the libcxx-commits
mailing list