[Openmp-commits] [libcxx] [llvm] [openmp] [lit] Add a flag to disable lit time tests (PR #98270)

Vincent Lee via Openmp-commits openmp-commits at lists.llvm.org
Sat Jul 13 11:42:10 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
----------------
thevinster wrote:

If you are referring to the `CHECK-NOFILE` line, it's being used in L5 where I verify that this file isn't generated from lit when using `--skip-test-time-recording`. I have the `rm` command to cleanup that file after the lit run on L9. This test mirrors other lit tests in this directory and they don't have any checks for locale independence. I'm not aware of anything here that would require it (everything I'm using seems to be standard commands)

https://github.com/llvm/llvm-project/pull/98270


More information about the Openmp-commits mailing list