From de404a2809c8cd5a017ddd7084aa28e2f36fac2d Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 9 Aug 2013 21:39:28 +0000 Subject: [PATCH] [lit] Move ManyTests examples to lit/examples/many-tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188109 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/lit/examples/README.txt | 7 +++++++ utils/lit/examples/many-tests/README.txt | 10 ++++++++++ .../lit.local.cfg => examples/many-tests/lit.cfg} | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 utils/lit/examples/README.txt create mode 100644 utils/lit/examples/many-tests/README.txt rename utils/lit/{lit/ExampleTests/ManyTests/lit.local.cfg => examples/many-tests/lit.cfg} (96%) diff --git a/utils/lit/examples/README.txt b/utils/lit/examples/README.txt new file mode 100644 index 00000000000..a59daa8f770 --- /dev/null +++ b/utils/lit/examples/README.txt @@ -0,0 +1,7 @@ +============== + lit Examples +============== + +This directory contains examples of 'lit' test suite configurations. The test +suites they define can be run with 'lit examples/example-name', for more details +see the README in each example. diff --git a/utils/lit/examples/many-tests/README.txt b/utils/lit/examples/many-tests/README.txt new file mode 100644 index 00000000000..6bffff1468c --- /dev/null +++ b/utils/lit/examples/many-tests/README.txt @@ -0,0 +1,10 @@ +======================== + Many Tests lit Example +======================== + +This directory contains a trivial lit test suite configuration that defines a +custom test format which just generates a large (N=10000) number of tests that +do a small amount of work in the Python test execution code. + +This test suite is useful for testing the performance of lit on large numbers of +tests. diff --git a/utils/lit/lit/ExampleTests/ManyTests/lit.local.cfg b/utils/lit/examples/many-tests/lit.cfg similarity index 96% rename from utils/lit/lit/ExampleTests/ManyTests/lit.local.cfg rename to utils/lit/examples/many-tests/lit.cfg index 6cc47522b16..8f7b940b6ea 100644 --- a/utils/lit/lit/ExampleTests/ManyTests/lit.local.cfg +++ b/utils/lit/examples/many-tests/lit.cfg @@ -1,6 +1,6 @@ # -*- Python -*- -Test = lit.Test +from lit import Test class ManyTests(object): def __init__(self, N=10000): -- 2.34.1